Template:Infobox structure: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#invoke:infobox|infobox
<includeonly><infobox>
| defaultimagesize = {{ #if: {{{defaultimagesize|}}} | {{{defaultimagesize}}} | 250px }}
<title source="title">
| invimage = none
<default>{{BASEPAGENAME}}</default>
| rows =
</title>
{{ #if: {{{biome|}}} | {{infobox row|class=list-style-none|label=[[Biome]]s|field={{{biome}}} }} }}
<image source="image"/>
{{ #if: {{{blocks|}}} | {{infobox row|class={{#if: {{{blocks|}}} | list-style-none }}|label=Consists of|field=
<navigation>{{#if: {{{extratext|}}} | {{{extratext}}} | }}</navigation>
{{#ifexpr: {{#len: {{{blocks}}} }} > 512 | {{{!}} class="collapsible collapsed"
<group>
!
<data source="biome">
{{!}}-
<label>[[Biome]]s</label>
{{!}}
</data>
{{{blocks}}}
<data source="blocks">
{{!}}} | {{{blocks}}} }} }} }}
<label>Consists of</label>
{{ #if: {{{canspawn|}}} | {{infobox row|label=Can generate in<br>existing chunks|field={{{canspawn}}} }} }}
<format><div class="list-style-none"><div {{#ifexpr: {{#len: {{{blocks|0}}} }} > 512 | class="collapsible collapsed"|}}>{{{blocks|}}}</div></div></format>
}}</includeonly><noinclude>
</data>
{{documentation}}
<data source="canspawn">
<label>Can generate in exisiting chunks?</label>
</data>
</group>
</infobox></includeonly><noinclude>
{{Documentation}}
<!-- Put categories/interwiki on the documentation page -->
<!-- Put categories/interwiki on the documentation page -->
</noinclude>
</noinclude>