Template:Hwnic text: Difference between revisions

From Linguifex
Jump to navigation Jump to search
(template to auto-format Hwnic text)
Tags: Mobile edit Mobile web edit
 
No edit summary
Tags: Mobile edit Mobile web edit
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
== ''{{{title|Untitled}}}'' ==
== ''{{{title|Untitled}}}'' ==
<p style="white-space:pre;">{{{hwnic}}}</p>
<p style="white-space:pre;">{{{hwnic}}}</p>
{{#if:{{{en|}}}|<p style="white-space:pre;">{{{en}}}</p>}}
<p style="white-space:pre;">{{{en}}}</p>{{#if:{{{notes|}}}|
{{#if:{{{notes|}}}|<div style="white-space:pre;">{{{notes}}}</div>}}
<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
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>

Latest revision as of 09:16, 6 February 2025

Untitled

{{{hwnic}}}

{{{en}}}

Glossing

{{{hwnic}}}

{{{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.