Template:Infobox structure: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><infobox>
<onlyinclude><infobox>
<title source="title">
<title source="title"><default>{{BASEPAGENAME}}</default></title>
<default>{{BASEPAGENAME}}</default>
<image source="image" />
</title>
<navigation>{{{extratext|}}}</navigation>
<image source="image"/>
<navigation>{{#if: {{{extratext|}}} | {{{extratext}}} | }}</navigation>
<group>
<group>
<data source="biome">
<data source="biome"><label>[[Biome]]s</label></data>
<label>[[Biome]]s</label>
</data>
<data source="blocks">
<data source="blocks">
<label>Consists of</label>
<label>Consists of</label>
<format><div class="list-style-none"><div {{#ifexpr: {{#len: {{{blocks|0}}} }} > 512 | class="collapsible collapsed"|}}>{{{blocks|}}}</div></div></format>
<format><div {{#ifexpr: {{#len: {{{blocks|0}}} }} > 512 | class="collapsible collapsed"|}}>{{{blocks}}}</div></format>
</data>
<data source="canspawn">
<label>Can generate in exisiting chunks?</label>
</data>
</data>
<data source="canspawn"><label>Can generate in exisiting chunks?</label></data>
</group>
</group>
</infobox></includeonly><noinclude>
</infobox></onlyinclude><noinclude>{{Documentation}}</noinclude>
{{Documentation}}
<!-- Put categories/interwiki on the documentation page -->
</noinclude>

Revision as of 19:20, 19 February 2023

<infobox> <title source="title"><default>Infobox structure</default></title> <image source="image" /> <navigation></navigation> <group> <label>Biomes</label> <label>Consists of</label>

<format>

{{{blocks}}}

</format>

<label>Can generate in exisiting chunks?</label> </group>

</infobox>

[view] [edit] [history] [refresh]Documentation

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:

<infobox> <title source="title"><default>Infobox structure</default></title> <image source="image" /> <navigation></navigation> <group> <label>Biomes</label> <label>Consists of</label>

<format>
{{{blocks}}}
</format>

<label>Can generate in exisiting chunks?</label> </group> </infobox>

<infobox> <title source="title"><default>Infobox structure</default></title> <image source="image" /> <navigation></navigation> <group> <label>Biomes</label> <label>Consists of</label>

<format>
{{{blocks}}}
</format>

<label>Can generate in exisiting chunks?</label> </group> </infobox>

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
Minecraft Earth
Minecraft Dungeons
Minecraft Legends
Minecraft Story Mode
Other
Meta

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

[view] [edit] [history] [refresh]The above documentation is transcluded from Template:Infobox structure/doc.