Template:Infobox biome: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 5: Line 5:
<image source="image" />
<image source="image" />
<navigation>{{#if: {{{extratext|}}} | {{{extratext}}} }}</navigation>
<navigation>{{#if: {{{extratext|}}} | {{{extratext}}} }}</navigation>
<data source="type">
<group collapse="open">
<label>Type</label>
<header>Description</header>
</data>
<data source="type">
<data source="rarity">
<label>Type</label>
<label>[[Rarity]]</label>
</data>
</data>
<data source="rarity">
<data source="temperature">
<label>[[Rarity]]</label>
<label>[[Biome#Temperature|Temperature]]</label>
</data>
</data>
<data source="temperature">
<data source="structures">
<label>[[Biome#Temperature|Temperature]]</label>
<label>Structures</label>
</data>
</data>
<data source="structures">
<data source="blocks">
<label>Structures</label>
<label>Blocks</label>
</data>
</data>
<data source="blocks">
<data source="skycolor">
<label>Blocks</label>
<label>Sky color</label>
</data>
<format>{{#ifeq: {{#len:{{{skycolor}}}}}|7|{{color|{{{skycolor}}}}}|{{{skycolor}}} }}</format>
</group>
</data>
<group collapse="closed">
<data source="fogcolor">
<header>Colors</header>
<label>Fog color</label>
<data source="skycolor">
<format>{{#ifeq: {{#len:{{{fogcolor}}}}}|7|{{color|{{{fogcolor}}}}}|{{{fogcolor}}} }}</format>
<label>Sky color</label>
</data>
<format>{{#ifeq: {{#len:{{{skycolor}}}}}|7|{{color|{{{skycolor}}}}}|{{{skycolor}}} }}</format>
<data source="grasscolor">
</data>
<label>Grass color</label>
<data source="fogcolor">
<format>{{#ifeq: {{#len:{{{grasscolor}}}}}|7|{{color|{{{grasscolor}}}}}|{{{grasscolor}}} }}</format>
<label>Fog color</label>
</data>
<format>{{#ifeq: {{#len:{{{fogcolor}}}}}|7|{{color|{{{fogcolor}}}}}|{{{fogcolor}}} }}</format>
<data source="foliagecolor">
</data>
<label>Foliage color</label>
<data source="grasscolor">
<format>{{#ifeq: {{#len:{{{foliagecolor}}}}}|7|{{color|{{{foliagecolor}}}}}|{{{foliagecolor}}} }}</format>
<label>Grass color</label>
</data>
<format>{{#ifeq: {{#len:{{{grasscolor}}}}}|7|{{color|{{{grasscolor}}}}}|{{{grasscolor}}} }}</format>
<data source="watercolor">
</data>
<label>Water color</label>
<data source="foliagecolor">
<format>{{#ifeq: {{#len:{{{watercolor}}}}}|7|{{color|{{{watercolor}}}}}|{{{watercolor}}} }}</format>
<label>Foliage color</label>
</data>
<format>{{#ifeq: {{#len:{{{foliagecolor}}}}}|7|{{color|{{{foliagecolor}}}}}|{{{foliagecolor}}} }}</format>
<data source="underwaterfogcolor">
</data>
<label>Color of underwater's fog</label>
<data source="watercolor">
<format>{{#ifeq: {{#len:{{{underwaterfogcolor}}}}}|7|{{color|{{{underwaterfogcolor}}}}}|{{{underwaterfogcolor}}} }}</format>
<label>Water color</label>
</data>
<format>{{#ifeq: {{#len:{{{watercolor}}}}}|7|{{color|{{{watercolor}}}}}|{{{watercolor}}} }}</format>
<data source="underwaterfogdistance">
</data>
<label>Distance of underwater's fog</label>
<data source="underwaterfogcolor">
</data>
<label>Color of underwater's fog</label>
<data source="watersurfacetransparency">
<format>{{#ifeq: {{#len:{{{underwaterfogcolor}}}}}|7|{{color|{{{underwaterfogcolor}}}}}|{{{underwaterfogcolor}}} }}</format>
<label>Transparency of water's surface</label>
</data>
</data>
<data source="underwaterfogdistance">
</infobox></onlyinclude><noinclude>
<label>Distance of underwater's fog</label>
{{documentation}}
</data>
<!-- Put categories/interwiki on the documentation page -->
<data source="watersurfacetransparency">
</noinclude>
<label>Transparency of water's surface</label>
</data>
</group>
</infobox></onlyinclude><noinclude>{{documentation}}</noinclude>

Revision as of 21:07, 18 February 2023

<infobox> <title source="title"> <default>Infobox biome</default> </title> <image source="image" /> <navigation></navigation> <group collapse="open"> <header>Description</header> <label>Type</label> <label>Rarity</label> <label>Temperature</label> <label>Structures</label> <label>Blocks</label> </group> <group collapse="closed"> <header>Colors</header> <label>Sky color</label> <format>{{{skycolor}}}</format> <label>Fog color</label> <format>{{{fogcolor}}}</format> <label>Grass color</label> <format>{{{grasscolor}}}</format> <label>Foliage color</label> <format>{{{foliagecolor}}}</format> <label>Water color</label> <format>{{{watercolor}}}</format> <label>Color of underwater's fog</label> <format>{{{underwaterfogcolor}}}</format> <label>Distance of underwater's fog</label> <label>Transparency of water's surface</label> </group>

</infobox>

[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.