Difference between revisions of "Template:FEIS"

From Eat Every Plant
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision: From PNW foraging book - part 1)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{citation
+
<includeonly>{{#invoke: template wrapper | wrap | _template = citation | _exclude = code, genus, species, subspecies, title, type, variety
| mode = {{{mode|CS1}}}
+
  | mode = {{{mode|CS1}}}
| last = {{{last|}}}
+
  | title = {{{title
| first = {{{first|}}}
+
      | {{{genus|}}} {{{species|}}} {{#if: {{{subspecies|}}} | subsp.&nbsp;}}{{#if: {{{variety|}}} | var.&nbsp;}}{{{subspecies|}}}{{{variety|}}}{{#if: {{{species|}}}||spp.}}
| date = {{{date|}}}
+
      }}}
| title = {{{genus|}}} {{{species|}}} {{#if: {{{subspecies|}}} | subsp.&nbsp;| }}{{#if: {{{variety|}}} | var.&nbsp;| }}{{{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|spp}}}}}|{{#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|}}}}}|{{#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 = US 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.feis-crs.org/feis/
| via = https://www.fs.fed.us/database/feis/
+
}}{{#if: {{{genus|{{if both | {{{title|}}} | {{{code|}}} | 1 }}}}}
| 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>
+
  | {{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>

Latest revision as of 15:19, 13 August 2018

Template documentation[create]