Template:Infobox item: Difference between revisions

okay, the only pages that use the type parameter are translation pages. and it's not hard to see that nobody cares about translation pages.
No edit summary
 
(57 intermediate revisions by 21 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]]|[[minecraft:Rarity|Rarity color]]}}|field={{{rarity|Common}}} }}
{{#if: {{{otherosonly|}}} | {{infobox row|label=Only available in|field={{{otherosonly}}} }} }}
{{#if: {{{durability|}}} | {{infobox row|label=[[Durability]]|field={{{durability}}} }} }}<includeonly>
{{#if: {{{durability|}}} | {{infobox row|label=[[Item durability|Durability]]|field={{{durability}}} }} }}
{{infobox row|label=[[minecraft:Renewable resource|Renewable]]|field={{ #if: {{{renewable|}}} | {{{renewable}}} | ? {{#if:{{{nocat|}}}||[[Category:Missing renewability]]}} }} }}
{{infobox row|label=[[Renewable resource|Renewable]]|field={{ #if: {{{renewable|}}} | {{{renewable}}} | ? }} }}
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? {{#if:{{{nocat|}}}||[[Category:Missing stackability]]}} }} }}</includeonly>
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? [[Category:Missing stackability]] }} }}
{{ #if: {{{heals|}}} | {{infobox row|label=[[Food|Restores]]|field={{{heals}}} }} }}
{{#if: {{{firstver|}}} <!-- deprecate this later --> | {{infobox row|label=First appearance|field={{version link|{{{firstver}}}}} {{
{{ #if: {{{effects|}}} | {{infobox row|label=[[Status effect]]s|field={{{effects}}} }} }}
    #if: {{{firstdev|}}} | ({{version link|{{{firstdev}}}}})
}}<noinclude>
    }}{{#if: {{NAMESPACE}} || {{translation category|project=0|Update infobox history}} }}}}
  }}
{{#if: {{{multipledata|}}}
  | {{infobox row|label=[[Bedrock Edition data values|Data values]]|field={{{multipledata}}} }}
  | {{#if: {{{data|}}} | {{infobox row|label=[[Bedrock Edition data values|Data value]]|field={{data value|{{{data}}} }} }} }}
}}
{{#if: {{NAMESPACE}}
|
| {{#ifeq: {{lc: {{{nameid}}} }} | none
  |
  | {{infobox row|label=[[Namespaced ID]]|field={{
    #if: {{{nameid|}}}
    | {{{nameid}}}
    | {{lc: {{#replace: {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} || _ }} }}
    }}}}
  }}
}}
}}{{
#if: {{{nocat|}}}{{NAMESPACE}} ||
{{#if: {{{type|}}} | {{ #ifeq: {{{type}}}| Items || {{translation category|{{{type}}}}} }} }}
{{translation category|project=0|{{
  #switch: {{lc: {{{renewable|}}} }}
  | yes = Renewable resources
  | no = Non-renewable resources
  | Resources with invalid renewability
  }}
}}}}</includeonly><noinclude>
<!-- categories/interwikis on the /doc subpage, not here -->
<!-- categories/interwikis on the /doc subpage, not here -->
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>