Difference between revisions of "Template:IUCN banner/sandbox"
Jump to navigation
Jump to search
imported>Hike395 (sync sandbox) |
imported>Zackmann08 (adding support for reference) |
||
Line 1: | Line 1: | ||
{{#if: {{{1|}}} | {{#switch: {{uc:{{{1|}}}}} | {{#if: {{{1|}}} | {{#switch: {{uc:{{{1|}}}}} | ||
| IA = <div style="background-color: #E7AF97;">[[IUCN]]<!-- | | IA = <div style="background-color: #E7AF97;">[[IUCN]]<!-- | ||
− | --> category Ia ([[Nature reserve|strict nature reserve]])</div>{{#if:{{NAMESPACE}}||[[Category:IUCN Category Ia]]}} | + | --> category Ia ([[Nature reserve|strict nature reserve]]){{{2|}}}</div>{{#if:{{NAMESPACE}}||[[Category:IUCN Category Ia]]}} |
| IB = <div style="background-color: #DACAA5;">[[IUCN]]<!-- | | IB = <div style="background-color: #DACAA5;">[[IUCN]]<!-- | ||
− | --> category Ib ([[wilderness area]])</div>{{#if:{{NAMESPACE}}||[[Category:IUCN Category Ib]]}} | + | --> category Ib ([[wilderness area]]){{{2|}}}</div>{{#if:{{NAMESPACE}}||[[Category:IUCN Category Ib]]}} |
| II = <div style="background-color: #CDE5B2;">[[IUCN]]<!-- | | II = <div style="background-color: #CDE5B2;">[[IUCN]]<!-- | ||
− | --> category II ([[national park]])</div>{{#if:{{NAMESPACE}}||[[Category:IUCN Category II]]}} | + | --> category II ([[national park]]){{{2|}}}</div>{{#if:{{NAMESPACE}}||[[Category:IUCN Category II]]}} |
| III = <div style="background-color: #BFFFBF;">[[IUCN]]<!-- | | III = <div style="background-color: #BFFFBF;">[[IUCN]]<!-- | ||
− | --> category III ([[natural monument|natural monument or feature]])</div>{{#if:{{NAMESPACE}}||[[Category:IUCN Category III]]}} | + | --> category III ([[natural monument|natural monument or feature]]){{{2|}}}</div>{{#if:{{NAMESPACE}}||[[Category:IUCN Category III]]}} |
| IV = <div style="background-color: #B2E5CD;">[[IUCN]]<!-- | | IV = <div style="background-color: #B2E5CD;">[[IUCN]]<!-- | ||
− | --> category IV (habitat/species management area)</div>{{#if:{{NAMESPACE}}||[[Category:IUCN Category IV]]}} | + | --> category IV (habitat/species management area){{{2|}}}</div>{{#if:{{NAMESPACE}}||[[Category:IUCN Category IV]]}} |
| V = <div style="background-color: #A5CADA;">[[IUCN]]<!-- | | V = <div style="background-color: #A5CADA;">[[IUCN]]<!-- | ||
− | --> category V (protected landscape/seascape)</div>{{#if:{{NAMESPACE}}||[[Category:IUCN Category V]]}} | + | --> category V (protected landscape/seascape){{{2|}}}</div>{{#if:{{NAMESPACE}}||[[Category:IUCN Category V]]}} |
| VI = <div style="background-color: #A8BDEC;">[[IUCN]]<!-- | | VI = <div style="background-color: #A8BDEC;">[[IUCN]]<!-- | ||
− | --> category VI (protected area with sustainable use of natural resources)</div>{{#if:{{NAMESPACE}}||[[Category:IUCN Category VI]]}} | + | --> category VI (protected area with sustainable use of natural resources){{{2|}}}</div>{{#if:{{NAMESPACE}}||[[Category:IUCN Category VI]]}} |
| #default = <div style="color: #C80815; font-weight: bold;">An unknown <!-- | | #default = <div style="color: #C80815; font-weight: bold;">An unknown <!-- | ||
-->[[IUCN]] category was entered.</div> | -->[[IUCN]] category was entered.</div> |
Latest revision as of 00:39, 12 November 2018
![]() | This is the template sandbox page for Template:IUCN banner (diff). See also the companion subpage for test cases. |
This template is used inside other templates. It takes one unnamed parameter and creates a "banner" to be displayed in an infobox.
Contents
Usage
Depending on the value of the parameter, one of the following banners will be displayed. Valid values are Ia, Ib, II, III, IV, V and VI. For more information read the World Commission on Protected Areas article. If no value is used no banner will be displayed. If an invalid value is used an error message will be displayed.
IUCN category Ia (strict nature reserve)
|
IUCN category Ib (wilderness area)
|
IUCN category II (national park)
|
IUCN category III (natural monument or feature)
|
IUCN category IV (habitat/species management area)
|
IUCN category V (protected landscape/seascape)
|
IUCN category VI (protected area with sustainable use of natural resources)
|
Example
My infobox | |
---|---|
IUCN category II (national park) | |
Data | My data |
{{Infobox | above = My infobox | data1 = {{IUCN banner|II}} | label2 = Data | data2 = My data }}
Used by
Tracking categories
The above documentation is transcluded from Template:IUCN banner/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |