Template:Example: Difference between revisions
Content added Content deleted
No edit summary |
(add templatedata) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><blockquote> |
<includeonly><blockquote> |
||
{{#if:{{{sp|}}}||{{#if:{{{from|}}}||{{#if:{{{3|}}}|{{sps|{{Trim|{{{3}}}}}}}|{{sps|{{Trim|{{#replace:{{#replace:{{{1}}}|.| }}|,|}}}}}}}}< |
{{#if:{{{sp|}}}||{{#if:{{{from|}}}||<div class="noexcerpt">{{#if:{{{3|}}}|{{sps|{{Trim|{{{3}}}}}}}|{{sps|{{Trim|{{#replace:{{#replace:{{{1}}}|.| }}|,|}}}}}}}}</div>}}}} |
||
{{#if:{{{2|<noinclude><nowiki /></noinclude>}}}|'''}}{{#if:{{{from|}}}|{{lang|{{{from}}}|{{{1}}}}}|{{tp|{{{1}}}}}}}{{#if:{{{2|<noinclude><nowiki /></noinclude>}}}|'''}} |
{{#if:{{{2|<noinclude><nowiki /></noinclude>}}}|'''}}{{#if:{{{from|}}}|{{lang|{{{from}}}|{{{1}}}}}|{{tp|{{{1}}}}}}}{{#if:{{{2|<noinclude><nowiki /></noinclude>}}}|'''}} |
||
{{#if:{{{2|<noinclude><nowiki /></noinclude>}}}|{{Indent| |
{{#if:{{{2|<noinclude><nowiki /></noinclude>}}}|{{Indent| |
||
Line 14: | Line 14: | ||
<code><nowiki>{{Example|ma Kanata|Canada|ma [kasi alasa nasin awen telo a]}}</nowiki></code> becomes {{Example|ma Kanata|Canada|ma [kasi alasa nasin awen telo a]}} |
<code><nowiki>{{Example|ma Kanata|Canada|ma [kasi alasa nasin awen telo a]}}</nowiki></code> becomes {{Example|ma Kanata|Canada|ma [kasi alasa nasin awen telo a]}} |
||
<templatedata> |
|||
⚫ | |||
{ |
|||
"params": { |
|||
"1": { |
|||
"label": "Word", |
|||
"description": "Type in sitelen latin to display both sitelen pona and sitelen latin.", |
|||
"type": "string" |
|||
}, |
|||
"2": { |
|||
"label": "Translation", |
|||
"description": "Input the English translation here", |
|||
"type": "string" |
|||
}, |
|||
"3": { |
|||
"label": "Override sitelen pona?", |
|||
"description": "Overrides the auto-generated sitelen pona. Main use case is to input proper nouns.", |
|||
"example": "ma [kasi alasa nasin awen telo a]", |
|||
"type": "string" |
|||
}, |
|||
"sp": { |
|||
"label": "Include sitelen pona?", |
|||
"type": "boolean", |
|||
"default": "yes" |
|||
}, |
|||
"from": { |
|||
"description": "use ISO language codes; hides the toki pona translations", |
|||
"example": "en, kr, " |
|||
} |
|||
}, |
|||
"description": "Automatically adds sitelen pona, translation, and/or sitelen latin for examples", |
|||
"paramOrder": [ |
|||
"1", |
|||
"2", |
|||
"3", |
|||
"sp", |
|||
"from" |
|||
] |
|||
} |
|||
⚫ |
Latest revision as of 12:06, 8 December 2023
{{Example|ma}}
becomes
mama
{{Example|place|from=en}}
becomes
place
{{Example|ma|place}}
becomes
mama
place
{{Example|ma|place|sp=no}}
(or anything other than "no") becomes
ma
place
{{Example|ma Kanata|Canada|ma [kasi alasa nasin awen telo a]}}
becomes
ma [kasi alasa nasin awen telo a]ma Kanata
Canada
Automatically adds sitelen pona, translation, and/or sitelen latin for examples
Parameter | Description | Type | Status | |
---|---|---|---|---|
Word | 1 | Type in sitelen latin to display both sitelen pona and sitelen latin. | String | optional |
Translation | 2 | Input the English translation here | String | optional |
Override sitelen pona? | 3 | Overrides the auto-generated sitelen pona. Main use case is to input proper nouns.
| String | optional |
Include sitelen pona? | sp | no description
| Boolean | optional |
from | from | use ISO language codes; hides the toki pona translations
| Unknown | optional |