Difference between revisions of "Template:IUCN banner"

From blackwiki
Jump to navigation Jump to search
imported>Zackmann08
(don't categorize templates)
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.{{main other|[[Category:Pages using IUCN banner with invalid value]]}}</div>
 
-->[[IUCN]] category was entered.{{main other|[[Category:Pages using IUCN banner with invalid value]]}}</div>

Revision as of 00:40, 12 November 2018

Template documentation[view] [edit] [history] [purge]

This template is used inside other templates. It takes one unnamed parameter and creates a "banner" to be displayed in an infobox.

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 Ib (wilderness area)
IUCN category II (national park)
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)
DataMy data
{{Infobox
| above  = My infobox
| data1  = {{IUCN banner|II}}
| label2 = Data
| data2  = My data
}}

Used by

Tracking categories

bn:টেমপ্লেট:IUCN banner id:Templat:IUCN banner ja:Template:IUCN banner ro:Format:Antet IUCN sl:Predloga:IUCN banner