Template:nimi: Difference between revisions
changed pu versions of sitelen pona to original vector images by Sonja
No edit summary |
(changed pu versions of sitelen pona to original vector images by Sonja) |
||
(48 intermediate revisions by 4 users not shown) | |||
Line 1:
<includeonly>{{#if:{{{1|}}}||{{Short description|{{{shortdesc|{{ucfirst category|{{{1|{{PAGENAME}}}}}}} Toki Pona {{format PoS shortdesc|{{{PoS}}}}} {{{shortdesc+|}}}}}}|2=noreplace}}}}</includeonly><!--
-->{{#if:{{{2|}}}|{{#if:{{#pos:{{PAGENAME}}|{{{2}}}}}|{{tp title|{{{2}}}}}}}|<!--else-->{{#if:{{{1|}}}||{{tp title}}}}}}
{|class="infobox wikitable {{#if:{{{compact|{{{collapsed|}}}}}}|mw-collapsible mw-collapsed}}" data-collapsetext="−" data-expandtext="+" 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 */));"
|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;"><!--
sitelen pona:-->{{#if:{{{sp|}}}<!--or-->{{#ifexist:Media:{{ucfirst:{{{1|{{PAGENAME}}}}}}} - sitelen pona in Sonja Lang's handwriting.svg|true}}<!--or-->{{#pos:{{120}}|^{{{1|{{PAGENAME}}}}}$}}|<div style="display:inline-block;width:50%;">[[File:{{{sp|{{ucfirst:{{{1|{{PAGENAME}}}}}}} - sitelen pona in Sonja Lang's handwriting.svg}}}|60x60px|link=sitelen pona|{{tp|{{{1|{{PAGENAME}}}}}}} in {{tp|[[sitelen pona]]}}]]<includeonly>{{#if:{{{1|}}}||[[Category:Words with sitelen pona glyphs]]}}</includeonly></div>}}<!--▼
sitelen
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
{{#if:{{{image|}}}|{{!}}-
{{!}}colspan="2"{{!}}[[File:{{{image}}}|center|240x240px|alt={{{alt|}}}|{{{alt|}}}]]}}
{{#ifeq:{{{IPA|}}}|none||{{!}}-
{{!}}{{w|
▲!style="font-size:smaller;text-align:start;width:80px;"|[[Phonology|Pronunciation]]
▲|[[International Phonetic Alphabet|{{IPA|{{{IPA|/{{IPAize|{{{1|{{PAGENAME}}}}}}}/{{#ifeq:{{IPAize|{{{1|{{PAGENAME}}}}}}}|{{IPAize narrow|{{{1|{{PAGENAME}}}}}}}||, [{{IPAize narrow|{{{1|{{PAGENAME}}}}}}}]}}}}}}}]]{{#if:{{{audio|}}}|<nowiki /> <small>[[:File:{{{audio}}}|(listen)]]</small>|{{#ifexist:Media:Toki Pona - jan Lakuse - {{lc:{{{1|{{PAGENAME}}}}}}}.ogg|<nowiki /> <small>[[:Media:Toki Pona - jan Lakuse - {{lc:{{{1|{{PAGENAME}}}}}}}.ogg|(listen)]]</small>}}}}{{#if:{{#pos:{{{IPA|{{lc:{{{1|{{PAGENAME}}}}}}}}}}|j}}|<small style="background:#fef6e7;border:1px solid #fc3;color:#000;display:block;padding:0.2em 0.4em;">{{IPA|/j/}} sounds like English Y, as in "f<mark>j</mark>ord" or "hallelu<mark>j</mark>ah".</small>}}
|-
!style="font-size:smaller;text-align:start;width:80px;"|[[
|class="mw-collapsible mw-collapsed" data-collapsetext="−" data-expandtext="+"|
|-
!style="font-size:smaller;text-align:start;"|[[Book presence|Book]] and [[Eras|era]]
Line 21 ⟶ 24:
{{#if:{{codepoint|{{{1|{{PAGENAME}}}}}}}|{{!}}-
!style="font-size:smaller;text-align:start;"{{!}}[[UCSUR|Codepoint]]
{{!}}{{UCSUR char|{{codepoint|{{{1|{{PAGENAME}}}}}}}|codepoint=yes|font="nasin nanpa","Fairfax Pona HD","linja lipamanka","linja sike","linja pona",sans-serif}}
}}
|}<noinclude>
==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
|PoS=content word¦semiparticle¦both¦particle¦preposition¦preverb¦number¦ala
}}
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).
Line 45 ⟶ 49:
"1": {
"label": "Word",
"description": "
"example": "nimi",
"type": "string"
Line 51 ⟶ 55:
"sp": {
"label": "sitelen pona image",
"description": "Filename for an image of the word's sitelen pona glyph, if none
"example": "nimi - sitelen pona in Sonja Lang's handwriting.svg",
"type": "wiki-file-name"
Line 69 ⟶ 73:
"PoS": {
"label": "Part of speech",
"description": "
"type": "string",
"suggestedvalues": [
Line 75 ⟶ 79:
"semiparticle",
"both",
"preposition",
"preverb",
"number",
],
"required": true
},
"
"
"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
}
},
Line 92 ⟶ 123:
"format": "block",
"paramOrder": [
"collapsed",
"1",
"sp",
"ss",
"image",
"
"
"audio",
"deprecated",
"PoS"
]
}
|