Template:Infobox structure: Difference between revisions

m "blocks" is now collapsed by default, only single entries should still be shown
m just a quick check to see how long various entries are, sorry it breaks the blocks list
Line 4: Line 4:
| rows =
| rows =
{{ #if: {{{biome|}}} | {{infobox row|label=[[Biome]](s)|field={{{biome}}} }} }}
{{ #if: {{{biome|}}} | {{infobox row|label=[[Biome]](s)|field={{{biome}}} }} }}
{{ #if: {{{blocks|}}} | {{infobox row|class={{#if: {{{blocks|}}} | list-style-none }}|label=Consists of|field=
{{ #if: {{{blocks|}}} | {{infobox row|class={{#if: {{{blocks|}}} | list-style-none }}|label=Consists of|field={{#len: {{{blocks}}} }} }} }}
{{#ifexpr: {{#len: {{{blocks}}} }} > 128 | {{{!}} class="collapsible collapsed"
!
{{!}}-
{{!}}
{{{blocks}}}
{{!}}} | {{{blocks}}} }} }} }}
{{ #if: {{{canspawn|}}} | {{infobox row|label=Can generate<br>post-generation|field={{{canspawn}}} }} }}
{{#if: {{{multiplevers|}}}
| {{infobox row|label=First appearances|field={{{multiplevers}}}{{#if: {{#pos: {{{multiplevers}}} | #History }}{{NAMESPACE}} || {{translation category|project=0|Update infobox history}} }}}}
| {{#if: {{{firstver|}}} | {{infobox row|label=First appearance|field={{version link|{{{firstver}}}}} {{
    #if: {{{firstdev|}}} | ({{version link|{{{firstdev}}}}})
    }}{{#if: {{NAMESPACE}} || {{translation category|project=0|Update infobox history}} }}}}
  }}
}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->
<!-- Put categories/interwiki on the documentation page -->
</noinclude>
</noinclude>