Template:Biome: Difference between revisions

Template page
No edit summary
No edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#invoke:infobox|infobox
<!--------- Infobox --------->
| imagesize={{#if:{{{imagesize|}}}|{{{imagesize|}}}|250px}}
<includeonly>
| image=none
{{Infobox|
| rows =  
|bodyclass = mw-collapsible floatright
{{#if: {{{data|}}} | {{infobox row|label=Data|field={{data value|{{{data}}} }} }} }}
|image1 = {{#if:{{{image|}}}|{{{image}}}|[[File:{{PAGENAME}}.png|400px]]}}
{{infobox row|label='''{{#tip-text: Biome ID | Can be used with /locatebiome in 1.18 and /locate biome in 1.19+ }}'''|field={{#if: {{{biomeid|}}} | <small>{{{biomeid}}}</small> | ? }} }}
|imagerowclass1 = infobox-image
{{infobox row|label='''<span class="plainlinks">[https://minecraft.wiki/w/Biome#Temperature_and_biome_colors Temperature]</span>'''|field={{#if: {{{temperature|}}} | {{{temperature|}}} | ? }} }}
 
{{infobox row|label='''<span class="plainlinks">[https://minecraft.wiki/w/Biome#Temperature_and_biome_colors Humidity]</span>'''|field={{#if: {{{humidity|}}} | {{{humidity|}}} | ? }} }}
|header1 = {{{name|{{PAGENAME}}}}}
{{infobox row|label='''<span class="plainlinks">[https://minecraft.wiki/w/Weather Precipitation]</span>'''|field={{#if: {{{precipitation|}}} | {{{precipitation|}}} {{Tip|Info=If True, will be either rain if the temperature of the biome is over or equal to 0.2 or snow if the temperature of the biome is under 0.2. If False it will neither rain nor snow in the biome. In this case, it will {{#ifeq: {{{precipitation}}} | True | {{#ifexpr: {{{temperature}}} >= 0.2 | rain | snow }} | neither rain nor snow }}.}} | ? }} }}
|rowclass1 = infobox-title
{{#if: {{{rarity|}}} | {{infobox row|label='''Rarity'''|field={{{rarity|}}} }} }}
 
{{#if: {{{structures|}}} | {{infobox row|label='''Structures'''|field={{{structures|}}} }} }}
|label2 = Biome
{{#if: {{{mobs|}}} | {{infobox row|label='''Entities'''|field={{{mobs|}}} }} }}
|data2 = <span class="data-world">{{#if:{{{category|}}}|[[:Category:{{{category}}} biome|{{{category}}}]] biome}}</span>{{#if:{{{server|}}}|{{nbsp}}{{nbsp}}—{{nbsp}}{{nbsp}}<span class="data-located">on [[{{{server}}}]]</span>}}
{{#if: {{{skycolor|}}} | {{infobox row|label=<span class="plainlinks">[https://minecraft.wiki/w/Biome#Sky_and_fog Sky color]</span>|field={{#ifeq: {{#len:{{{skycolor}}}}}|7|{{color|{{{skycolor}}}}}|{{{skycolor}}} }} }} }}
|rowclass2 = data-location infobox-subtitle infobox-data infobox-col1
{{#if: {{{fogcolor|}}} | {{infobox row|label=<span class="plainlinks">[https://minecraft.wiki/w/Biome#Sky_and_fog Fog color]</span>|field={{#ifeq: {{#len:{{{fogcolor}}}}}|7|{{color|{{{fogcolor}}}}}|{{{fogcolor}}} }} }} }}
 
{{#if: {{{grasscolor|}}} | {{infobox row|label=<span class="plainlinks">[https://minecraft.wiki/w/Color#Biome_colors Grass color]</span>|field={{#ifeq: {{#len:{{{grasscolor}}}}}|7|{{color|{{{grasscolor}}}}}|{{{grasscolor}}} }} }} }}
|label5        = Biome ID
{{#if: {{{foliagecolor|}}} | {{infobox row|label=<span class="plainlinks">[https://minecraft.wiki/w/Color#Biome_colors Foliage color]</span>|field={{#ifeq: {{#len:{{{foliagecolor}}}}}|7|{{color|{{{foliagecolor}}}}}|{{{foliagecolor}}} }} }} }}
|data5          = {{#if: {{{biomeid|}}} | <small>{{{biomeid}}}</small> | ? }}
{{#if: {{{watercolor|}}} | {{infobox row|label=Water color|field={{#ifeq: {{#len:{{{watercolor}}}}}|7|{{color|{{{watercolor}}}}}|{{{watercolor}}} }} }} }}
|rowclass5      = data-type infobox-data infobox-col1
{{#if: {{{underwaterfogcolor|}}} | {{infobox row|label=Underwater fog color|field={{#ifeq: {{#len:{{{underwaterfogcolor}}}}}|7|{{color|{{{underwaterfogcolor}}}}}|{{{underwaterfogcolor}}} }} }} }}
<!-- Weather
{{#if: {{{underwaterfogdistance|}}} | {{infobox row|label=Underwater fog distance|field={{{underwaterfogdistance}}} }} }}
|header10 = {{#if:{{{temperature|}}}{{{humidity|}}}{{{precipitation|}}}|Weather}}
{{#if: {{{watersurfacetransparency|}}} | {{infobox row|label=Water surface transparency|field={{{watersurfacetransparency}}} }} }}
|rowclass10 = infobox-header-->
}}
 
<noinclude>
|label11 = <span class="plainlinks">[https://minecraft.wiki/w/Biome#Temperature_and_biome_colors Temperature]</span>
<templatedata>
|data11 = {{#if: {{{temperature|}}} | {{{temperature|}}} | ? }}
{
|rowclass11 = data-type infobox-data infobox-col1
"params": {
 
"imagesize": {},
|label12 = <span class="plainlinks">[https://minecraft.wiki/w/Biome#Temperature_and_biome_colors Humidity]</span>
"data": {},
|data12 = {{#if: {{{humidity|}}} | {{{humidity|}}} | ? }}
"rarity": {
|rowclass12 = data-type infobox-data infobox-col1
"description": "Specifies the biome's relative rarity - Very common, Common, Uncommon, Rare, Very rare. Rarity is based on the likelihood of a specific biome appearing within a 1000-block radius of the origin for any given seed. Tested through an experiment with 50 random seeds. Defaults to a question mark. ",
 
"example": "Very common/Common/Uncommon/Rare/Very rare"
|label13 = <span class="plainlinks">[https://minecraft.wiki/w/Weather Precipitation]</span>
},
|data13 = {{#if: {{{precipitation|}}} | {{{precipitation|}}} {{Tip|Info=If True, will be either rain if the temperature of the biome is over or equal to 0.2 or snow if the temperature of the biome is under 0.2. If False it will neither rain nor snow in the biome. In this case, it will {{#ifeq: {{{precipitation}}} | True | {{#ifexpr: {{{temperature}}} >= 0.2 | rain | snow }} | neither rain nor snow }}.}} | ? }}
"structures": {
|rowclass13 = data-type infobox-data infobox-col1
"description": "Any generated structures that generate in the biome, provide a link to the pages of those structures by using the {{Link|...}} template. If this field is left blank, then the infobox row will not show up at all. ",
 
"example": "{{Link|...}}<br>{{Link|...}}<br>",
 
"suggested": true
<!-- Structures
},
|header20 = {{#if:{{{biome|}}}{{{structure|}}}|Structures}}
"blocks": {
|rowclass20 = infobox-header-->
"description": "Blocks that commonly generate in the biome or any unique blocks that exclusively generate in the biome. If this field is left blank, then the infobox row will not show up at all. ",
|label21 = Structures
"example": "{{L2MCW|...}}<br>{{L2MCW|...}}<br>{{L2MCW|...}}<br>",
|data21         = {{{structures|}}}
"suggested": true
|rowclass21     = data-type infobox-data infobox-col1
},
 
"skycolor": {
 
"description": "Color code of the Sky",
|label26 = Entities
"example": "{{color|#000000}}"
|data26         = {{{mobs|}}}
},
|rowclass26     = data-type infobox-data infobox-col1
"fogcolor": {
<!-- color
"description": "Color code of the fog",
|header30 = {{#if:{{{skycolor|}}}{{{fogcolor|}}}{{{grasscolor|}}}{{{foliagecolor|}}}{{{watercolor|}}}{{{underwaterfogcolor|}}}|Color}}
"example": "{{color|#000000}}"
|rowclass30 = infobox-header-->
},
 
"grasscolor": {
<!-- color -->
"description": "Color code of the grass",
|label34 = <span class="plainlinks">[https://minecraft.wiki/w/Biome#Sky_and_fog Sky color]</span>
"example": "{{color|#000000}}"
|data34     = {{#ifeq: {{#len:{{{skycolor}}}}}|7|{{color|{{{skycolor}}}}}|{{{skycolor}}} }}
},
|rowclass34    = data-type infobox-data infobox-col1
"foliagecolor": {
 
"description": "Color code of the foliage",
|label34 = <span class="plainlinks">[https://minecraft.wiki/w/Biome#Sky_and_fog Fog color]</span>
"example": "{{color|#000000}}"
|data34     = {{#ifeq: {{#len:{{{fogcolor}}}}}|7|{{color|{{{fogcolor}}}}}|{{{fogcolor}}} }}
},
|rowclass34    = data-type infobox-data infobox-col1
"watercolor": {
 
"description": "Color code of the water",
|label35 = <span class="plainlinks">[https://minecraft.wiki/w/Color#Biome_colors Grass color]</span>
"example": "{{color|#000000}}"
|data35     = {{#ifeq: {{#len:{{{grasscolor}}}}}|7|{{color|{{{grasscolor}}}}}|{{{grasscolor}}} }}
},
|rowclass35    = data-type infobox-data infobox-col1
"underwaterfogcolor": {
 
"description": "Color code of the underwater fog",
|label36 = <span class="plainlinks">[https://minecraft.wiki/w/Color#Biome_colors Foliage color]</span>
"example": "{{color|#000000}}"
|data36         = {{#ifeq: {{#len:{{{foliagecolor}}}}}|7|{{color|{{{foliagecolor}}}}}|{{{foliagecolor}}} }}
},
|rowclass36    = data-type infobox-data infobox-col1
"underwaterfogdistance": {},
 
"watersurfacetransparency": {},
|label37 = Water color
"category": {
|data37         = {{#ifeq: {{#len:{{{watercolor}}}}}|7|{{color|{{{watercolor}}}}}|{{{watercolor}}} }}
"description": "Category of a biome can be found at the bottom of the .json of said biome in /worldgen/biome",
|rowclass37    = data-type infobox-data infobox-col1
"example": "Desert",
 
"autovalue": "",
|label38 = Usable items
"suggested": true
|data38     = {{#ifeq: {{#len:{{{underwaterfogcolor}}}}}|7|{{color|{{{underwaterfogcolor}}}}}|{{{underwaterfogcolor}}} }}  
},
|rowclass38    = data-type infobox-data infobox-col1
"temperature": {
 
"description": "Found in the .json",
}}</includeonly><!--
"suggested": true
 
},
--------------
"humidity": {
Categorization
"description": "Found in the .json",
--------------
"suggested": true
 
},
Locations
"biomeid": {
----
"description": "ID of the biome that can be found in /biome, F3, or /locatebiome",
--><includeonly>[[Category:Biome]]</includeonly><!--
"example": "terralith:ancient_sands",
Server
"type": "string",
--------------
"autovalue": "",
--><includeonly>{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}_biomes </includeonly><!--
"required": true
---
},
SEO
"precipitation": {
-----><includeonly>{{#vardefine:infoboxseo|1}}{{#seo:
"description": "If True, will be either rain if the temperature of the biome is over 0.2 or snow if the temperature of the biome is under 0.2. If False it will neither rain nor snow in the biome.",
|title = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}} Biome - {{SITENAME}}
"example": "True/False",
|site_name = {{SITENAME}}
"suggested": true
|type = article
},
|locale = {{PAGELANGUAGE}}
"mobs": {
|image = {{#if:{{{image|}}}|{{{image}}}|{{PAGENAME}}.png}}
"description": "Uncommon Mc mobs or Custom mobs that can be found in the biome.",
}}</includeonly>
"example": "{{Link|...}}<br>{{Link|...}}<br>",
"suggested": true
}
},
"paramOrder": [
"imagesize",
"data",
"biomeid",
"category",
"temperature",
"humidity",
"precipitation",
"rarity",
"structures",
"blocks",
"mobs",
"skycolor",
"fogcolor",
"grasscolor",
"foliagecolor",
"watercolor",
"underwaterfogcolor",
"underwaterfogdistance",
"watersurfacetransparency"
],
"description": "Use this template to add specific information about a biome in a small formatted infobox."
}
</templatedata>
</noinclude>

Latest revision as of 13:14, 13 June 2024