Template:DiegeticParagraph: Difference between revisions

From Old Tongue Wiki
Jump to navigation Jump to search
Created page with "<div class="diegetic-paragraph" style="display:flex; flex-wrap:wrap; gap:1.5em; margin:1.5em 0; padding:1em 1.25em; border:1px solid #d4c4a8; background:#fdfaf3;"> <div class="diegetic-ot" style="flex:1 1 18em; min-width:0; white-space:pre-line; font-style:italic; color:#4a3c28;"> {{{oldtongue|}}} </div> <div class="diegetic-en" style="flex:1 1 18em; min-width:0; color:#555;"> {{{english|}}} </div> </div><noinclude> Renders a paragraph of on-screen Old Tongue text beside..."
 
No edit summary
Line 1: Line 1:
<div class="diegetic-paragraph" style="display:flex; flex-wrap:wrap; gap:1.5em; margin:1.5em 0; padding:1em 1.25em; border:1px solid #d4c4a8; background:#fdfaf3;">
<div class="diegetic-paragraph">
<div class="diegetic-ot" style="flex:1 1 18em; min-width:0; white-space:pre-line; font-style:italic; color:#4a3c28;">
<div class="diegetic-ot">{{{oldtongue|}}}</div>
{{{oldtongue|}}}
<div class="diegetic-en">{{{english|}}}</div>
</div>
<div class="diegetic-en" style="flex:1 1 18em; min-width:0; color:#555;">
{{{english|}}}
</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 beside its English translation.
The columns stack vertically when the content area is too narrow to hold both.
The two columns stack vertically when the content area is too narrow to contain both.
Requires the .diegetic-* rules in [[MediaWiki:Common.css]].


Usage:
Usage:

Revision as of 00:07, 29 August 2026

Renders a paragraph of on-screen Old Tongue text beside its English translation. The two columns stack vertically when the content area is too narrow to contain both. Requires the .diegetic-* rules in MediaWiki:Common.css.

Usage:

{{DiegeticParagraph
| oldtongue =
caisen diutic kodome.
aso harben pinikari daes
| english =
English paragraph goes here.
It can have multiple lines.
}}