Template:T: Difference between revisions

From The Toaq Wiki
mNo edit summary
mNo edit summary
Line 12: Line 12:
== Examples ==
== Examples ==


: <code><nowiki>{{t|bao|{{x}} is white.}}</nowiki></code> → {{t|bao|{{x}} is white.}}
: <code><nowiki>{{t|bao|___ is white.}}</nowiki></code> → {{t|bao|___ is white.}}
: <code><nowiki>{{t|bao|{{x}} is white.|}}</nowiki></code> → {{t|bao|{{x}} is white.|}}
: <code><nowiki>{{t|bao|___ is white.|}}</nowiki></code> → {{t|bao|___ is white.|}}
: <code><nowiki>{{t|tẻst word||#aaaaaaa}}</nowiki></code> → {{t|tẻst word||#aaaaaaa}}
: <code><nowiki>{{t|tẻst word||#aaaaaaa}}</nowiki></code> → {{t|tẻst word||#aaaaaaa}}
</noinclude><includeonly
</noinclude><includeonly
><span class="toaq" lang="toaq" {{#if: {{{2|}}} | title="{{{2|}}}" | }}>{{#if:
><span class="toaq" lang="toaq" {{#if:
  {{{3|}}}
  {{{2|}}}
  | [[toadua:{{{3}}}|{{{1}}}]]
  | title="{{#replace:{{{2|}}}|___|{{x}}}}"
  | {{#ifeq: {{{3|}}} | {{{3}}}
  | }}>{{#if: {{{3|}}}
            | [[toadua:{{{1}}}|{{{1}}}]]
              | [[toadua:{{{3}}}|{{{1}}}]]
            | {{{1}}} }} }}</span></includeonly>
              | {{#ifeq: {{{3|}}} | {{{3}}}
                        | [[toadua:{{{1}}}|{{{1}}}]]
                        | {{{1}}} }} }}</span></includeonly>

Revision as of 20:49, 26 October 2021

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

{{t|bao|___ is white.}} → <span class="toaq" lang="toaq" title="___ is white.">bao
{{t|bao|___ is white.|}} → <span class="toaq" lang="toaq" title="___ is white.">bao
{{t|tẻst word||#aaaaaaa}}tẻst word