Difference between revisions of "Template:FEIS"

From blackwiki
Jump to navigation Jump to search
imported>Erutuon
(year as alias of date?)
imported>Erutuon
(add "spp" if species was not given (https://www.fs.fed.us/database/feis/plants/vine/diospp/all.html); format if-statements for errors; check for subspecies or variety with no species)
Line 5: Line 5:
 
| date = {{{date|{{{year|}}}}}}
 
| date = {{{date|{{{year|}}}}}}
 
| title = {{{genus|}}} {{{species|}}} {{#if: {{{subspecies|}}} | subsp. | }}{{#if: {{{variety|}}} | var. | }}{{{subspecies|}}}{{{variety|}}}
 
| title = {{{genus|}}} {{{species|}}} {{#if: {{{subspecies|}}} | subsp. | }}{{#if: {{{variety|}}} | var. | }}{{{subspecies|}}}{{{variety|}}}
| url = https://www.fs.fed.us/database/feis/{{FEIS/type|{{{type|}}}}}{{{type|}}}/{{#if:{{{code|}}}|{{{code|}}}|{{str left|{{lc:{{{genus|}}}}}|{{#ifeq:{{FEIS/type|{{{type|}}}}}|animals/|2|3}}}}{{str left|{{lc:{{{species|}}}}}|{{#ifeq:{{FEIS/type|{{{type|}}}}}|animals/|2|3}}}}{{str left|{{lc:{{{variety|{{{subspecies|}}}}}}|1}}}}}}/all.html
+
| url = https://www.fs.fed.us/database/feis/{{FEIS/type|{{{type|}}}}}{{{type|}}}/{{#if:{{{code|}}}|{{{code|}}}|{{str left|{{lc:{{{genus|}}}}}|{{#ifeq:{{FEIS/type|{{{type|}}}}}|animals/|2|3}}}}{{str left|{{lc:{{{species|spp}}}}}|{{#ifeq:{{FEIS/type|{{{type|}}}}}|animals/|2|3}}}}{{str left|{{lc:{{{variety|{{{subspecies|}}}}}}|1}}}}}}/all.html
 
| website = Fire Effects Information System (FEIS)
 
| website = Fire Effects Information System (FEIS)
 
| publisher = U.S. Department of Agriculture (USDA), Forest Service (USFS), Rocky Mountain Research Station, Fire Sciences Laboratory
 
| publisher = U.S. Department of Agriculture (USDA), Forest Service (USFS), Rocky Mountain Research Station, Fire Sciences Laboratory
 
| via = https://www.fs.fed.us/database/feis/
 
| via = https://www.fs.fed.us/database/feis/
 
| accessdate = {{{accessdate|}}}
 
| accessdate = {{{accessdate|}}}
}}{{#if: {{{genus|}}} | | {{color|red|Please provide the genus in the parameter {{para|genus}}.&nbsp;}} }}{{#if: {{{species|}}} | | {{color|red|Please provide the species epithet in the parameter {{para|species}}.&nbsp;}} }}{{#if: {{{variety|}}} | {{#if: {{{subspecies|}}} | {{color|red|You have selected both {{para|subspecies|{{{subspecies|}}}}} and {{para|variety|{{{variety|}}}}}. This is most likely an error.}} }} }}{{#ifeq:{{FEIS/type|{{{type|}}}}} | error | {{color|red|Either you did not provide a value for {{para|type}}, or the value you provided is not recognized. For a list of options, see [[Template:FEIS/doc]].}} }}</includeonly><noinclude>
+
}}{{#if: {{{genus|}}}
 +
  |
 +
  | {{color|red|Please provide the genus in the parameter {{para|genus}}.&nbsp;}}
 +
  }}<!--
 +
-->{{#if: {{{species|}}}
 +
  |
 +
  | <!-- {{color|red|Please provide the species epithet in the parameter {{para|species}}.&nbsp;}}
 +
  -->{{#if:{{{variety|{{{subspecies|}}}}}}
 +
      |{{color|red|{{para|subspecies}} or {{para|variety}} has been supplied but not {{para|species}}.}}
 +
      }}
 +
  }}<!--
 +
-->{{#if: {{{variety|}}}
 +
  | {{#if: {{{subspecies|}}}
 +
      | {{color|red|You have selected both {{para|subspecies|{{{subspecies|}}}}} and {{para|variety|{{{variety|}}}}}. This is most likely an error.}}
 +
      }}
 +
  }}<!--
 +
-->{{#ifeq:{{FEIS/type|{{{type|}}}}}
 +
  | error
 +
  | {{color|red|Either you did not provide a value for {{para|type}}, or the value you provided is not recognized. For a list of options, see [[Template:FEIS/doc]].}}
 +
  }}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 02:51, 11 July 2018

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

Template:Underused external link template

Usage

This template creates a reference to a species or genus profile in the Fire Effects Information System (FEIS) of the United States Forest Service (USFS). It automatically creates a link using the type of life form, genus name, species name (if needed), and subspecies or variety name (if needed): |type=, |genus=, |species=, |subspecies=, |variety=. To comply with the citation instructions given on the FEIS, please provide the date and author name.

The full list of values for |type=: amphibian, arthropod, bird, bryophyte, fern, forb, graminoid, lichens, mammal, reptile, shrub, tree, and vine. Note that lichens has to be plural; lichen generates an error.

Usually the code used to generate the URL is the first two or three letters of the genus, species, and variety or subspecies name, and in that case the template automatically generates it. But sometimes the code is unpredictable (for instance, carpes is the code for Carex pensylvanica, not carpen), and then you must add the code using the |code= parameter.

By default, Citation Style 1 is used. Switch to Citation Style 2 using |mode=cs2.

All parameters of {{citation}} that are not supplied by this template are available.

Blank template:

{{FEIS|last=|first=|date=|type=|genus=|species=|variety=|access-date=17 January 2026}}

Examples

  1. {{FEIS |last=Habeck |first=R. J. |date=1992 |type=tree |genus=Pinus |species=lambertiana }}
  2. {{FEIS |last=Anderson |first=Michelle D. |date=2003 |type=graminoid |genus=Bouteloua |species=gracilis}}
  3. {{FEIS |last=Cope |first=Amy B. |date=1993 |type=tree |genus=Pinus |species=contorta |variety=contorta}}
  4. {{FEIS |last=Stone |first=Katharine R. |date=2009 |genus=Wisteria |type=vine}}
  1. Habeck, R. J. (1992), "Pinus lambertiana", Fire Effects Information System (FEIS), U.S. Department of Agriculture (USDA), Forest Service (USFS), Rocky Mountain Research Station, Fire Sciences Laboratory – via https://www.fs.fed.us/database/feis/ Invalid |mode=CS1 (help)
  2. Anderson, Michelle D. (2003), "Bouteloua gracilis", Fire Effects Information System (FEIS), U.S. Department of Agriculture (USDA), Forest Service (USFS), Rocky Mountain Research Station, Fire Sciences Laboratory – via https://www.fs.fed.us/database/feis/ Invalid |mode=CS1 (help)
  3. Cope, Amy B. (1993), "Pinus contorta var. contorta", Fire Effects Information System (FEIS), U.S. Department of Agriculture (USDA), Forest Service (USFS), Rocky Mountain Research Station, Fire Sciences Laboratory – via https://www.fs.fed.us/database/feis/ Invalid |mode=CS1 (help)
  4. Stone, Katharine R. (2009), "Wisteria", Fire Effects Information System (FEIS), U.S. Department of Agriculture (USDA), Forest Service (USFS), Rocky Mountain Research Station, Fire Sciences Laboratory – via https://www.fs.fed.us/database/feis/ Invalid |mode=CS1 (help)

See also