Template:usage delta: Difference between revisions

From sona pona, the Toki Pona wiki
Content added Content deleted
(Created page with "{{#switch:{{sgn|{{usage {{{to}}}|{{{1}}}}}-{{usage {{{from}}}|{{{1}}}}}}} | 1=↗ | 0=→ |-1=↘ }}<noinclude> ==Documentation== <templatedata> { "params": { "1": { "label": "Word", "description": "The word to check", "example": "nimi", "type": "string", "required": true }, "to": { "label": "To year", "type": "number", "suggestedvalues": [ "2022", "2023" ], "required": true }, "from":...")
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#switch:{{sgn|{{usage {{{to}}}|{{{1}}}}}-{{usage {{{from}}}|{{{1}}}}}}}
{{#switch:{{sgn|{{usage {{{to}}}|{{{1}}}}}-{{usage {{{from}}}|{{{1}}}}}}}
| 1=&UpperRightArrow;
| 1=&nbsp;<span style="color: green">&UpperRightArrow;&#xFE0E;</span>&nbsp;
| 0=&RightArrow;
| 0=&nbsp;&RightArrow;&nbsp;
|-1=&LowerRightArrow;
|-1=&nbsp;<span style="color: maroon">&LowerRightArrow;&#xFE0E;</span>&nbsp;
}}<noinclude>
}}<noinclude>

==Documentation==
==Documentation==
<templatedata>
<templatedata>

Latest revision as of 00:39, 10 January 2024


Documentation[edit source]

Outputs an arrow showing the change in a word's usage between two years.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Word1

The word to check

Example
nimi
Stringrequired
From yearfrom

no description

Suggested values
2022 2023
Numberrequired
To yearto

no description

Suggested values
2022 2023
Numberrequired