Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Size: Difference between revisions

Template page
(includeonly wrapped template result)
Tag: 2017 source edit
(Add {{Doc}})
Tag: 2017 source edit
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Documentation}}
<templatedata>
<templatedata>
{
{
Line 5: Line 6:
"Size": {
"Size": {
"aliases": [
"aliases": [
"size"
"size",
"1"
],
],
"label": "Size",
"label": "Size",
Line 22: Line 24:
}
}
},
},
"description": "Use this template to include a stylized part size string in an article. Requires the Size parameter, selected from a provided list."
"description": "Use this template to include a formatted part size tag in an article. Requires the Size parameter, selected from a provided list."
}
}
</templatedata>
</templatedata></noinclude><includeonly>{{#invoke:Size|getSize|{{{Size}}}}}</includeonly>
The part size will appear on the article as per:
<code><b><font color=#E04949>XS</font></b></code>
<code><b><font color=#E0A400>SM</font></b></code>
<code><b><font color=#93E000>MD</font></b></code>
<code><b><font color=#00E0A8>LG</font></b></code>
<code><b><font color=#49ABE0>XL</font></b></code>
<code><b><font color=#A978DA>2X</font></b></code>
</noinclude>
<includeonly>{{#ifeq:XS|{{{Size}}}|<code><b><font color=#ff0000>XS</font></b></code>||}}</includeonly>

Latest revision as of 19:51, 6 December 2024

Use this template to include a formatted part size tag in an article. Requires the Size parameter, selected from a provided list.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
SizeSize size 1

Part size

Suggested values
XS SM MD LG XL 2X
Example
SM, LG, etc.
Stringrequired
MediaWiki Appliance - Powered by TurnKey Linux