Jump to content

From Noumenapedia

Template:Text and translation/doc

__EXPECTED_UNCONNECTED_PAGE__

Usage

This template allows for the presentation of text in a language other than English alongside an English translation of that text. It is primarily designed for rendering poetic texts and their translations in parallel columns that are responsive to devices with display sizes smaller than a personal computer's screen. That is, on a large screen the text and translation are displayed side-by-side, reducing unsightly white space, but on a smaller screen they are presented one below the other.

Parameters

This template has four parameters. The first two are the original text and translation. The third is reserved for an optional citation of the passage. The fourth must be named, and is for an optional ISO 639-1 language code (e.g fr for French), which is applied to the content of the first parameter using {{lang}}:

<syntaxhighlight lang="wikitext"> Template:Template journal </syntaxhighlight>

Example

<syntaxhighlight lang="wikitext">{{Text and translation| <poem> Arma uirumque cano, Troiae qui primus ab oris Italiam fato profugus Lauiniaque uenit litora, multum ille et terris iactatus et alto ui superum, saeuae memorem Iunonis ob iram. </poem> | <poem> I sing of arms and a man, he who first from the shores for Troy fled under fate's compulsion to Italy and the Lavinian shores, tossed much upon land and the deep by the force of the gods on account of the mindful anger of savage Juno. </poem> | Vergil, Aeneid 1.1–4 |language=la

}}</syntaxhighlight>

<poem>

Arma uirumque cano, Troiae qui primus ab oris Italiam fato profugus Lauiniaque uenit litora, multum ille et terris iactatus et alto ui superum, saeuae memorem Iunonis ob iram.

</poem>
<poem>

I sing of arms and a man, he who first from the shores for Troy fled under fate's compulsion to Italy and the Lavinian shores, tossed much upon land and the deep by the force of the gods on account of the mindful anger of savage Juno.

</poem>

—  Vergil, Aeneid 1.1–4

See also