Template:Item/doc: Difference between revisions

mNo edit summary
Standardizing parameter naming convention to snake_case
Line 15: Line 15:
* {{F|link}} – Set another page to be linked.
* {{F|link}} – Set another page to be linked.
* {{F|text}} – Display another text instead of the name of the item.
* {{F|text}} – Display another text instead of the name of the item.
* {{F|notext}} – Set to {{F|1}} to omit the complete text. The icon will no longer behave like an inline-block.
* {{F|no_text}} – Set to {{F|1}} to omit the complete text. The icon will no longer behave like an inline-block.
* {{F|note}} – Append a note after the item text and count.
* {{F|note}} – Append a note after the item text and count.
* {{F|ref}} – Append a reference to the item text.
* {{F|ref}} – Append a reference to the item text.
* {{F|comma}} – Set to {{F|1}} to append a comma to the item text following AmE rules.
* {{F|comma}} – Set to {{F|1}} to append a comma to the item text following AmE rules.
* {{F|dot}} – Set to {{F|1}} to append a dot to the item text following AmE rules.
* {{F|dot}} – Set to {{F|1}} to append a dot to the item text following AmE rules.
* {{F|commaspc}} – Set to {{F|1}} to append a comma and a space to the item text following AmE rules.
* {{F|comma_spc}} – Set to {{F|1}} to append a comma and a space to the item text following AmE rules.
* {{F|dotspc}} – Set to {{F|1}} to append a dot and a space to the item text following AmE rules.
* {{F|dot_spc}} – Set to {{F|1}} to append a dot and a space to the item text following AmE rules.


==Examples==
==Examples==
Line 29: Line 29:
{{T|Item|p1=Kabuto Beetle|p2=40|_Ybr_=1}}<br />
{{T|Item|p1=Kabuto Beetle|p2=40|_Ybr_=1}}<br />
{{T|Item|p1=Kabuto Beetle|p2=link=Insect|p3=text=Custom text|_Ybr_=1}}<br />
{{T|Item|p1=Kabuto Beetle|p2=link=Insect|p3=text=Custom text|_Ybr_=1}}<br />
{{T|Item|p1=Dough|p2=x=15|p3=notext=1|_Ybr_=1}}<br />
{{T|Item|p1=Dough|p2=x=15|p3=no_text=1|_Ybr_=1}}<br />
{{T|Item|p1=Elsasani|_Ybr_=1}}<br />
{{T|Item|p1=Elsasani|_Ybr_=1}}<br />
{{T|Item|p1=Hexia|p2=note=Galaxy|_Ybr_=1}}
{{T|Item|p1=Hexia|p2=note=Galaxy|_Ybr_=1}}
Line 77: Line 77:
"type": "wiki-page-name",
"type": "wiki-page-name",
"default": "<1>, <name>"
"default": "<1>, <name>"
},
"notext": {
"label": "No text",
"description": "Set to 1 to omit the complete text.",
"example": "1",
"type": "boolean"
},
},
"note": {
"note": {
Line 106: Line 100:
"type": "boolean"
"type": "boolean"
},
},
"commaspc": {
"comma_spc": {
"label": "Comma and space",
"label": "Comma and space",
"description": "Set to 1 to append a comma and a space to the item text following AmE rules.",
"description": "Set to 1 to append a comma and a space to the item text following AmE rules.",
Line 112: Line 106:
"type": "boolean"
"type": "boolean"
},
},
"dotspc": {
"dot_spc": {
"label": "Dot and space",
"label": "Dot and space",
"description": "Set to 1 to append a dot and a space to the item text following AmE rules.",
"description": "Set to 1 to append a dot and a space to the item text following AmE rules.",
"example": "1",
"type": "boolean"
},
"no_text": {
"label": "No text",
"description": "Set to 1 to omit the complete text.",
"example": "1",
"example": "1",
"type": "boolean"
"type": "boolean"
Line 120: Line 120:
},
},
"description": "Template that adds a link to icons.",
"description": "Template that adds a link to icons.",
"format": "inline"
"format": "inline",
"paramOrder": [
"1",
"2",
"x",
"type",
"link",
"no_text",
"note",
"ref",
"comma",
"dot",
"comma_spc",
"dot_spc"
]
}
}
</templatedata>
</templatedata>