Difference between revisions of "Template:IUCN status"

From blackwiki
Jump to navigation Jump to search
imported>Pppery
(Missing tfd tag)
imported>Darekk2
(Undid revision 815852467 by Pppery (talk) You probably confused template with module)
 
Line 1: Line 1:
{{Template for discussion/dated|page=IUCN status|link=Wikipedia:Templates for discussion/Log/2017 December 17#Template:IUCN status|type=inline|bigbox={{#invoke:Noinclude|noinclude|text=yes}}}}<includeonly>{{#if:{{{3|}}}
+
<includeonly>{{#if:{{{3|}}}
 
|{{#switch:{{lc:{{{class|{{{3|}}}}}}}}
 
|{{#switch:{{lc:{{{class|{{{3|}}}}}}}}
 
  |1 = {{IUCN status/status|{{{1}}}}}
 
  |1 = {{IUCN status/status|{{{1}}}}}

Latest revision as of 18:13, 17 December 2017

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

Usage

{{IUCN status|<IUCN Threatened Species status>|<IUCN Species ID>|<option>}}

<IUCN Species ID> is not required, but recommended parameter. If <option> is set to

1 or 12 (and <IUCN Species ID> is not empty), an external link to the IUCN website is displayed.
2 or 12, an internal link to the article about given conservation status category is provided.
Code Output
{{IUCN status|EX}} EX
{{IUCN status|EW}} EW
{{IUCN status|CR}} CR
{{IUCN status|EN}} EN
{{IUCN status|VU}} VU
{{IUCN status|LR/cd}} LR/cd
{{IUCN status|NT}} NT
{{IUCN status|LR/nt}} LR/nt
{{IUCN status|LC}} LC
{{IUCN status|LR/lc}} LR/lc
{{IUCN status|DD}} DD
{{IUCN status|NE}} NE
{{IUCN status|NR}} (NR)           (there is no such IUCN category)
{{IUCN status|whatever}} whatever
{{IUCN status|EN|32353}} EN
{{IUCN status|EN|32353|1}} EN IUCN
{{IUCN status|EN||2}} EN
{{IUCN status|EN|32353|12}} EN IUCN

Sample corresponding Wiki markup:

  1. <span style="background-color: black; color: #CC3333; padding: 0 1pt 0 1pt;" title="Extinct">'''EX'''</span>
  2. <span style="color: gray;" title="Data Deficient">'''DD'''</span>

and HTML code:

  1. <span style="background-color: black; color: #CC3333; padding: 0 1pt 0 1pt;" title="Extinct"><b>EX</b></span>
  2. <span style="color: gray;" title="Data Deficient"><b>DD</b></span>

See also