Template:Infobox item: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) added item key variable |
Gammaton32 (talk | contribs) use basepagename as item name |
||
| Line 4: | Line 4: | ||
-->{{#vardefine:item_en|{{#invoke:Lang|get_string|{{{key}}}|lang_code_override=en}}}}<!-- en | -->{{#vardefine:item_en|{{#invoke:Lang|get_string|{{{key}}}|lang_code_override=en}}}}<!-- en | ||
-->|<!-- If key is not provided, use {{{1}}} and assume its in english where it will be re-localized to current language in called functions | -->|<!-- If key is not provided, use {{{1}}} and assume its in english where it will be re-localized to current language in called functions | ||
-->{{#vardefine:item_key_or_en|{{{ | -->{{#vardefine:item_key_or_en|{{{item_name}}}}}<!-- en | ||
-->{{#vardefine:item_en|{{{ | -->{{#vardefine:item_en|{{{item_name}}}}}<!-- en | ||
-->}}<!-- | -->}}<!-- | ||
--><div class="infobox_item" style="float:right; display:inline-block; vertical-align:top;"> | --><div class="infobox_item" style="float:right; display:inline-block; vertical-align:top;"> | ||
| Line 19: | Line 19: | ||
| Vitality = background-color: #659818; | | Vitality = background-color: #659818; | ||
| Spirit = background-color: #8B56B4; | | Spirit = background-color: #8B56B4; | ||
| background-color: #C97A03;}}" |<span style="font-weight:bold; text-shadow: 2px 2px rgba(0, 0, 0, 0.2); ">{{{item_name| | | background-color: #C97A03;}}" |<span style="font-weight:bold; text-shadow: 2px 2px rgba(0, 0, 0, 0.2); ">{{{item_name|{{{BASEPAGENAME}}}}}}</span> | ||
<!--! style="vertical-align:bottom; font-size:26px; font-family:'Retail Demo Bold',serif; {{ | <!--! style="vertical-align:bottom; font-size:26px; font-family:'Retail Demo Bold',serif; {{ | ||
#switch: {{{item_type}}} | #switch: {{{item_type}}} | ||
| Line 78: | Line 78: | ||
}}</div>--> | }}</div>--> | ||
|- | |- | ||
| colspan=4 class="infobox-image" style="padding:5px; text-align:center;" | [[File:{{{item_icon|{{{item_name| | | colspan=4 class="infobox-image" style="padding:5px; text-align:center;" | [[File:{{{item_icon|{{{item_name|{{{BASEPAGENAME}}}}}}}}}.png|144px]]<!--remove inline text-align when infobox class is applied to outer table. currently infobox class is not in effect because of mobile issues--> | ||
|- | |- | ||
| colspan=2 style="text-align:right; width:50%; {{ | | colspan=2 style="text-align:right; width:50%; {{ | ||