Template:nimi: Difference between revisions

From sona pona, the Toki Pona wiki
Content added Content deleted
No edit summary
No edit summary
 
(116 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}||{{Short description|{{{shortdesc|{{ucfirst category|{{{1|{{PAGENAME}}}}}}} Toki Pona {{format PoS shortdesc|{{{PoS}}}}} {{{shortdesc+|}}}}}}|2=noreplace}}}}</includeonly><!--
<includeonly>{{Italic title}}</includeonly>
-->{{#if:{{{2|}}}|{{#if:{{#pos:{{PAGENAME}}|{{{2}}}}}|{{tp title|{{{2}}}}}}}|<!--else-->{{#if:{{{1|}}}||{{tp title}}}}}}
{|class="wikitable" style="float:right;margin:0 0 1em 1em;"
{|class="infobox wikitable {{#if:{{{compact|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" data-collapsetext="&minus;" data-expandtext="&plus;" style="box-sizing:content-box;clear:right;float:right;margin:0 0 1em 1em;width:calc(240px + (2 * 0.4em /* td padding horizontal */) + (2 * 0.2em /* table border-spacing */));"
|+style="min-width:120px;padding:0 0 1em;"|<big>{{tp|{{{1|{{PAGENAME}}}}}}}</big>{{#if:{{{sp|}}}<!--or-->{{{ss|}}}<!--or-->{{#pos:{{120}}|^{{{1|{{PAGENAME}}}}}$}}|<br />}}
|colspan="2" style="text-align:center;width:240px;"|<div style="font-size:larger;font-weight:bold;">[[sitelen Lasina|<span style="color:#202122;">{{tp|{{poak cursive|{{{2|{{{1|{{PAGENAME}}}}}}}}}}}}</span>]]</div><span class="mw-no-invert" style="mix-blend-mode:multiply;"><!--
{{#if:{{{sp|}}}<!--or-->{{#pos:{{120}}|^{{{1|{{PAGENAME}}}}}$}}|[[File:{{{sp|{{{1|{{PAGENAME}}}}} - sitelen pona in Sonja Lang's handwriting.svg}}}|60x60px|link=sitelen pona|{{tp|{{{1|{{PAGENAME}}}}}}} in {{tp|[[sitelen pona]]}}]]}}{{#if:{{{ss|}}}<!--or-->{{#pos:{{120}}|^{{{1|{{PAGENAME}}}}}$}}|[[File:{{{ss|{{{1|{{PAGENAME}}}}} - sitelen sitelen word symbol.svg}}}|60x60px|link=sitelen sitelen|{{tp|{{{1|{{PAGENAME}}}}}}} in {{tp|[[sitelen sitelen]]}}]]}}
sitelen pona:-->{{#if:{{{sp|}}}|<div style="display:inline-block;width:50%;">[[File:{{{sp}}}|60x60px|link=sitelen pona|alt={{{1|{{PAGENAME}}}}} in sitelen pona|{{tp|{{{1|{{PAGENAME}}}}}}} in {{tp|[[sitelen pona]]}}]]<includeonly>{{#if:{{{1|}}}||[[Category:Words with sitelen pona glyphs]][[Category:Words with sitelen pona glyphs added manually]]}}</includeonly></div><!--
else use pu glyph-->|{{#if:{{#ifexist:Media:{{ucfirst:{{{1|{{PAGENAME}}}}}}} - sitelen pona pu (monospaced).svg|true}}<!--or-->{{#pos:{{120}}|^{{{1|{{PAGENAME}}}}}$}}|<div style="display:inline-block;width:50%;">[[File:{{{sp|{{ucfirst:{{{1|{{PAGENAME}}}}}}} - sitelen pona pu (monospaced).svg}}}|60x60px|link=sitelen pona|alt={{{1|{{PAGENAME}}}}} in sitelen pona|{{tp|{{{1|{{PAGENAME}}}}}}} in {{tp|[[sitelen pona]]}}]]<includeonly>{{#if:{{{1|}}}||[[Category:Words with sitelen pona glyphs]][[Category:Words with sitelen pona glyphs detected in pu]]}}</includeonly></div><!--
else use pu Epelanto glyph-->|{{#ifexist:Media:{{ucfirst:{{{1|{{PAGENAME}}}}}}} - sitelen pona tan lipu pu pi toki Epelanto.png|<div style="display:inline-block;width:50%;">[[File:{{ucfirst:{{{1|{{PAGENAME}}}}}}} - sitelen pona tan lipu pu pi toki Epelanto.png|60x60px|link=sitelen pona|alt={{{1|{{PAGENAME}}}}} in sitelen pona|{{tp|{{{1|{{PAGENAME}}}}}}} in {{tp|[[sitelen pona]]}}]]<includeonly>{{#if:{{{1|}}}||[[Category:Words with sitelen pona glyphs]][[Category:Words with sitelen pona glyphs detected in pu Epelanto]]}}</includeonly></div><!--
else use sitelen seli kiwen glyph (reconsidered per [[SP:N]])-->|{{#ifexist:Media:Sitelen seli kiwen - {{lc:{{{1|{{PAGENAME}}}}}}}.png|<includeonly>{{#if:{{{1|}}}||[[Category:Words with sitelen pona glyphs detected in sitelen seli kiwen]]}}</includeonly>}}}}}}}}<!--
sitelen sitelen:-->{{#if:{{{ss|}}}<!--or-->{{#ifexist:Media:{{ucfirst:{{{1|{{PAGENAME}}}}}}} - sitelen sitelen word symbol drawn by Jonathan Gabel.jpg|true}}<!--or-->{{#pos:{{120}}|^{{{1|{{PAGENAME}}}}}$}}|<div style="display:inline-block;width:50%;">[[File:{{{ss|{{ucfirst:{{{1|{{PAGENAME}}}}}}} - sitelen sitelen word symbol drawn by Jonathan Gabel.jpg}}}|60x60px|link=sitelen sitelen|alt={{{1|{{PAGENAME}}}}} in sitelen sitelen|{{tp|{{{1|{{PAGENAME}}}}}}} in {{tp|[[sitelen sitelen]]}}]]<includeonly>{{#if:{{{1|}}}||[[Category:Words with sitelen sitelen glyphs]]}}</includeonly></div>}}</span>
{{#if:{{{image|}}}|{{!}}-
{{!}}colspan="2"{{!}}[[File:{{{image}}}|center|240x240px|alt={{{alt|}}}|{{{alt|}}}]]}}
{{#ifeq:{{{IPA|}}}|none||{{!}}-
!style="font-size:smaller;text-align:start;width:80px;"{{!}}[[Phonology|Pronunciation]]
{{!}}{{w|International Phonetic Alphabet|{{IPA|{{{IPA|/{{IPAize|{{{1|{{PAGENAME}}}}}}}/{{#ifeq:{{IPAize|{{{1|{{PAGENAME}}}}}}}|{{IPAize narrow|{{{1|{{PAGENAME}}}}}}}||, [{{IPAize narrow|{{{1|{{PAGENAME}}}}}}}]}}}}}}}}}{{#if:{{#pos:{{{IPA|{{lc:{{{1|{{PAGENAME}}}}}}}}}}|j}}|{{Notice compact|{{IPA|/j/}} sounds like English Y, as in "f<mark>j</mark>ord" or "hallelu<mark>j</mark>ah".}}|<br />}}{{#ifexist:Media:Toki Pona - jan Lakuse - {{lc:{{{1|{{PAGENAME}}}}}}}.ogg|<nowiki /> {{audio|Toki Pona - jan Lakuse - {{lc:{{{1|{{PAGENAME}}}}}}}.ogg|alt=Listen to jan Lakuse pronounce this word}}}}{{#ifexist:Media:Toki Pona - kala Asi - {{lc:{{{1|{{PAGENAME}}}}}}}.ogg|<nowiki /> {{audio|Toki Pona - kala Asi - {{lc:{{{1|{{PAGENAME}}}}}}}.ogg|alt=Listen to kala Asi pronounce this word}}}}{{#if:{{{audio|}}}|<nowiki /> {{audio|{{{audio}}}|alt=Listen to a pronunciation of this word}}}}}}
|-
|-
!style="text-align:left;"|Usage
!style="font-size:smaller;text-align:start;width:80px;"|[[Usage categories|Usage]]
|class="mw-collapsible mw-collapsed" data-collapsetext="&minus;" data-expandtext="&plus;"|<small class="mw-collapsible-content">'''2023:'''</small> {{#iferror:{{usage cat 2023-4|{{usage 2023|{{{1|{{PAGENAME}}}}}}}}}{{#ifeq:{{usage cat 2023-4|{{usage 2023|{{{1|{{PAGENAME}}}}}}}}}|{{usage cat 2023-6|{{usage 2023|{{{1|{{PAGENAME}}}}}}}}}||<span class="mw-collapsible-content">{{abbr|<sub>4</sub>|4-category system}}, {{usage cat 2023-6|{{usage 2023|{{{1|{{PAGENAME}}}}}}}}}{{abbr|<sub>6</sub>|6-category system}}</span>}} <small>({{usage 2023|{{{1|{{PAGENAME}}}}}}}%{{usage delta|{{{1|{{PAGENAME}}}}}|from=2022|to=2023}})</small>{{#ifexpr:{{usage 2023|{{{1|{{PAGENAME}}}}}}} < 50|{{Notice compact|{{#ifexpr:{{usage 2023|{{{1|{{PAGENAME}}}}}}} < 10|[[File:Ambox warning pn.svg|12x12px|baseline|Caution:]] Most speakers <span style="color:#d33;">'''don't understand'''</span> this word.|[[File:Ambox warning yellow.svg|12x12px|baseline|Caution:]] Most speakers '''don't use''' this word.}}}}}}|{{abbr|N/A|Not applicable}}{{Notice compact|1=[[File:Ambox warning pn.svg|12x12px|baseline|Caution:]] This word has not been surveyed for. Most speakers likely <span style="color:#d33;">'''don't understand'''</span> it.}}}}{{#iferror:<span class="mw-collapsible-content" style="display:block;"><small>'''2022:'''</small> {{usage cat 2022|{{usage 2022|{{{1|{{PAGENAME}}}}}}}}} <small>({{usage 2022|{{{1|{{PAGENAME}}}}}}}%)</small></span>}}{{#if:{{{deprecated|}}}|{{Notice compact|This word is [[:Category:Deprecated words|'''deprecated''']].}}<includeonly>{{#if:{{{1|}}}||[[Category:Deprecated words]]}}</includeonly>}}
|[[ijo Linku#Word usage surveys|{{#switch:{{{usage<noinclude>|99</noinclude>}}}
| 0| 1| 2| 3| 4| 5| 6| 7| 8| 9=Obscure <small>({{{usage<noinclude>|99</noinclude>}}}%)</small>
| 10|11|12|13|14|15|16|17|18|19=Rare <small>({{{usage<noinclude>|99</noinclude>}}}%)</small>
| 20|21|22|23|24|25|26|27|28|29
| 30|31|32|33|34|35|36|37|38|39
| 40|41|42|43|44|45|46|47|48|49=Uncommon <small>({{{usage<noinclude>|99</noinclude>}}}%)</small>
| 50|51|52|53|54|55|56|57|58|59
| 60|61|62|63|64|65|66|67|68|69=Common <small>({{{usage<noinclude>|99</noinclude>}}}%)</small>
| 70|71|72|73|74|75|76|77|78|79
| 80|81|82|83|84|85|86|87|88|89=Widespread <small>({{{usage<noinclude>|99</noinclude>}}}%)</small>
| 90|91|92|93|94|95|96|97|98|99
|100 =Core <small>({{{usage<noinclude>|99</noinclude>}}}%)</small>
|''Unknown''
}}]]{{#switch:{{lc:{{{book<noinclude>|pu</noinclude>}}}}}
|pu=, {{tp|[[nimi pu]]}}
|ku suli=, {{tp|[[nimi ku suli]]}}
|ku lili=, {{tp|[[nimi ku lili]]}}
|none=, [[nimisin|''no book'']]
}}
|-
|-
!style="text-align:left;"|Part of speech
!style="font-size:smaller;text-align:start;"|[[Book presence|Book]] and [[Eras|era]]
|{{book|{{{1|{{PAGENAME}}}}}<includeonly>|cat={{#if:{{{1|}}}||yes}}</includeonly>}}
|{{#switch:{{lc:{{{PoS<noinclude>|content word</noinclude>}}}}}
|content word=[[content word|Content word]]<includeonly>[[Category:Content words|{{{1|{{PAGENAME}}}}}]]</includeonly>
|particle=[[particle|Particle]]<includeonly>[[Category:Particles|{{{1|{{PAGENAME}}}}}]]</includeonly>
|both=[[particle|Particle]], [[content word]]<includeonly>[[Category:Particles|{{{1|{{PAGENAME}}}}}]][[Category:Content words|{{{1|{{PAGENAME}}}}}]]</includeonly>
}}
|-
|-
!style="text-align:left;"|[[UCSUR|Codepoint]]
!style="font-size:smaller;text-align:start;"|[[Parts of speech|Part of speech]]
|{{format PoS|{{{PoS<noinclude>|content word</noinclude>}}}<includeonly>|cat={{#if:{{{1|}}}||yes}}</includeonly>}}
|{{#if:{{{UCSUR|<noinclude>F1942</noinclude>}}}|<span style="font-family:'linja lipamanka','Fairfax Pona HD','nasin nanpa','linja sike','linja pona',sans-serif;">{{tok|&#x{{{UCSUR<noinclude>|F1942</noinclude>}}};}}</span> <small>U+{{uc:{{{UCSUR<noinclude>|F1942</noinclude>}}}}}</small>|''None''}}
{{#if:{{codepoint|{{{1|{{PAGENAME}}}}}}}|{{!}}-
|}
!style="font-size:smaller;text-align:start;"{{!}}[[UCSUR|Codepoint]]
<noinclude>
{{!}}{{UCSUR char|{{codepoint|{{{1|{{PAGENAME}}}}}}}|codepoint=yes|font="nasin nanpa","Fairfax Pona HD","linja lipamanka","linja sike","linja pona",sans-serif}}

}}
|}<noinclude>
==Documentation==
==Documentation==
{{Auto short description|method=using the parameter <code style="display:inline-block;"><nowiki>|shortdesc=</nowiki></code>, or append to it using <code style="display:inline-block;"><nowiki>|shortdesc+=</nowiki></code>}}
<nowiki>{{</nowiki>nimi
<nowiki>{{</nowiki>nimi
|PoS=content word&brvbar;semiparticle&brvbar;both&brvbar;particle&brvbar;preposition&brvbar;preverb&brvbar;number&brvbar;ala
|usage=0~100
|book={{tok|pu}}&brvbar;{{tok|ku suli}}&brvbar;{{tok|ku lili}}&brvbar;none
|PoS=content word&brvbar;particle&brvbar;both
|UCSUR=F19xx
}}
}}

</noinclude>
Usage data is retrieved from <code>[[Template:usage 2023|<nowiki>{{usage 2023}}</nowiki>]]</code>, <code>[[Template:usage cat 2023-4|<nowiki>{{usage cat 2023-4}}</nowiki>]]</code>, <code>[[Template:usage cat 2023-6|<nowiki>{{usage cat 2023-6}}</nowiki>]]</code>, <code>[[Template:usage 2022|<nowiki>{{usage 2022}}</nowiki>]]</code>, <code>[[Template:usage cat 2022|<nowiki>{{usage cat 2022}}</nowiki>]]</code>, and <code>[[Template:book|<nowiki>{{book}}</nowiki>]]</code>. Codepoint data is retrieved from <code>[[Template:codepoint|<nowiki>{{codepoint}}</nowiki>]]</code>, <code>[[Template:UCSUR name|<nowiki>{{UCSUR name}}</nowiki>]]</code>, and <code>[[Template:UCSUR char|<nowiki>{{UCSUR char}}</nowiki>]]</code>.

To set the caption and data to a different word than the current pagename, use parameter 1. For proper categorization, you should then create a redirect at the name of the word itself, adding a copy of this template <em>below</em> the redirect. (If <code>#REDIRECT</code> is not on the first line, the redirect will break).

To set custom images for {{tp|sitelen pona}} or {{tp|sitelen sitelen}} glyphs, add the parameter <code>sp</code> or <code>ss</code>.

To set an illustrative image, add the parameter <code>image</code>.

To indicate that a word's creator has deprecated it, add the parameter <code>deprecated</code>.

===Template data===
<templatedata>
{
"params": {
"1": {
"label": "Word",
"description": "Word that the infobox describes and finds glyph, usage, and codepoint data for, if it is different from the page title. Also suppresses the addition of categories and title formatting. Thus, make sure an article or redirect is created with this value as its title, with its own instance of this infobox in which this parameter is empty.",
"example": "nimi",
"type": "string"
},
"sp": {
"label": "sitelen pona image",
"description": "Filename for an image of the word's sitelen pona glyph, if none are automatically found",
"example": "nimi - sitelen pona in Sonja Lang's handwriting.svg",
"type": "wiki-file-name"
},
"ss": {
"label": "sitelen sitelen image",
"description": "Filename for an image of the word's sitelen sitelen glyph, if none is automatically found",
"example": "nimi - sitelen sitelen word symbol drawn by Jonathan Gabel.jpg",
"type": "wiki-file-name"
},
"image": {
"label": "Image",
"description": "Filename for an image that describes the word's meaning",
"type": "wiki-file-name",
"suggested": true
},
"PoS": {
"label": "Part of speech",
"description": "Word's most specialized part of speech",
"type": "string",
"suggestedvalues": [
"content word",
"semiparticle",
"both",
"particle",
"preposition",
"preverb",
"number",
"ala"
],
"required": true
},
"collapsed": {
"aliases": [
"compact"
],
"label": "Collapsed?",
"description": "Collapses the infobox to show only the word and glyph images at first. Used in subsections, to help prevent several consecutive infoboxes from adding collisions or excessive empty space to the page layout.",
"type": "boolean"
},
"IPA": {
"label": "IPA pronunciation",
"description": "Word's pronunciation in the International Phonetic alphabet, if the automatically generated transcription is incorrect. Set this parameter to none if the word is completely unpronounceable.",
"type": "string",
"suggestedvalues": [
"none"
]
},
"audio": {
"label": "Audio pronunciation",
"description": "Filename for an audio recording of the word's pronunciation, if none are automatically found",
"type": "wiki-file-name"
},
"deprecated": {
"label": "Deprecated?",
"description": "Indicates that the word's creator has deprecated it",
"type": "boolean"
},
"alt": {
"label": "Image alt text",
"description": "Short description of the image. Displayed instead of the image if it cannot be rendered or viewed. Should not alter the meaning of the page. Important for accessibility.",
"type": "string",
"required": true
}
},
"description": "Toki Pona word infobox",
"format": "block",
"paramOrder": [
"collapsed",
"1",
"sp",
"ss",
"image",
"alt",
"IPA",
"audio",
"deprecated",
"PoS"
]
}
</templatedata></noinclude>

Latest revision as of 23:59, 12 May 2024

nimi in sitelen pona
nimi in sitelen sitelen
Pronunciation /ˈni.mi/
Usage 2023: Core (100% ↗︎ )2022: Core (99%)
Book and era nimi pu
Part of speech Content word
Codepoint 󱥂 U+F1942

Documentation[edit source]

This template adds an automatically generated short description. If the automatic short description is not optimal, replace it using the parameter |shortdesc=, or append to it using |shortdesc+=.
{{nimi
|PoS=content word¦semiparticle¦both¦particle¦preposition¦preverb¦number¦ala
}}

Usage data is retrieved from {{usage 2023}}, {{usage cat 2023-4}}, {{usage cat 2023-6}}, {{usage 2022}}, {{usage cat 2022}}, and {{book}}. Codepoint data is retrieved from {{codepoint}}, {{UCSUR name}}, and {{UCSUR char}}.

To set the caption and data to a different word than the current pagename, use parameter 1. For proper categorization, you should then create a redirect at the name of the word itself, adding a copy of this template below the redirect. (If #REDIRECT is not on the first line, the redirect will break).

To set custom images for sitelen pona or sitelen sitelen glyphs, add the parameter sp or ss.

To set an illustrative image, add the parameter image.

To indicate that a word's creator has deprecated it, add the parameter deprecated.

Template data[edit source]

Toki Pona word infobox

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Collapsed?collapsed compact

Collapses the infobox to show only the word and glyph images at first. Used in subsections, to help prevent several consecutive infoboxes from adding collisions or excessive empty space to the page layout.

Booleanoptional
Word1

Word that the infobox describes and finds glyph, usage, and codepoint data for, if it is different from the page title. Also suppresses the addition of categories and title formatting. Thus, make sure an article or redirect is created with this value as its title, with its own instance of this infobox in which this parameter is empty.

Example
nimi
Stringoptional
sitelen pona imagesp

Filename for an image of the word's sitelen pona glyph, if none are automatically found

Example
nimi - sitelen pona in Sonja Lang's handwriting.svg
Fileoptional
sitelen sitelen imagess

Filename for an image of the word's sitelen sitelen glyph, if none is automatically found

Example
nimi - sitelen sitelen word symbol drawn by Jonathan Gabel.jpg
Fileoptional
Imageimage

Filename for an image that describes the word's meaning

Filesuggested
Image alt textalt

Short description of the image. Displayed instead of the image if it cannot be rendered or viewed. Should not alter the meaning of the page. Important for accessibility.

Stringrequired
IPA pronunciationIPA

Word's pronunciation in the International Phonetic alphabet, if the automatically generated transcription is incorrect. Set this parameter to none if the word is completely unpronounceable.

Suggested values
none
Stringoptional
Audio pronunciationaudio

Filename for an audio recording of the word's pronunciation, if none are automatically found

Fileoptional
Deprecated?deprecated

Indicates that the word's creator has deprecated it

Booleanoptional
Part of speechPoS

Word's most specialized part of speech

Suggested values
content word semiparticle both particle preposition preverb number ala
Stringrequired