Template:T: Difference between revisions

900 bytes added ,  20:45, 26 October 2021
tooltips and links and oh my
mNo edit summary
(tooltips and links and oh my)
Line 1: Line 1:
<span class="toaq" lang="toaq">{{{1}}}</span>{{#if:{{{2|}}}|<sub>{{{2}}}</sub>|}}
<noinclude>
== Synopsis ==
 
Applies appropriate formatting and language tags to Toaq text. Please enclose ''each and every'' snippet of Toaq in this template.
 
== Arguments ==
 
; toaq (required)
; definition (recommended) : shown as tooltip
; [[toadua]] query (optional) : if provided but left empty, the query is prefilled with the word itself
 
== Examples ==
 
: <code><nowiki>{{t|bao|{{x}} is white.}}</nowiki></code> → {{t|bao|{{x}} is white.}}
: <code><nowiki>{{t|bao|{{x}} is white.|}}</nowiki></code> → {{t|bao|{{x}} is white.|}}
: <code><nowiki>{{t|tẻst word||#aaaaaaa}}</nowiki></code> → {{t|tẻst word||#aaaaaaa}}
 
</noinclude><includeonly
><span class="toaq"
      lang="toaq"
      {{#if: {{{2|}}}
            | title="{{{2}}}"
            | }}
      >{{#if: {{{3|}}}
            | [[toadua:{{{3}}}|{{{1}}}]]
            | {{#ifeq: {{{3|}}} | {{{3}}}
                    | [[toadua:{{{1}}}|{{{1}}}]]
                    | {{{1}}} }} }}</span
></includeonly>