Template:DiegeticParagraph: Difference between revisions

From Old Tongue Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="diegetic-paragraph">
<div class="diegetic-paragraph">
<div class="diegetic-ot">{{{oldtongue|}}}</div>
<div class="diegetic-col diegetic-ot"><div class="diegetic-head">Old Tongue</div>{{#tag:poem|{{{oldtongue|}}} }}</div>
<div class="diegetic-en">{{{english|}}}</div>
<div class="diegetic-col diegetic-lit"><div class="diegetic-head">Literal</div>{{#tag:poem|{{{literal|}}} }}</div>
<div class="diegetic-col diegetic-en"><div class="diegetic-head">Canonical English</div>{{#tag:poem|{{{official|}}} }}</div>
</div><noinclude>
</div><noinclude>
Renders a paragraph of on-screen Old Tongue text beside its English translation.
Renders a paragraph of on-screen Old Tongue text with a literal translation and
The two columns stack vertically when the content area is too narrow to contain both.
the official English. Line breaks in all three parameters are preserved. The
Requires the .diegetic-* rules in [[MediaWiki:Common.css]].
columns stack vertically when the content area is too narrow to contain them.
 
Requires Extension:Poem and the .diegetic-* rules in [[MediaWiki:Common.css]].


Usage:
Usage:
Line 11: Line 14:
{{DiegeticParagraph
{{DiegeticParagraph
| oldtongue =
| oldtongue =
caisen diutic kodome.
Ost ronagh
aso harben pinikari daes
Aman'dore
| english =
| literal =
English paragraph goes here.
On slopes
It can have multiple lines.
(of) Dragonmount
| official =
On the slopes of
Dragonmount
}}
}}
</pre>
</pre>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 03:19, 29 August 2026

Old Tongue

 

Literal

 

Canonical English

 

Renders a paragraph of on-screen Old Tongue text with a literal translation and the official English. Line breaks in all three parameters are preserved. The columns stack vertically when the content area is too narrow to contain them.

Requires Extension:Poem and the .diegetic-* rules in MediaWiki:Common.css.

Usage:

{{DiegeticParagraph
| oldtongue =
Ost ronagh
Aman'dore
| literal =
On slopes
(of) Dragonmount
| official =
On the slopes of
Dragonmount
}}