Template:Infobox structure: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
No edit summary
m 64 revisions imported
 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<onlyinclude><infobox>
{{#invoke:infobox|infobox
<title source="title"><default>{{BASEPAGENAME}}</default></title>
| defaultimagesize = {{ #if: {{{defaultimagesize|}}} | {{{defaultimagesize}}} | 250px }}
<image source="image"><default>{{
| invimage = none
#if: {{PROTECTIONEXPIRY:edit|File:{{BASEPAGENAME}}.png}} <!-- Don't use #ifexist, because it creates red links -->
| rows =
| File:{{BASEPAGENAME}}.png
{{ #if: {{{biome|}}} | {{infobox row|class=list-style-none|label=[[Biome]]s|field={{{biome}}} }} }}
}}</default></image>
{{ #if: {{{mobs|}}} | {{infobox row|class=list-style-none|label=[[Mob]]s|field={{{mobs}}} }} }}
<image source="image2"/>
{{ #if: {{{surface|}}} | {{infobox row|class=list-style-none|label={{#if: {{{fruit}}}|Grows|Generates}} on|field={{{surface}}} }} }}
<navigation>{{{extratext|}}}</navigation>
{{ #if: {{{fruit|}}} | {{infobox row|class=list-style-none|label=Fruit|field={{{fruit}}} }} }}
<data source="biome"><label>[[Biome]]s</label></data>
{{ #if: {{{canspawn|}}} | {{infobox row|label=Can generate in<br>existing chunks|field={{{canspawn}}} }} }}
<data source="surface"><label>{{#if: {{{fruit}}}|Grows|Generates}} on</label></data>
{{ #if: {{{blocks|}}} | {{infobox row|class=list-style-none|label=Consists of|field=
<data source="fruit"><label>Fruit</label></data>
{{ #ifexpr: {{#len: {{{blocks}}} }} > 2000 | {{{!}} class="collapsible collapsed"
<data source="canspawn"><label>Can generate in existing chunks?</label></data>
!
<group collapse="closed">
{{!}}-
<header>Consists of</header>
{{!}}
<navigation>{{#if:{{{blocks|}}}|<div class="list-style-none" style="line-height:1.5em">{{{blocks|}}}</div>}}</navigation>
{{{blocks}}}
</group>
{{!}}} | {{{blocks}}} }} }} }}
</infobox></onlyinclude><noinclude>{{Documentation}}</noinclude>
}}<noinclude>
{{documentation}}
<!-- Put categories/interwiki on the documentation page -->
</noinclude>

Latest revision as of 07:39, 4 July 2024

Infobox structure
[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:

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

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.