Template:Example: Difference between revisions

From sona pona, the Toki Pona wiki
Content added Content deleted
No edit summary
(add templatedata)
 
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>
</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>

Latest revision as of 12:06, 8 December 2023

{{Example|ma}} becomes

ma

ma

{{Example|place|from=en}} becomes

place

{{Example|ma|place}} becomes

ma

ma

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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Word1

Type in sitelen latin to display both sitelen pona and sitelen latin.

Stringoptional
Translation2

Input the English translation here

Stringoptional
Override sitelen pona?3

Overrides the auto-generated sitelen pona. Main use case is to input proper nouns.

Example
ma [kasi alasa nasin awen telo a]
Stringoptional
Include sitelen pona?sp

no description

Default
yes
Booleanoptional
fromfrom

use ISO language codes; hides the toki pona translations

Example
en, kr,
Unknownoptional