78
editsMore actions
no edit summary
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
Usage: {{code|<nowiki>{{User:Kaimbe/ItemIcon|ImagePath|ItemName|Rarity}}</nowiki>}}<br> | Usage: {{code|<nowiki>{{User:Kaimbe/ItemIcon|ImagePath|ItemName|Rarity}}</nowiki>}}<br> | ||
Example: {{code|<nowiki>{{User:Kaimbe/ItemIcon|Shortbow_PlusOne_Icon.png|Darkfire Shortbow|rare}}</nowiki>}}<br>Result: {{User:Kaimbe/ItemIcon|Shortbow_PlusOne_Icon.png|Darkfire Shortbow|rare}} | Example: {{code|<nowiki>{{User:Kaimbe/ItemIcon|Shortbow_PlusOne_Icon.png|Darkfire Shortbow|rare}}</nowiki>}}<br> | ||
Result: {{User:Kaimbe/ItemIcon|Shortbow_PlusOne_Icon.png|Darkfire Shortbow|rare}} | |||
</noinclude> | </noinclude> | ||
<includeonly> | <includeonly> | ||
{{#vardefine:rarityClass| | |||
{{#switch: {{{3}}} | |||
| common = itemCommon | |||
| uncommon = itemUncommon | |||
| rare = itemRare | |||
| very rare = itemVeryRare | |||
| legendary = itemLegendary | |||
| story = itemStory | |||
}} | |||
}} | |||
<div style="text-align: center; vertical-align: middle;"> | <div style="text-align: center; vertical-align: middle;"> | ||
{{#if: {{{1|}}} | [[File:{{{1}}}|frameless|50px|link={{{2}}}]] <br>}} | {{#if: {{{1|}}} | [[File:{{{1}}}|frameless|50px|link={{{2}}}|class={{#var:rarityClass}}]]<br>}} | ||
[[{{{2}}} | {{RarityColor | {{{3}}} | {{{2}}} }}]] | [[{{{2}}} | {{RarityColor | {{{3}}} | {{{2}}} }}]] | ||
</div> | </div> | ||
</includeonly> | </includeonly> |