Template:Hwnic text: Difference between revisions

no edit summary
No edit summary
Tags: Mobile edit Mobile web edit
No edit summary
Tags: Mobile edit Mobile web edit
 
Line 2: Line 2:


== ''{{{title|Untitled}}}'' ==
== ''{{{title|Untitled}}}'' ==
<p style="white-space:pre;">{{{hwnic}}}</p>{{#if:{{{en|}}}|<p style="white-space:pre;">{{{en}}}</p>}}{{#if:{{{notes|}}}|<div style="white-space:pre;">{{{notes}}}</div>}}
<p style="white-space:pre;">{{{hwnic}}}</p>
<p style="white-space:pre;">{{{en}}}</p>{{#if:{{{notes|}}}|
<p style="white-space:pre;">{{{notes}}}</p>}}


== Glossing ==
== Glossing ==
<div style="display:flex;">
<div style="display:flex; flex-wrap:wrap;">
<p style="white-space:pre; margin:10px; width:50%;">{{{hwnic}}}</p>
<p style="white-space:pre; margin:10px; width:45%;">{{{hwnic}}}</p>
<p style="white-space:pre; margin:10px; width:fit-content; overflow:auto;">{{{gloss}}}</p>
<p style="white-space:pre; margin:10px; width:fit-content; overflow:auto;">{{{gloss}}}</p>
</div><noinclude>
</div><noinclude>


Documentation: Format a Hwnic text, an English translation, and a glossing using flexboxes with white-space:pre. Valid parameters are: title; hwnic; en; notes; gloss.
Documentation: Format a Hwnic text, an English translation, and a glossing using flexboxes with white-space:pre. The glossing is usually longer than the text and thus requires overflow:auto. Valid parameters are: title; hwnic; en; notes; gloss.
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>
130

edits