Template:Infobox item: Difference between revisions

Merged sandbox because no opposition
unnecessary code, no need for "alligned"
Line 1: Line 1:
<onlyinclude>
<onlyinclude><infobox>
{{#if:{{{aligned|}}}
|<infobox>
<title source="title">
<title source="title">
<default>{{BASEPAGENAME}}</default>
<default>{{BASEPAGENAME}}</default>
Line 31: Line 29:
</section>
</section>
</panel>
</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>{{
<image source="image"><default>{{
#if: {{PROTECTIONEXPIRY:edit|File:{{BASEPAGENAME}}.png}} <!-- Don't use #ifexist, because it creates red links -->
#if: {{PROTECTIONEXPIRY:edit|File:{{BASEPAGENAME}}.png}} <!-- Don't use #ifexist, because it creates red links -->