Template:Infobox biome: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
Removed unused or outdated data; added lines based on 1.18~1.19
m rebase dev changes onto prod
Line 1: Line 1:
<onlyinclude><infobox>
<includeonly>{{#invoke:infobox|infobox
<title source="title"><default>{{BASEPAGENAME}}</default></title>
| imagesize={{#if:{{{imagesize|}}}|{{{imagesize|}}}|250px}}
<image source="image"><default>{{
| rows =
#if: {{PROTECTIONEXPIRY:edit|File:{{BASEPAGENAME}}.png}} <!-- Don't use #ifexist, because it creates red links -->
{{#if: {{{data|}}} | {{infobox row|label=Data|field={{data value|{{{data}}} }} }} }}
| File:{{BASEPAGENAME}}.png
{{#if: {{{structures|}}} | {{infobox row|label=Structures|field={{{structures|}}} }} }}
}}</default></image>
{{#if: {{{blocks|}}} | {{infobox row|label=Blocks|field={{{blocks|}}} }} }}
<navigation>{{{extratext|}}}</navigation>
{{#if: {{{temperature|}}} | {{infobox row|label=[[Biome#Temperature|Temperature]]|field={{{temperature|}}} }} }}
<data source="structures"><label>Structures and Features</label></data>
{{#if: {{{downfall|}}} | {{infobox row|label=[[Biome#Downfall|Downfall]]|field={{{downfall|}}} }} }}
<data source="blocks"><label>Blocks</label></data>
{{#if: {{{precipitation|}}} | {{infobox row|label=[[Biome#Precipitation|Precipitation]]|field={{{precipitation|}}} }} }}
<group>
{{#if: {{{snow_accumulation|}}} | {{infobox row|label=[[Biome#Snow accumulation|Snow accumulation]]|field={{{snow_accumulation|}}} }} }}
<header>[[Biome#Climate|Climate]]</header>
{{#if: {{{skycolor|}}} | {{infobox row|label=Sky color|field={{#ifeq: {{#len:{{{skycolor}}}}}|7|{{color|{{{skycolor}}}}}|{{{skycolor}}} }} }} }}
<data source="temperature"><label>Temperature</label></data>
{{#if: {{{fogcolor|}}} | {{infobox row|label=Fog color|field={{#ifeq: {{#len:{{{fogcolor}}}}}|7|{{color|{{{fogcolor}}}}}|{{{fogcolor}}} }} }} }}
<data source="downfall"><label>Downfall</label></data>
{{#if: {{{grasscolor|}}} | {{infobox row|label=Grass color|field={{#ifeq: {{#len:{{{grasscolor}}}}}|7|{{color|{{{grasscolor}}}}}|{{{grasscolor}}} }} }} }}
<data source="precipitation"><label>Precipitation</label></data>
{{#if: {{{foliagecolor|}}} | {{infobox row|label=Foliage color|field={{#ifeq: {{#len:{{{foliagecolor}}}}}|7|{{color|{{{foliagecolor}}}}}|{{{foliagecolor}}} }} }} }}
<data source="snow_accumulation"><label>Snow Accumulation</label></data>
{{#if: {{{watercolor|}}} | {{infobox row|label=Water color|field={{#ifeq: {{#len:{{{watercolor}}}}}|7|{{color|{{{watercolor}}}}}|{{{watercolor}}} }} }} }}
</group>
{{#if: {{{underwaterfogcolor|}}} | {{infobox row|label=Underwater fog color|field={{#ifeq: {{#len:{{{underwaterfogcolor}}}}}|7|{{color|{{{underwaterfogcolor}}}}}|{{{underwaterfogcolor}}} }} }} }}
<group collapse="closed">
}}</includeonly><noinclude>
<header>Colors</header>
{{documentation}}
<data source="skycolor">
<!-- Put categories/interwiki on the documentation page -->
<label>Sky color</label>
</noinclude>
<format>{{#ifeq: {{#len:{{{skycolor}}}}}|7|{{color|{{{skycolor}}}}}|{{{skycolor}}} }}</format>
</data>
<data source="fogcolor">
<label>Fog color</label>
<format>{{#ifeq: {{#len:{{{fogcolor}}}}}|7|{{color|{{{fogcolor}}}}}|{{{fogcolor}}} }}</format>
</data>
<data source="grasscolor">
<label>Grass color</label>
<format>{{#ifeq: {{#len:{{{grasscolor}}}}}|7|{{color|{{{grasscolor}}}}}|{{{grasscolor}}} }}</format>
</data>
<data source="foliagecolor">
<label>Foliage color</label>
<format>{{#ifeq: {{#len:{{{foliagecolor}}}}}|7|{{color|{{{foliagecolor}}}}}|{{{foliagecolor}}} }}</format>
</data>
<data source="watercolor">
<label>Water color</label>
<format>{{#ifeq: {{#len:{{{watercolor}}}}}|7|{{color|{{{watercolor}}}}}|{{{watercolor}}} }}</format>
</data>
<data source="underwaterfogcolor">
<label>Color of underwater's fog</label>
<format>{{#ifeq: {{#len:{{{underwaterfogcolor}}}}}|7|{{color|{{{underwaterfogcolor}}}}}|{{{underwaterfogcolor}}} }}</format>
</data>
</group>
</infobox></onlyinclude><noinclude>{{Documentation}}</noinclude>

Revision as of 16:24, 24 September 2023

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

This template provides an easy way to apply a standardized infobox to all biome pages.

{{Biome
|title=
|image=
|extratext=
|structures=
|blocks=
|temperature=
|downfall=
|precipitation=
}}
Parameter Function
title Only needed to change the title from the page name, which is the default.
image Image of the biome (should be approx. 150×150px). By default, it will use {{{title}}}.png if it exists, otherwise No image.svg (linking to the page where to upload the missing image)
extratext Only needed when there is a need to link to a section with more images.
temperature Specifies the biome's temperature as a decimal (e..g 0.5).
downfall Specifies the biome's downfall as a decimal (e..g 0.5).
precipitation Specifies the biome's precipitation with "Yes" or "No".
structures Typical structures and features that generate in the biome, if applicable.
blocks Blocks that commonly generate in the biome or any unique blocks that exclusively generate in the biome.

See also

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

de:Vorlage:Biom es:Plantilla:Bioma fr:Modèle:Biome ja:テンプレート:Infobox biome ko:틀:Biome nl:Sjabloon:Biome pt:Predefinição:Bioma ru:Шаблон:Биом uk:Шаблон:Біом zh:Template:Biome

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