Template:Infobox structure/doc: Difference between revisions
Jump to navigation
Jump to search
added documentation |
m Bot: Use better navbox and infobox naming. |
||
| (10 intermediate revisions by 9 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation header | {{Documentation header}} | ||
== Usage == | == Usage == | ||
{| | {| class="wikitable" | ||
! Parameter | ! Parameter | ||
! Function | ! Function | ||
| Line 20: | Line 19: | ||
| <code>biome</code> || Biome(s) that the structure generates in || | | <code>biome</code> || Biome(s) that the structure generates in || | ||
|- | |- | ||
| <code>blocks</code> || Blocks that make up the structure; automatically collapsed if above | | <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 || | | <code>canspawn</code> || Whether the structure can generate in chunks that have been generated before the structure was added to the game || | ||
| Line 28: | Line 29: | ||
<pre> | <pre> | ||
{{ | {{Infobox structure | ||
| title = Jungle pyramid | | title = Jungle pyramid | ||
| image = Jungle pyramid.png | | image = Jungle pyramid.png | ||
| Line 34: | Line 35: | ||
}} | }} | ||
{{ | {{Infobox structure | ||
| title = Gravel beach | | title = Gravel beach | ||
}} | }} | ||
| Line 41: | Line 42: | ||
produces: | produces: | ||
{{ | {{Infobox structure | ||
| title = Jungle pyramid | | title = Jungle pyramid | ||
| image = Jungle pyramid.png | | image = Jungle pyramid.png | ||
| Line 47: | Line 48: | ||
}} | }} | ||
{{ | {{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> | <includeonly> | ||
<!-- Template categories/interwiki here --> | <!-- Template categories/interwiki here --> | ||
| Line 60: | Line 76: | ||
[[de:Vorlage:Bauwerk]] | [[de:Vorlage:Bauwerk]] | ||
[[es:Plantilla: | [[es:Plantilla:Estructura]] | ||
[[fr:Modèle:Structure]] | [[fr:Modèle:Structure]] | ||
[[ja:テンプレート:Structure]] | [[ja:テンプレート:Structure]] | ||
| Line 66: | Line 82: | ||
[[nl:Sjabloon:Structuur]] | [[nl:Sjabloon:Structuur]] | ||
[[pt:Predefinição:Estrutura]] | [[pt:Predefinição:Estrutura]] | ||
[[uk:Шаблон:Структура]] | |||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
<!-- Documentation categories/interwiki here --> | <!-- Documentation categories/interwiki here --> | ||
[[de:Vorlage:Bauwerk/Dokumentation]] | [[de:Vorlage:Bauwerk/Dokumentation]] | ||
[[es:Plantilla:Estructura/doc]] | |||
[[fr:Modèle:Structure/doc]] | [[fr:Modèle:Structure/doc]] | ||
[[ja:テンプレート:Structure/doc]] | [[ja:テンプレート:Structure/doc]] | ||
| Line 76: | Line 94: | ||
[[pl:Szablon:Struktura/doc]] | [[pl:Szablon:Struktura/doc]] | ||
[[pt:Predefinição:Estrutura/doc]] | [[pt:Predefinição:Estrutura/doc]] | ||
[[uk:Шаблон:Структура/док]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 16:58, 25 May 2024
[refresh]
This is the documentation page. It should be transcluded into Template:Infobox structure. See Template:Documentation for more information.Usage
| 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:
{
"title": "Jungle pyramid",
"rows": [
{
"field": "Jungle",
"label": "(link to Biome article, displayed as Biomes)"
}
],
"invimages": [],
"images": [
"Jungle pyramid.png"
]
}
{
"title": "Gravel beach",
"rows": [],
"invimages": [],
"images": [
"Gravel beach.png"
]
}
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
- Minecraft
{{Infobox biome}}{{Infobox block}}{{Infobox command}}{{Infobox development phase}}{{Infobox enchantment}}{{Infobox effect}}{{Infobox entity}}{{Infobox fluid}}{{Infobox item}}{{Infobox item entity}}{{Infobox structure}}
- Minecraft Earth
- Minecraft Dungeons
{{Infobox Dungeons cosmetic}}{{Infobox Dungeons enchantment}}{{Infobox Dungeons entity}}{{Infobox Dungeons item}}{{Infobox Dungeons mission}}
- Minecraft Legends
{{Infobox Legends biome}}{{Infobox Legends entity}}{{Infobox Legends resource}}{{Infobox Legends mode}}{{Infobox Legends skin}}{{Infobox Legends structure}}
- Minecraft Story Mode
{{Infobox episode}}
- Other
{{Infobox album}}{{Infobox book}}{{Infobox board game}}{{Infobox company}}{{Fallback infobox}}{{Infobox guide}}{{Infobox mash-up}}{{Infobox music}}{{Infobox person}}{{Infobox profile}}{{Infobox program}}{{Infobox screen effect}}{{Infobox server}}{{Infobox skin pack}}{{Infobox theme}}{{Infobox version}}{{Infobox video}}{{Infobox website}}{{Infobox world}}
- Meta
{{Infobox}}{{Infobox row}}{{Infobox header}}- Module:Infobox
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:Шаблон:Структура/док