Template:Infobox item: Difference between revisions

update documentation style
No edit summary
 
(89 intermediate revisions by 27 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:infobox|infobox
{{#invoke:infobox|infobox
| defaultimagesize = 160px
| defaultimageclass = pixel-image
| invimage = title
| rows =
| rows =
{{infobox row|label=Type|field={{ #if: {{{type|}}} | {{{type}}} | ? }} }}
{{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>
{{infobox row|label=Durability|field={{ #if: {{{durability|}}} | {{{durability}}} | N/A }} }}
{{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}}} | ? }} }}
{{ #if: {{{heals|}}} | {{infobox row|label=[[Food|Restores]]|field={{{heals}}} }} }}
{{#if: {{{experience|}}} | {{infobox row | label= [[Experience]] | field= {{{experience}}} }} }}
{{ #if: {{{effects|}}} | {{infobox row|label=[[Status effect]]s|field={{{effects}}} }} }}
{{#if: {{{multiplevers|}}}
}}<noinclude>
| {{infobox row|label=First appearances|field={{{multiplevers}}} }}
| {{#if: {{{firstver|}}} | {{infobox row|label=First appearance|field={{version link|{{{firstver}}}}} {{
    #if: {{{firstdev|}}} | ({{version link|{{{firstdev}}}}})
    }}}}
  }}
}}
{{#if: {{{multipledata|}}}
  | {{infobox row|label=[[Data values]]|field={{{multipledata}}} }}
  | {{#if: {{{data|}}} | {{infobox row|label=[[Data values|Data value]]|field={{data value|{{{data}}} }} }} }}
}}
{{#if: {{NAMESPACE}}
|
| {{#ifeq: {{lc: {{{nameid}}} }} | none
  |
  | {{infobox row|label=[[Data values|Name]]|field={{
    #if: {{{nameid|}}}
    | {{{nameid}}}
    | {{lc: {{#replace: {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} || _ }} }}
    }}}}
  }}
}}
}}{{
#if: {{{nocat|}}}{{NAMESPACE}} ||
{{#if:{{{type|}}}|{{#ifeq:{{{type}}}|Items||{{#switch: {{#titleparts: {{FULLPAGENAME}} | | -1 }} | ar | ca | hr | cz | dk | eo | et | fa | fin | el | he | id | ga | lv | lt | moh | no | pt | ro | sr | sk | se | ph | th | tr | ua | vi | yi = [[Category:{{{type}}}/{{#titleparts: {{FULLPAGENAME}} | | -1 }}]] | #default = [[Category:{{{type}}}]]}}}}}}
{{#switch: {{lc: {{{renewable|}}} }}
| yes = [[Category:Renewable resources]]
| no = [[Category:Non-renewable resources]]
| [[Category: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>