Template:Magia Record Attribute: Difference between revisions

From Puella Magi Wiki
Jump to navigation Jump to search
(Standardized template to include a Magia Record attribute icon)
 
(Change default size to 40px)
Line 24: Line 24:
The size may optionally be specified as <tt>|size=20px</tt> for example: {{Magia Record Attribute|flame|size=20px}}
The size may optionally be specified as <tt>|size=20px</tt> for example: {{Magia Record Attribute|flame|size=20px}}
</noinclude><includeonly>{{#switch:{{{1|}}}
</noinclude><includeonly>{{#switch:{{{1|}}}
|water|aqua=[[File:attribute aqua.png|{{{size|50px}}}]]
|water|aqua=[[File:attribute aqua.png|{{{size|40px}}}]]
|fire|flame=[[File:attribute flame.png|{{{size|50px}}}]]
|fire|flame=[[File:attribute flame.png|{{{size|40px}}}]]
|forest=[[File:attribute forest.png|{{{size|50px}}}]]
|forest=[[File:attribute forest.png|{{{size|40px}}}]]
|light=[[File:attribute light.png|{{{size|50px}}}]]
|light=[[File:attribute light.png|{{{size|40px}}}]]
|dark=[[File:attribute dark.png|{{{size|50px}}}]]
|dark=[[File:attribute dark.png|{{{size|40px}}}]]
|null|void=[[File:attribute void.png|{{{size|50px}}}]]
|null|void=[[File:attribute void.png|{{{size|40px}}}]]
}}</includeonly>
}}</includeonly>

Revision as of 03:44, 24 February 2022

Transcludes the icon for a Magia Record attribute into the page.

{{Magia Record Attribute|aqua}}
{{Magia Record Attribute|flame}}
{{Magia Record Attribute|forest}}
{{Magia Record Attribute|light}}
{{Magia Record Attribute|dark}}
{{Magia Record Attribute|void}}

The above expands to:

Attribute aqua.png Attribute flame.png Attribute forest.png Attribute light.png Attribute dark.png Attribute void.png

The terms "water", "fire", and "null" are accepted as synonyms for "aqua", "flame", and "void", respectively.

The size may optionally be specified as |size=20px for example: Attribute flame.png