Template:Infobox structure: Difference between revisions
Jump to navigation
Jump to search
doc |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{infobox common | ||
{{infobox common | |||
| title = {{ #if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} | | title = {{ #if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }} | ||
| imagearea = {{ | | imagearea = {{ | ||
#if: {{#pos: {{{image}}} | ; }} | #if: {{#pos: {{{image}}} | ; }} | ||
| {{animate|{{{image}}}| | | {{animate|{{{image}}}|{{{imagesize|150px}}}}} | ||
| [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | No block image.png}} }}|{{#ifeq: {{NAMESPACE}} | {{ns:10}} || link=File:{{#if: {{{image|}}} | {{{image}}} | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png }} }}|{{{imagesize|150px}}}|center]] | | [[File:{{#if: {{{image|}}} | {{{image}}} | {{#ifexist: File:{{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png | No block image.png}} }}|{{#ifeq: {{NAMESPACE}} | {{ns:10}} || link=File:{{#if: {{{image|}}} | {{{image}}} | {{#if: {{{title|}}} | {{{title}}} | {{BASEPAGENAME}} }}.png }} }}|{{{imagesize|150px}}}|center]] | ||
}}{{ | }}{{ | ||
Line 10: | Line 9: | ||
#if: {{{image2|}}} | <div style="padding-top: 1em">{{ | #if: {{{image2|}}} | <div style="padding-top: 1em">{{ | ||
#if: {{#pos: {{{image2}}} | ; }} | #if: {{#pos: {{{image2}}} | ; }} | ||
| {{animate|{{{image2}}}| | | {{animate|{{{image2}}}|{{{image2size|150px}}}}} | ||
| [[File:{{{image2}}}|{{{image2size|150px}}}|center]] | | [[File:{{{image2}}}|{{{image2size|150px}}}|center]] | ||
}}</div> | }}</div> | ||
Line 17: | Line 16: | ||
#if: {{{image3|}}} | <div style="padding-top: 1em">{{ | #if: {{{image3|}}} | <div style="padding-top: 1em">{{ | ||
#if: {{#pos: {{{image3}}} | ; }} | #if: {{#pos: {{{image3}}} | ; }} | ||
| {{animate|{{{image3}}}| | | {{animate|{{{image3}}}|{{{image3size|150px}}}}} | ||
| [[File:{{{image3}}}|{{{image3size|150px}}}|center]] | | [[File:{{{image3}}}|{{{image3size|150px}}}|center]] | ||
}}</div> }} | }}</div> }} | ||
| rows = | | rows = | ||
{{ #if: {{{ | {{ #if: {{{biome|}}} | {{infobox row|label=[[Biome]]|field={{{biome}}} }} }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{/doc}} | {{/doc}} | ||
</noinclude> | </noinclude> |
Revision as of 10:59, 22 September 2013
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:
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 es:Plantilla:Estructura fr:Modèle:Structure ja:テンプレート:Structure ko:틀:Structure nl:Sjabloon:Structuur pt:Predefinição:Estrutura uk:Шаблон:Структура