Jump to content

Template:Dictionary card: Difference between revisions

From Suteniyana Wiktionary
mostly completed
templatedata
Line 3: Line 3:
<span style="font-size: 3em;">{{{ rootlinks|{{W|su}}{{W|teni}}{{W|yana}}}}} — [[:Category:{{{type|Word}}}|{{{type|Word}}}]]</span>
<span style="font-size: 3em;">{{{ rootlinks|{{W|su}}{{W|teni}}{{W|yana}}}}} — [[:Category:{{{type|Word}}}|{{{type|Word}}}]]</span>


{{{definitions|* ''No definitions have been written for this word.''}}}
{{{definition|* ''No definition has been written for this word.''}}}
{{#if: {{{credits|}}}|----
{{#if: {{{credits|}}}|----
'''Credits:''' ''{{{credits|}}}}}''
'''Credits:''' ''{{{credits|}}}}}''
Line 9: Line 9:
[[Category:Words]]
[[Category:Words]]
[[Category:{{#switch: {{{type|Word}}}|Function:Functions|Root:Roots|Words}}]]</includeonly>
[[Category:{{#switch: {{{type|Word}}}|Function:Functions|Root:Roots|Words}}]]</includeonly>
<noinclude>
<templatedata>
{
"params": {
"rootlinks": {
"description": "This will be shown in big text as the title of the card. Use [[Template:Words]] ([[Template:W]] for short) surrounding each root in the word, so as to display each root separately and with a link. All lowercase, even if proper noun.",
"example": "{{W:su}}{{W:teni}}{{W:yana}}",
"type": "string",
"default": "{{W:su}}{{W:teni}}{{W:yana}}",
"required": true
},
"type": {
"description": "Either (exactly:) \"Word\", \"Function\", or \"Root\". Word is the default so you may omit this for regular words.",
"example": "Word",
"type": "string",
"suggestedvalues": [
"Word"
],
"default": "Word"
},
"credits": {},
"definition": {
"description": "Fills main body of the card. Define the word. If it's a function: first write the concise definition; start it with the function's format, add a linebreak, then write a more complete, comprehensible explanation. Please see example.",
"example": "''(`rop A`)'' Designates A as a proper noun. Must capitalize first letter of A.<br>Place {{W:rop}} directly before A to designate A as the name of something. A word '''must''' have its first letter capitalized '''if and only if''' {{W:rop}} comes before it.",
"type": "string"
}
},
"description": "Template for word dictionary listings. Adds the page to relevant categories as well, so please only use on word pages.",
"format": "block",
"paramOrder": [
"rootlinks",
"type",
"credits",
"definition"
]
}
</templatedata>
</noinclude>

Revision as of 15:34, 21 April 2026


Template for word dictionary listings. Adds the page to relevant categories as well, so please only use on word pages.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
rootlinksrootlinks

This will be shown in big text as the title of the card. Use [[Template:Words]] ([[Template:W]] for short) surrounding each root in the word, so as to display each root separately and with a link. All lowercase, even if proper noun.

Default
{{W:su}}{{W:teni}}{{W:yana}}
Example
{{W:su}}{{W:teni}}{{W:yana}}
Stringrequired
typetype

Either (exactly:) "Word", "Function", or "Root". Word is the default so you may omit this for regular words.

Suggested values
Word
Default
Word
Example
Word
Stringoptional
creditscredits

no description

Unknownoptional
definitiondefinition

Fills main body of the card. Define the word. If it's a function: first write the concise definition; start it with the function's format, add a linebreak, then write a more complete, comprehensible explanation. Please see example.

Example
''(`rop A`)'' Designates A as a proper noun. Must capitalize first letter of A.<br>Place {{W:rop}} directly before A to designate A as the name of something. A word '''must''' have its first letter capitalized '''if and only if''' {{W:rop}} comes before it.
Stringoptional