Template:Infobox structure: Difference between revisions
m just a quick check to see how long various entries are, sorry it breaks the blocks list |
m this seems ok, at most three entries should be shown now |
||
| 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={{#len: {{{blocks}}} }} }} }} | {{ #if: {{{blocks|}}} | {{infobox row|class={{#if: {{{blocks|}}} | list-style-none }}|label=Consists of|field= | ||
{{#ifexpr: {{#len: {{{blocks}}} }} > 512 | {{{!}} 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> | ||