Template:Biome: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<!--------- Infobox --------->
<includeonly>
{{Infobox|
|bodyclass = mw-collapsible floatright
|image1 = {{#if:{{{image|}}}|[[File:{{{image}}}|400px]]|[[File:BiomePlaceholder.png|400px]]}}
|imagerowclass1 = infobox-image
|header1 = {{{name|{{PAGENAME}}}}}
|rowclass1 = infobox-title
|label2 = Biome
|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>}}
|rowclass2 = data-location infobox-subtitle infobox-data infobox-col1
|header60 = {{#if:{{{article1|}}}{{{article2|}}}{{{article3|}}}{{{github|}}}{{{spigot|}}}{{{extwiki|}}}|{{Infobox buttons|type=plugin|article1={{{article1|}}}|article2={{{article2|}}}|article3={{{article3|}}}|github={{{github|}}}|spigot={{{spigot|}}}|extwiki={{{extwiki|}}}}}}}|<span></span>
|rowclass60 = infobox-button-bar
}}</includeonly>
{{#invoke:infobox|infobox
{{#invoke:infobox|infobox
| imagesize={{#if:{{{imagesize|}}}|{{{imagesize|}}}|250px}}
| imagesize={{#if:{{{imagesize|}}}|{{{imagesize|}}}|250px}}
Line 8: Line 27:
{{infobox row|label='''<span class="plainlinks">[https://minecraft.wiki/w/Biome#Temperature_and_biome_colors Humidity]</span>'''|field={{#if: {{{humidity|}}} | {{{humidity|}}} | ? }} }}
{{infobox row|label='''<span class="plainlinks">[https://minecraft.wiki/w/Biome#Temperature_and_biome_colors Humidity]</span>'''|field={{#if: {{{humidity|}}} | {{{humidity|}}} | ? }} }}
{{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 }}.}} | ? }} }}
{{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 }}.}} | ? }} }}
{{#if: {{{rarity|}}} | {{infobox row|label='''Rarity'''|field={{{rarity|}}} }} }}
{{#if: {{{rarity|}}} | {{infobox row|label='''Rarity'''|field={{{rarity|}}} }} }}
{{#if: {{{structures|}}} | {{infobox row|label='''Structures'''|field={{{structures|}}} }} }}
{{#if: {{{structures|}}} | {{infobox row|label='''Structures'''|field={{{structures|}}} }} }}
{{#if: {{{mobs|}}} | {{infobox row|label='''Entities'''|field={{{mobs|}}} }} }}
{{#if: {{{mobs|}}} | {{infobox row|label='''Entities'''|field={{{mobs|}}} }} }}
{{#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}}} }} }} }}
{{#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}}} }} }} }}
{{#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: {{{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}}} }} }} }}
{{#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}}} }} }} }}
{{#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}}} }} }} }}
{{#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}}} }} }} }}
{{#if: {{{watercolor|}}} | {{infobox row|label=Water color|field={{#ifeq: {{#len:{{{watercolor}}}}}|7|{{color|{{{watercolor}}}}}|{{{watercolor}}} }} }} }}
{{#if: {{{watercolor|}}} | {{infobox row|label=Water color|field={{#ifeq: {{#len:{{{watercolor}}}}}|7|{{color|{{{watercolor}}}}}|{{{watercolor}}} }} }} }}
{{#if: {{{underwaterfogcolor|}}} | {{infobox row|label=Underwater fog color|field={{#ifeq: {{#len:{{{underwaterfogcolor}}}}}|7|{{color|{{{underwaterfogcolor}}}}}|{{{underwaterfogcolor}}} }} }} }}
{{#if: {{{underwaterfogcolor|}}} | {{infobox row|label=Underwater fog color|field={{#ifeq: {{#len:{{{underwaterfogcolor}}}}}|7|{{color|{{{underwaterfogcolor}}}}}|{{{underwaterfogcolor}}} }} }} }}
{{#if: {{{underwaterfogdistance|}}} | {{infobox row|label=Underwater fog distance|field={{{underwaterfogdistance}}} }} }}
{{#if: {{{underwaterfogdistance|}}} | {{infobox row|label=Underwater fog distance|field={{{underwaterfogdistance}}} }} }}
{{#if: {{{watersurfacetransparency|}}} | {{infobox row|label=Water surface transparency|field={{{watersurfacetransparency}}} }} }}
{{#if: {{{watersurfacetransparency|}}} | {{infobox row|label=Water surface transparency|field={{{watersurfacetransparency}}} }} }}
}}
}}
<noinclude>
<templatedata>
{
"params": {
"imagesize": {},
"data": {},
"rarity": {
"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"
},
"structures": {
"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
},
"blocks": {
"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. ",
"example": "{{L2MCW|...}}<br>{{L2MCW|...}}<br>{{L2MCW|...}}<br>",
"suggested": true
},
"skycolor": {
"description": "Color code of the Sky",
"example": "{{color|#000000}}"
},
"fogcolor": {
"description": "Color code of the fog",
"example": "{{color|#000000}}"
},
"grasscolor": {
"description": "Color code of the grass",
"example": "{{color|#000000}}"
},
"foliagecolor": {
"description": "Color code of the foliage",
"example": "{{color|#000000}}"
},
"watercolor": {
"description": "Color code of the water",
"example": "{{color|#000000}}"
},
"underwaterfogcolor": {
"description": "Color code of the underwater fog",
"example": "{{color|#000000}}"
},
"underwaterfogdistance": {},
"watersurfacetransparency": {},
"category": {
"description": "Category of a biome can be found at the bottom of the .json of said biome in /worldgen/biome",
"example": "Desert",
"autovalue": "",
"suggested": true
},
"temperature": {
"description": "Found in the .json",
"suggested": true
},
"humidity": {
"description": "Found in the .json",
"suggested": true
},
"biomeid": {
"description": "ID of the biome that can be found in /biome, F3, or /locatebiome",
"example": "terralith:ancient_sands",
"type": "string",
"autovalue": "",
"required": true
},
"precipitation": {
"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.",
"example": "True/False",
"suggested": true
},
"mobs": {
"description": "Uncommon Mc mobs or Custom mobs that can be found in the biome.",
"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>

Revision as of 20:59, 27 May 2024