Template:T: Difference between revisions
(one #replace too many) |
(add nowrap property so that the link arrow (↗︎) doesn't break into a new line) |
||
(One intermediate revision by the same user not shown) | |||
Line 43: | Line 43: | ||
</noinclude><includeonly | </noinclude><includeonly | ||
><span class="toaq" | ><span class="toaq" {{#if: {{{3|}}} | style="white-space: nowrap;" | ||
| }} | |||
><span lang="toaq" | ><span lang="toaq" | ||
{{#if: {{{2|}}} | title="{{#replace:{{{2|}}}|{{x}}|___}}" | {{#if: {{{2|}}} | title="{{#replace:{{{2|}}}|{{x}}|___}}" | ||
| }} | | }} | ||
>{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{{1}}} | >{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace:{{#replace: | ||
|i|ı}}| | {{{1}}} | ||
|i|ı}} | |||
|ạ́|ạ́}} | |||
|ạ̈|ạ̈}} | |||
|ậ|ậ}} | |||
|ụ́|ụ́}} | |||
|ụ̈|ụ̈}} | |||
|ụ̂|ụ̂}} | |||
|ị́|ị́}} | |||
|ị̈|ị̈}} | |||
|ị̂|ị̂}} | |||
|ọ́|ọ́}} | |||
|ọ̈|ọ̈}} | |||
|ộ|ộ}} | |||
|ẹ́|ẹ́}} | |||
|ẹ̈|ẹ̈}} | |||
|ệ|ệ}}</span | |||
>{{#if: {{{3|}}} | >{{#if: {{{3|}}} | ||
| {{#ifeq: {{{4|}}} | {{{4}}} | <sup>[https://toadua.uakci.pl/#{{{3}}} <nowiki></nowiki>{{{3}}}]</sup> | | {{#ifeq: {{{4|}}} | {{{4}}} | <sup>[https://toadua.uakci.pl/#{{{3}}} <nowiki></nowiki>{{{3}}}]</sup> |
Latest revision as of 19:13, 2 December 2023
Synopsis
Applies appropriate formatting and language tags to Toaq text. Please enclose each and every snippet of Toaq in this template.
Positional arguments
- toaq (required)
-
- definition (recommended)
- shown as tooltip
-
- toadua query (optional)
- if provided but left empty, the query is prefilled with the word itself
-
- show query (optional)
- if present (no matter the content), the query (as supplied above) will be displayed next to the link arrow
Examples
Toadua-linked entries are preferred to ones without a link or a tooltip. If supplying single words without appropriate context to determine their meaning, please use the {{t|bao||}}
form.
- No Toadua link
-
- Plain Toaq text
{{t|bao}}
→ bao
-
- Word with user-defined definition tooltip
{{t|bao|{{x}} is white.}}
→ bao
-
- Implicit Toadua link
- Explicit Toadua link
-
- Word with definition tooltip, explicit Toadua link, and an indication of what query that link will take you to
{{t|bao|{{x}} is white.|#my cool definition of bao}}
→ baocool definition of bao