Template:Infobox structure/doc: Difference between revisions

added documentation
Line 1: Line 1:
{{Documentation header}}
{{Documentation header|baddoc=1}}
{{lua|infobox}}
{{lua|infobox}}
== Usage ==
{| style="background-color: transparent;"
! Parameter
! Function
! Default value
|-
| <code>title</code> || Optional value to use a different title instead of the page name || <code><nowiki>{{BASEPAGENAME}}</nowiki></code>
|-
| <code>image</code> || Image of the structure || <code><nowiki>{{{title}}}.png</nowiki></code> if it exists, otherwise [[:File:No image.svg|No image.svg]] (linking to the page where to upload the missing image)
|-
| <code>imagesize</code> || Adjusts the size of the image || 250px
|-
| <code>image''N''</code> || Additional images || ''None''
|-
| <code>image''N''size</code> || Adjusts the size of the corresponding image || 250px
|-
| <code>biome</code> || Biome(s) that the structure generates in ||
|-
| <code>blocks</code> || Blocks that make up the structure; automatically collapsed if above 512 characters ||
|-
| <code>canspawn</code> || Whether the structure can generate in chunks that have been generated before the structure was added to the game ||
|}
Any amount of image fields are supported (image, image2, image3, etc.); each may be animated by providing a semicolon-delimited list of file names. If no image is provided, <nowiki>{{{title}}}.png</nowiki> or <nowiki>{{BASEPAGENAME}}.png</nowiki> will be used, if they exist.
Any amount of image fields are supported (image, image2, image3, etc.); each may be animated by providing a semicolon-delimited list of file names. If no image is provided, <nowiki>{{{title}}}.png</nowiki> or <nowiki>{{BASEPAGENAME}}.png</nowiki> will be used, if they exist.


Example usage:
<pre>
<pre>
{{Structure
{{Structure