Template:Infobox item: Difference between revisions

Switching to using deprecated input category instead, as this category was designed to be used for all deprecated arguments/values, while that one only has this 1 use and nothing more
m 199 revisions imported
 
(42 intermediate revisions by 19 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:infobox|infobox
{{#invoke:infobox|infobox
| defaultimagesize = 160px
| defaultimageclass = pixel-image
| invimage = title
| rows =
| rows =
{{#ifeq: {{lc: {{{rarity|}}} }} | no || {{infobox row|class=list-style-none|label=[[Rarity]]|field={{ucfirst:{{{rarity|Common}}}}} }} }}
{{infobox row|class=list-style-none|label={{#ifeq:{{NAMESPACE}}|Earth|[[MCE:Rarity|Rarity]]|[[Rarity|Rarity color]]}}|field={{{rarity|Common}}} }}
{{#if: {{{durability|}}} | {{infobox row|label=[[Item durability|Durability]]|field={{{durability}}} }} }}
{{#if: {{{durability|}}} | {{infobox row|label=[[Durability]]|field={{{durability}}} }} }}<includeonly>
{{infobox row|label=[[Renewable resource|Renewable]]|field={{ #if: {{{renewable|}}} | {{{renewable}}} | ? }} }}
{{infobox row|label=[[Renewable resource|Renewable]]|field={{ #if: {{{renewable|}}} | {{{renewable}}} | ? {{#if:{{{nocat|}}}||[[Category:Missing renewability]]}} }} }}
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? [[Category:Missing stackability]] }} }}
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? {{#if:{{{nocat|}}}||[[Category:Missing stackability]]}} }} }}</includeonly>
{{#if: {{{multipledata|}}}
{{ #if: {{{heals|}}} | {{infobox row|label=[[Food|Restores]]|field={{{heals}}} }} }}
  | {{infobox row|label=[[Bedrock Edition data values|Data values]]|field={{{multipledata}}} }}
{{ #if: {{{effects|}}} | {{infobox row|label=[[Status effect]]s|field={{{effects}}} }} }}
  | {{#if: {{{data|}}} | {{infobox row|label=[[Bedrock Edition data values|Data value]]|field={{data value|{{{data}}} }} }} }}
}}<noinclude>
}}
{{#if: {{{nameid|}}} | {{infobox row|label=[[Namespaced ID]]|field={{{nameid|}}} }} }}
}}{{#if: {{{nameid|}}}{{{data|}}}{{{multipledata|}}} | [[Category:Pages with deprecated template input]]}}</includeonly><noinclude>
<!-- categories/interwikis on the /doc subpage, not here -->
<!-- categories/interwikis on the /doc subpage, not here -->
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>