Template:Infobox item: Difference between revisions

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