Difference between revisions of "Template:Habitats"
Line 1: | Line 1: | ||
− | <noinclude> | + | <noinclude>{{Documentation}}</noinclude><includeonly>{{#vardefine: habitatString | {{#if:{{Q|{{{1|{{PAGENAME}}}}}|Lives In Temperate Forest}}|[[temperate forest]]s, }}<!-- |
− | |||
− | |||
− | |||
− | |||
− | |||
− | </noinclude><includeonly>{{#vardefine: habitatString | {{#if:{{Q|{{{1|{{PAGENAME}}}}}|Lives In Temperate Forest}}|[[temperate forest]]s, }}<!-- | ||
-->{{#if:{{Q|{{{1|{{PAGENAME}}}}}|Lives In Temperate Swamp}}|[[temperate swamp]]s, }}<!-- | -->{{#if:{{Q|{{{1|{{PAGENAME}}}}}|Lives In Temperate Swamp}}|[[temperate swamp]]s, }}<!-- | ||
-->{{#if:{{Q|{{{1|{{PAGENAME}}}}}|Lives In Tropical Rainforest}}|[[tropical rainforest]]s, }}<!-- | -->{{#if:{{Q|{{{1|{{PAGENAME}}}}}|Lives In Tropical Rainforest}}|[[tropical rainforest]]s, }}<!-- |
Latest revision as of 11:09, 29 September 2022
Returns a nicely-formatted list of all the biomes an animal or plant can appear in as defined by the "Lives in" properties.
Parameters[edit]
All parameters are optional.
The first parameter defines the animal or plant of which to display the native biomes. If no value is set, it defaults to the current page.
The second, if present, changes the word between the last two habitats from "and" to "or". Any text will work, but "or" is suggested for clarity's sake.
Examples[edit]
{{Habitats}}
If used on Timber wolf, would result in: temperate forests, temperate swamps, boreal forests, cold bogs, and tundra.
{{Habitats|Bamboo tree}}
If used on any page, would result in: tropical rainforests.
{{Habitats|Cobra|or}}
If used on any page, would result in: tropical rainforests, or tropical swamps.
Wild healroot can spawn in a number of biomes including {{Habitats|Wild healroot}}.
If used on any page, would result in: Wild healroot can spawn in a number of biomes including temperate forests, temperate swamps, boreal forests, cold bogs, and tundra.
The above documentation is transcluded from Template:Habitats/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |