Template:Derani: Difference between revisions

From The Toaq Wiki
(don't add a space, either)
(add tabindex=0 to hover style. soeıgı ka! ♡)
 
(7 intermediate revisions by 3 users not shown)
Line 4: Line 4:
</div>
</div>
This template lets you embed Derani text in articles. The first argument is the text itself, and the second argument (optional) is its Latin transliteration.
This template lets you embed Derani text in articles. The first argument is the text itself, and the second argument (optional) is its Latin transliteration.
</noinclude><includeonly><span class="derani" lang="toaq">{{{1}}}</span>{{#if:{{{2|}}}|&#32;<span class="toaq" style="color: #747474; font-size: 0.8em;" lang="toaq">{{{2}}}</span>}}</includeonly>
 
The third argument is the transliteration style, as demonstrated in the table below. "inline" is the default.
 
{| class="wikitable"
|+ Transliteration styles
|-
! Code !! Output
|-
| <code><nowiki>{{Derani|󱚰󱚲󱛍󱚺 󱚵󱛊󱚹 󱛚 󱚶󱚺 󱛕|Mua ní da.|inline}}</nowiki></code> || <center>{{Derani|󱚰󱚲󱛍󱚺 󱚵󱛊󱚹 󱛚 󱚶󱚺 󱛕|Mua ní da.|inline}}</center>
|-
| <code><nowiki>{{Derani|󱚰󱚲󱛍󱚺 󱚵󱛊󱚹 󱛚 󱚶󱚺 󱛕|Mua ní da.|none}}</nowiki></code> || <center>{{Derani|󱚰󱚲󱛍󱚺 󱚵󱛊󱚹 󱛚 󱚶󱚺 󱛕|Mua ní da.|none}}</center>
|-
| <code><nowiki>{{Derani|󱚰󱚲󱛍󱚺 󱚵󱛊󱚹 󱛚 󱚶󱚺 󱛕|Mua ní da.|hover}}</nowiki></code> || <center>{{Derani|󱚰󱚲󱛍󱚺 󱚵󱛊󱚹 󱛚 󱚶󱚺 󱛕|Mua ní da.|hover}}</center>
|-
| <code><nowiki>{{Derani|󱚰󱚲󱛍󱚺 󱚵󱛊󱚹 󱛚 󱚶󱚺 󱛕|Mua ní da.|stack}}</nowiki></code> || <center>{{Derani|󱚰󱚲󱛍󱚺 󱚵󱛊󱚹 󱛚 󱚶󱚺 󱛕|Mua ní da.|stack}}</center>
|}
 
== See also ==
* [[Template:Deranize]], which is a wrapper around this template that generates the Derani text from Latin.
 
</noinclude><includeonly>{{#switch: {{{3|}}}
| none = <span class="deran&#105;" lang="toaq">{{{1}}}</span>
| hover = <span class="deran&#105;" lang="toaq" title="{{{2|}}}" tabindex="0">{{{1}}}</span>
| stack = <span style="display:inline-flex; vertical-align:baseline; flex-direction:column"><span class="deran&#105;" lang="toaq">{{{1}}}</span>{{#if:{{{2|}}}|<span style="font-size:14px; margin-bottom:4px;">{{t|{{{2|}}}}}</span>}}</span>
| #default = <span class="deran&#105;" lang="toaq">{{{1}}}</span>{{#if:{{{2|}}}|&#32;<span style="color: #979797;">{{t|{{{2|}}}}}</span>}}
}}</includeonly>

Latest revision as of 20:14, 2 February 2024

If you’re here to learn about Toaq's writing system, see Derani.

This template lets you embed Derani text in articles. The first argument is the text itself, and the second argument (optional) is its Latin transliteration.

The third argument is the transliteration style, as demonstrated in the table below. "inline" is the default.

Transliteration styles
Code Output
{{Derani|󱚰󱚲󱛍󱚺 󱚵󱛊󱚹 󱛚 󱚶󱚺 󱛕|Mua ní da.|inline}}
󱚰󱚲󱛍󱚺 󱚵󱛊󱚹 󱛚 󱚶󱚺 󱛕 Mua ní da.
{{Derani|󱚰󱚲󱛍󱚺 󱚵󱛊󱚹 󱛚 󱚶󱚺 󱛕|Mua ní da.|none}}
󱚰󱚲󱛍󱚺 󱚵󱛊󱚹 󱛚 󱚶󱚺 󱛕
{{Derani|󱚰󱚲󱛍󱚺 󱚵󱛊󱚹 󱛚 󱚶󱚺 󱛕|Mua ní da.|hover}}
󱚰󱚲󱛍󱚺 󱚵󱛊󱚹 󱛚 󱚶󱚺 󱛕
{{Derani|󱚰󱚲󱛍󱚺 󱚵󱛊󱚹 󱛚 󱚶󱚺 󱛕|Mua ní da.|stack}}
󱚰󱚲󱛍󱚺 󱚵󱛊󱚹 󱛚 󱚶󱚺 󱛕Mua ní da.

See also

  • Template:Deranize, which is a wrapper around this template that generates the Derani text from Latin.