Template:T: Difference between revisions
mNo edit summary |
(tooltips and links and oh my) |
||
Line 1: | Line 1: | ||
<span class="toaq" lang="toaq">{{{1}}} | <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> |
Revision as of 20:45, 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|{{x}} is white.}}
→ <span class="toaq"
lang="toaq" title="___ is white." >bao
{{t|bao|{{x}} is white.|}}
→ <span class="toaq"
lang="toaq" title="___ is white." >bao
{{t|tẻst word||#aaaaaaa}}
→ tẻst word