Template:Term: Difference between revisions

From Space Station 14 Wiki
Aliser (talk | contribs)
Created page with "<includeonly>{{Tooltip|{{{1|{{error|term not provided}}}}}|{{#invoke: Terms|main|{{{1}}}}}}}</includeonly><noinclude> {{docs}} {{term|boo}} Category:Term templates <templatedata> { "params": { "1": { "label": "Term", "description": "Term to lookup.", "type": "line", "required": true } }, "description": "Lookups a definition for a term. Generates a term string with a tooltip with that term's definition.", "paramOrder": [ "1" ], "format": "inl..."
 
Aliser (talk | contribs)
improved term param desc
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{Tooltip|{{{1|{{error|term not provided}}}}}|{{#invoke: Terms|main|{{{1}}}}}}}</includeonly><noinclude>
<includeonly><templatestyles src="Template:Term/styles.css"></templatestyles><!--
{{docs}}


{{term|boo}}
-->{{#invoke: Terms|main|{{{1}}}}}</includeonly><noinclude>
{{docs|bb=
{{uses lua|Term}}
{{uses template styles}}
}}


[[Category:Term templates]]
[[Category:Term templates]]
Line 10: Line 13:
"1": {
"1": {
"label": "Term",
"label": "Term",
"description": "Term to lookup.",
"description": "Term to lookup. Any casing is allowed.",
"type": "line",
"type": "line",
"required": true
"required": true
},
"2": {
"label": "Term replacement",
"description": "A text to replace the term with.",
"example": "medium-roleplay (for MRP term)",
"type": "line",
"suggested": true
}
}
},
},
"description": "Lookups a definition for a term. Generates a term string with a tooltip with that term's definition.",
"description": "Lookups a definition for a term. Generates a term string with a tooltip with that term's definition.",
"paramOrder": [
"paramOrder": [
"1"
"1",
"2"
],
],
"format": "inline"
"format": "inline"

Latest revision as of 21:44, 14 March 2025

Template documentation
view or edit this documentation about template documentation
Uses Lua module
This template uses Lua module:
Uses template styles
This template uses template styles found in:

Adding new terms

See Module:Term for details.

Example usage

Term with a definition only

{{term|mrp}}

MRPMedium Role Play is a type of server that has stricter rules and higher roleplay requirements, compared to Light Role Play servers.

Unknown term

Makes underline red and adds page to Category:Pages with terms without definition.

{{term|this term is unknown}}

this term is unknownNo definition found for this term (this term is unknown). Make sure the term is spelled correctly and is defined in the terms JSON file in the Module:Term.

List of all terms

See Template:Term/doc/all terms.

Lookups a definition for a term. Generates a term string with a tooltip with that term's definition.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Term1

Term to lookup. Any casing is allowed.

Linerequired
Term replacement2

A text to replace the term with.

Example
medium-roleplay (for MRP term)
Linesuggested