Template:Infobox item: Difference between revisions

convert to PI
m 199 revisions imported
 
(28 intermediate revisions by 12 users not shown)
Line 1: Line 1:
<onlyinclude><infobox>
{{#invoke:infobox|infobox
  <title source="title">
| defaultimagesize = 160px
  <default>{{BASEPAGENAME}}</default>
| defaultimageclass = pixel-image
  </title>
| invimage = title
  <image source="image"><default>{{
| rows =
#if: {{PROTECTIONEXPIRY:edit|File:{{BASEPAGENAME}}.png}} <!-- Don't use #ifexist, because it creates red links -->
{{infobox row|class=list-style-none|label={{#ifeq:{{NAMESPACE}}|Earth|[[MCE:Rarity|Rarity]]|[[Rarity|Rarity color]]}}|field={{{rarity|Common}}} }}
| File:{{BASEPAGENAME}}.png
{{#if: {{{durability|}}} | {{infobox row|label=[[Durability]]|field={{{durability}}} }} }}<includeonly>
  }}</default></image>
{{infobox row|label=[[Renewable resource|Renewable]]|field={{ #if: {{{renewable|}}} | {{{renewable}}} | ? {{#if:{{{nocat|}}}||[[Category:Missing renewability]]}} }} }}
  <navigation>{{#if: {{{extratext|}}} | {{{extratext}}} | }}</navigation>
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} | ? {{#if:{{{nocat|}}}||[[Category:Missing stackability]]}} }} }}</includeonly>
  <group collapse="open">
{{ #if: {{{heals|}}} | {{infobox row|label=[[Food|Restores]]|field={{{heals}}} }} }}
  <header>Description</header>
{{ #if: {{{effects|}}} | {{infobox row|label=[[Status effect]]s|field={{{effects}}} }} }}
    <data source="rarity"><label>[[Rarity]]</label><default>Common</default></data>
}}<noinclude>
    <data source="durability"><label>[[Item durability|Durability]]</label><format>{{{durability}}}{{article other|[[Category:Tools]]}}</format></data>
<!-- categories/interwikis on the /doc subpage, not here -->
    <data source="renewable"><label>[[Renewable resource|Renewable]]</label><default>? {{#if:{{{nocat<includeonly>|</includeonly>}}}||[[Category:Missing renewability]]}}</default></data>
    <data source="stackable"><label>Stackable</label><default>? {{#if:{{{nocat<includeonly>|</includeonly>}}}||[[Category:Missing stackability]]}}</default></data>
    <data source="heals"><label>[[Food|Restores]]</label></data>
    <data source="effects"><label>[[Status effect]]s</label></data>
  </group>
</infobox></onlyinclude><noinclude>
<!-- Put categories/interwiki on the documentation page -->
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>