User:Kaimbe/ItemIcon: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Tag: Manual revert
 
(12 intermediate revisions by the same user not shown)
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>
Example: {{code|<nowiki>{{User:Kaimbe/ItemIcon|Gloves_of_Missile_Snaring_Icon.png|Gloves of Missile Snaring|rare}}</nowiki>}}<br>
Result: {{User:Kaimbe/ItemIcon|Shortbow_PlusOne_Icon.png|Darkfire Shortbow|rare}}
Result: {{User:Kaimbe/ItemIcon|Gloves_of_Missile_Snaring_Icon.png|Gloves of Missile Snaring|rare}}
</noinclude>


<includeonly>
Suggested CSS style: {{code|<nowiki>.item-icon small rare {box-shadow: inset 0 0 .2em .1em #01BFFF, inset 0 0 0 .05em #01BFFF;}</nowiki>}}
{{#vardefine:rarityClass|
</noinclude><includeonly>
  {{#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}}}|class={{#var:rarityClass}}]]<br>}}
{{#if: {{{1|}}} | [[File:{{{1}}}|frameless|50px|link={{{2}}}|class=item-icon small {{{3|common}}}]]<br>}}
  [[{{{2}}} | {{RarityColor | {{{3}}} | {{{2}}} }}]]
[[{{{2}}} | {{RarityColor | {{{3|common}}} | {{{2}}} }}]]
</div>
</div>
</includeonly>
</includeonly>

Latest revision as of 20:40, 15 September 2023

Usage: {{User:Kaimbe/ItemIcon|ImagePath|ItemName|Rarity}}
Example: {{User:Kaimbe/ItemIcon|Gloves_of_Missile_Snaring_Icon.png|Gloves of Missile Snaring|rare}}
Result:

Gloves of Missile Snaring Icon.png
Gloves of Missile Snaring


Suggested CSS style: .item-icon small rare {box-shadow: inset 0 0 .2em .1em #01BFFF, inset 0 0 0 .05em #01BFFF;}