Template:Verse translation/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
Created page with "{{Documentation subpage}} == Usage == This template may be used when a verse text in its original language and its translation into English are to be displayed together. It di..."
 
No edit summary
Line 3:
This template may be used when a verse text in its original language and its translation into English are to be displayed together. It displays the original text in italics and the translation in [[roman type]]. Optionally, it displays attributions for each text below. The main parameter set is the following:
 
{{tlx|Verse translation|2=lang={{var|[[Wikipedia:ISO 639|ISO 639]] language code or [[Wikipedia:IETF language tag|IETF language tag]]}}|3={{var|original text}}|4={{var|translation}}|5=attr1={{var|original text attribution}}|6=attr2={{var|translation attribution}}}}
 
{{see|Wikipedia:List of ISO 639-1 codes|Wikipedia:List of ISO 639-2 codes}}
 
'''{{Center|Full parameter set in horizontal format}}'''
Line 46:
 
===Full example===
The parameters {{para|attr1}} and {{para|attr2}} are optional, must be labelled, and do {{em|not}} preserve line breaks in the code. They are meant to contain the attributions for (1) the original text and (2) the translation. Either, both, or neither may be used. Their content will be displayed preceded by a dash and in slightly reduced text. These texts do {{em|not}} wrap automatically; if wrapping is required, {{code|lang=HTML|code=<br />}} can be used, as below. Also optional (though recommended by [[Wikipedia:Manual of Style/Accessibility#Other languages|Manual of Style/Accessibility § Other languages]]) is {{para|lang}}, which takes an [[Wikipedia:IETF language tag|IETF language tag]] or [[Wikipedia:ISO 639|ISO 639]] language code in the same format as {{tl|lang}}. For example:
{{Markup|
<syntaxhighlight lang="HTML">
Line 60:
Since is life a dream at best,
And even dreams themselves are dreams.<ref>''Calderon's Dramas'', pp. 78–79. London: Henry S. King & Co., 1873.</ref>
|attr1=[[Wikipedia:Pedro Calderón de la Barca|Calderón]]: ''{{lang|es|[[Wikipedia:La vida es sueño|La vida es sueño]]}}''<br />Act II, Scene 19, lines 1197–1201
|attr2=[[Wikipedia:Denis Florence Mac-Carthy|Denis Florence Mac-Carthy]]
}}
{{Reflist}}
Line 76:
Since is life a dream at best,
And even dreams themselves are dreams.<ref>''Calderon's Dramas'', pp. 78–79. London: Henry S. King & Co., 1873.</ref>
|attr1=[[Wikipedia:Pedro Calderón de la Barca|Calderón]]: ''{{lang|es|[[Wikipedia:La vida es sueño|La vida es sueño]]}}''<br />Act II, Scene 19, lines 1197–1201
|attr2=[[Wikipedia:Denis Florence Mac-Carthy|Denis Florence Mac-Carthy]]
}}
{{Reflist}}