Template:Example: Difference between revisions

add templatedata
No edit summary
(add templatedata)
 
(2 intermediate revisions by one other user not shown)
Line 1:
<includeonly><blockquote>
{{#if:{{{sp|}}}||{{#if:{{{from|}}}||<div class="noexcerpt">{{#if:{{{3|}}}|{{sps|{{Trim|{{{3}}}}}}}|{{sps|{{Trim|{{#replace:{{Trim|#replace:{{{1}}}}}|.|&#x3000;}}|,|}}}}}} }}<br/div>}}}}
{{#if:{{{2|<noinclude><nowiki /></noinclude>}}}|'''}}{{#if:{{{from|}}}|{{lang|{{{from}}}|{{{1}}}}}|{{tp|{{{1}}}}}}}{{#if:{{{2|<noinclude><nowiki /></noinclude>}}}|'''}}
{{#if:{{{2|<noinclude><nowiki /></noinclude>}}}|{{Indent|
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]}}
<templatedata>
</noinclude>
{
"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"
]
}
</templatedata></noinclude>