Template:Element: Difference between revisions

From The Perfect Tower II
Jump to navigation Jump to search
Lmnt0 (talk | contribs)
Created page with "[[File:{{{1}}} element.png|{{{size|x30px}}}|alt={{{1}}} element]]<noinclude> <templatedata> { "params": { "1": { "label": "Element", "description": "Element (one of:..."
 
Exe boss (talk | contribs)
Use <onlyinclude> and update icon link
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
[[File:{{{1}}} element.png|{{{size|x30px}}}|alt={{{1}}} element]]<noinclude>
<onlyinclude>[[File:{{{1}}} element icon.png|{{{size|x25px}}}|alt={{{1}}} element]]</onlyinclude>
<templatedata>
<templatedata>
{
{
Line 15: Line 15:
"example": "25px",
"example": "25px",
"type": "string",
"type": "string",
"default": "x30px"
"default": "x25px"
}
}
},
},
Line 22: Line 22:
}
}
</templatedata>
</templatedata>
</noinclude>

Latest revision as of 20:09, 9 March 2026

[[File:{{{1}}} element icon.png|x25px|alt={{{1}}} element]]

For adding an element icon to the page

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Element1

Element (one of: Neutral, Fire, Water, Earth, Air, Light, Darkness, Nature, Electricity, Universal)

Example
Neutral
Stringrequired
Sizesize

Size of the icon, as a standard Mediawiki image size

Default
x25px
Example
25px
Stringoptional