Template:Infobox structure: Difference between revisions

No edit summary
m 64 revisions imported
 
(18 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<onlyinclude><infobox>
{{#invoke:infobox|infobox
<title source="title"><default>{{BASEPAGENAME}}</default></title>
| defaultimagesize = {{ #if: {{{defaultimagesize|}}} | {{{defaultimagesize}}} | 250px }}
<image source="image"><default>{{#ifexist: File:{{BASEPAGENAME}}.png|{{BASEPAGENAME}}.png}}</default></image>
| invimage = none
<image source="image2"/>
| rows =
<navigation>{{{extratext|}}}</navigation>
{{ #if: {{{biome|}}} | {{infobox row|class=list-style-none|label=[[Biome]]s|field={{{biome}}} }} }}
<data source="biome"><label>[[Biome]]s</label></data>
{{ #if: {{{mobs|}}} | {{infobox row|class=list-style-none|label=[[Mob]]s|field={{{mobs}}} }} }}
<data source="surface"><label>{{#if: {{{fruit}}}|Grows|Generates}} on</label></data>
{{ #if: {{{surface|}}} | {{infobox row|class=list-style-none|label={{#if: {{{fruit}}}|Grows|Generates}} on|field={{{surface}}} }} }}
<data source="fruit"><label>Fruit</label></data>
{{ #if: {{{fruit|}}} | {{infobox row|class=list-style-none|label=Fruit|field={{{fruit}}} }} }}
<data source="canspawn"><label>Can generate in existing chunks?</label></data>
{{ #if: {{{canspawn|}}} | {{infobox row|label=Can generate in<br>existing chunks|field={{{canspawn}}} }} }}
<group collapse="closed">
{{ #if: {{{blocks|}}} | {{infobox row|class=list-style-none|label=Consists of|field=
<header>Consists of</header>
{{ #ifexpr: {{#len: {{{blocks}}} }} > 2000 | {{{!}} class="collapsible collapsed"
<navigation>{{{blocks|}}}</navigation>
!
</group>
{{!}}-
</infobox></onlyinclude><noinclude>{{Documentation}}</noinclude>
{{!}}
{{{blocks}}}
{{!}}} | {{{blocks}}} }} }} }}
}}<noinclude>
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->
</noinclude>