Template:Text and translation: Difference between revisions
Johnrdorazio (talk | contribs) No edit summary |
Johnrdorazio (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
--><div style="flex: 1 0 300px;"><p>{{{2}}}</p></div><!-- |
--><div style="flex: 1 0 300px;"><p>{{{2}}}</p></div><!-- |
||
--></div><!-- |
--></div><!-- |
||
-->{{#if:{{{author|{{{3|}}}}}}|<div class="templatequotecite">— <cite><span class="templatequote-author">{{{author|{{{3|}}}}}}</span>{{#if:{{{title|}}}|, <span class="templatequote-title">{{{title}}}</span>}}{{#if:{{{publisher|}}}|, <span class="templatequote-publisher">{{{publisher}}}</span>}}{{#if:{{{edition|}}}|, <span class="templatequote-edition">{{{edition}}}</span>}}{{#if:{{{year|}}}|, <span class="templatequote-year">{{{year}}}</span>}}{{#if:{{{pages|}}}|, <span class="templatequote-pages">{{{pages}}}</span>}}</cite></div>}}<!-- |
-->{{#if:{{{author|{{{3|}}}}}}|<div class="templatequotecite">— <cite><span class="templatequote-author">{{{author|{{{3|}}}}}}</span>{{#if:{{{title|}}}|, <span class="templatequote-title"><i>{{{title}}}</i></span>}}{{#if:{{{publisher|}}}|, <span class="templatequote-publisher">{{{publisher}}}</span>}}{{#if:{{{edition|}}}|, <span class="templatequote-edition">{{{edition}}}</span>}}{{#if:{{{year|}}}|, <span class="templatequote-year">{{{year}}}</span>}}{{#if:{{{pages|}}}|, <span class="templatequote-pages">{{{pages}}}</span>}}</cite></div>}}<!-- |
||
--></blockquote></includeonly><noinclude> |
--></blockquote></includeonly><noinclude> |
||
Line 15: | Line 15: | ||
"description": "original text", |
"description": "original text", |
||
"example": "{{lang|it|Con la sua teoria di λόγος σπερματικός [logos spermatikos], Giustino getta un ponte tra l'antica filosofia ed il Cristianesimo.}}", |
"example": "{{lang|it|Con la sua teoria di λόγος σπερματικός [logos spermatikos], Giustino getta un ponte tra l'antica filosofia ed il Cristianesimo.}}", |
||
"type": "wiki-template-name" |
"type": "wiki-template-name" |
||
"default": "{{lang|it|original italian text here. if not italian, change language code accordingly}}" |
|||
}, |
}, |
||
"2": { |
"2": { |
Latest revision as of 15:40, May 4, 2023
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 three parameters. The first two are the original text and translation. The third is reserved for an optional citation of the passage:
{{Text and translation| (text or translation) | (text or translation) | citation information }}
Example
The following code:
{{Text and translation | Arma uirumque cano, Troiae qui primus ab oris<br> Italiam fato profugus Lauiniaque uenit<br> litora, multum ille et terris iactatus et alto<br> ui superum, saeuae memorem Iunonis ob iram. | I sing of arms and a man, he who first from the shores for Troy<br> fled under fate's compulsion to Italy and the Lavinian<br> shores, tossed much upon land and the deep<br> by the force of the gods on account of the mindful anger of savage Juno. | Vergil, ''Aeneid'' 1.1–4 }}
produces:
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.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.—
See also
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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | original text
| Template | optional |
2 | 2 | English translation
| Content | optional |
3 | 3 | author
| Content | optional |
author | author | no description | Content | optional |
title | title | no description
| Content | optional |
publisher | publisher | no description
| Content | optional |
edition | edition | no description
| Content | optional |
year | year | no description
| Content | optional |
pages | pages | no description
| Content | optional |