Template:nimi: Difference between revisions
(opinionated: parameter 1 set to the same as the title removes categories already, make it remove {{tp title}} too for consistency) |
(testing something hold on) Tag: Reverted |
||
Line 1: | Line 1: | ||
{{#if:{{{2|}}}|{{#if:{{#pos:{{PAGENAME}}|{{{2}}}}}|{{tp title|{{{2}}}}}}}|<!--else-->{{#if:{{{1|}}}||{{tp title}}}}}} |
<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 */));" |
{|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;"><!-- |
|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;"><!-- |
||
Line 25: | Line 25: | ||
{{!}}{{UCSUR char|{{codepoint|{{{1|{{PAGENAME}}}}}}}|codepoint=yes|font="nasin nanpa","Fairfax Pona HD","linja lipamanka","linja sike","linja pona",sans-serif}} |
{{!}}{{UCSUR char|{{codepoint|{{{1|{{PAGENAME}}}}}}}|codepoint=yes|font="nasin nanpa","Fairfax Pona HD","linja lipamanka","linja sike","linja pona",sans-serif}} |
||
}} |
}} |
||
|}< |
|}</includeonly> |
||
<noinclude> |
|||
==Documentation== |
==Documentation== |
||
<nowiki>{{</nowiki>nimi |
<nowiki>{{</nowiki>nimi |
Revision as of 20:08, 31 January 2024
|
}}
|-
!style="font-size:smaller;text-align:start;width:80px;"|Pronunciation
|/ˈni
2022: Core (99%)
|-
!style="font-size:smaller;text-align:start;"|Book and era
|nimi pu
|-
!style="font-size:smaller;text-align:start;"|Part of speech
|Content word
|-
!style="font-size:smaller;text-align:start;"|Codepoint
| U+F1942
|}</includeonly>
Documentation
{{nimi |PoS=content word¦semiparticle¦both¦particle¦preposition¦preverb¦number¦ala }}
Usage data is retrieved from {{usage 2023}}
, {{usage cat 2023}}
, {{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
Toki Pona word infobox
Parameter | Description | Type | Status | |
---|---|---|---|---|
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. | Boolean | optional |
Word | 1 | 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.
| String | optional |
sitelen pona image | sp | Filename for an image of the word's sitelen pona glyph, if none are automatically found
| File | optional |
sitelen sitelen image | ss | Filename for an image of the word's sitelen sitelen glyph, if none is automatically found
| File | optional |
Image | image | Filename for an image that describes the word's meaning | File | suggested |
Image alt text | alt | 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. | String | required |
IPA pronunciation | IPA | 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.
| String | optional |
Audio pronunciation | audio | Filename for an audio recording of the word's pronunciation, if none are automatically found | File | optional |
Deprecated? | deprecated | Indicates that the word's creator has deprecated it | Boolean | optional |
Part of speech | PoS | Word's most specialized part of speech
| String | required |