Template:Infobox structure/doc: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
No edit summary
 
(21 intermediate revisions by 18 users not shown)
Line 1: Line 1:
{{doc/start}}
{{Documentation header}}
Three image fields are supported (image, image2, image3); 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.
 
== Usage ==
{| class="wikitable"
! 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>mobs</code> || Mob(s) that spawn near or inside the structure ||
|-
| <code>blocks</code> || Blocks that make up the structure; automatically collapsed if above 2000 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.


Example usage:
<pre>
<pre>
{{Structure
{{Infobox structure
| title = Jungle Temple
| title = Jungle pyramid
| image = 2012-05-31_15.24.00.png
| image = Jungle pyramid.png
| biome = Jungle
| biome = Jungle
}}
}}


{{Structure
{{Infobox structure
| title = Gravel beach
| title = Gravel beach
}}
}}
Line 17: Line 42:
produces:
produces:


{{Structure
{{Infobox structure
| title = Jungle Temple
| title = Jungle pyramid
| image = 2012-05-31_15.24.00.png
| image = Jungle pyramid.png
| biome = Jungle
| biome = Jungle
}}
}}


{{Structure
{{Infobox structure
| title = Gravel beach
| title = Gravel beach
}}
}}
<div style="clear:both">
Full template:
<pre>
{{Infobox structure
| title = <!-- Optional, use if different from the page name -->
| image = <!-- Use No_image.svg if no image exists -->
| imagesize = <!-- defaults to 250px if omitted -->
| image2 = <!-- Optional additional image -->
| image2size = <!-- defaults to 250px if omitted -->
| biome =
| mobs =
| blocks = <!-- Blocks that make up the structure -->
| canspawn = <!-- Set to yes if the structure generates in already-existing chunks -->
}}
</pre>


== See also ==
== See also ==
{{infobox see also}}
{{infobox see also}}


{{-}}
<includeonly>
{{doc/end}}
<!-- Template categories/interwiki here -->
[[Category:Infobox templates]]


[[de:Vorlage:Bauwerk]]
[[es:Plantilla:Estructura]]
[[fr:Modèle:Structure]]
[[ja:テンプレート:Structure]]
[[ko:틀:Structure]]
[[nl:Sjabloon:Structuur]]
[[pt:Predefinição:Estrutura]]
[[uk:Шаблон:Структура]]
</includeonly>
<noinclude>
<noinclude>
<!-- Documentation categories/interwiki here -->
[[de:Vorlage:Bauwerk/Dokumentation]]
[[es:Plantilla:Estructura/doc]]
[[fr:Modèle:Structure/doc]]
[[ja:テンプレート:Structure/doc]]
[[ko:틀:Structure/doc]]
[[nl:Sjabloon:Structuur/doc]]
[[nl:Sjabloon:Structuur/doc]]
[[pl:Szablon:Struktura/doc]]
[[pt:Predefinição:Estrutura/doc]]
[[uk:Шаблон:Структура/док]]
</noinclude>
</noinclude>

Latest revision as of 16:58, 25 May 2024

This is the documentation page. It should be transcluded into Template:Infobox structure. See Template:Documentation for more information.

Usage[edit source]

Parameter Function Default value
title Optional value to use a different title instead of the page name {{BASEPAGENAME}}
image Image of the structure {{{title}}}.png if it exists, otherwise No image.svg (linking to the page where to upload the missing image)
imagesize Adjusts the size of the image 250px
imageN Additional images None
imageNsize Adjusts the size of the corresponding image 250px
biome Biome(s) that the structure generates in
mobs Mob(s) that spawn near or inside the structure
blocks Blocks that make up the structure; automatically collapsed if above 2000 characters
canspawn 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, {{{title}}}.png or {{BASEPAGENAME}}.png will be used, if they exist.

{{Infobox structure
| title = Jungle pyramid
| image = Jungle pyramid.png
| biome = Jungle
}}

{{Infobox structure
| title = Gravel beach
}}

produces:

Gravel beach

Full template:

{{Infobox structure
| title = <!-- Optional, use if different from the page name -->
| image = <!-- Use No_image.svg if no image exists -->
| imagesize = <!-- defaults to 250px if omitted -->
| image2 = <!-- Optional additional image -->
| image2size = <!-- defaults to 250px if omitted -->
| biome =
| mobs =
| blocks = <!-- Blocks that make up the structure -->
| canspawn = <!-- Set to yes if the structure generates in already-existing chunks -->
}}

See also[edit source]

Minecraft
Minecraft Earth
Minecraft Dungeons
Minecraft Legends
Minecraft Story Mode
Other
Meta


de:Vorlage:Bauwerk/Dokumentation es:Plantilla:Estructura/doc fr:Modèle:Structure/doc ja:テンプレート:Structure/doc ko:틀:Structure/doc nl:Sjabloon:Structuur/doc pl:Szablon:Struktura/doc pt:Predefinição:Estrutura/doc uk:Шаблон:Структура/док