Difference between revisions of "Template:BONAP"

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 2: Line 2:
 
  -->{{#if: {{{species|}}}
 
  -->{{#if: {{{species|}}}
 
           | {{#switch: {{{1|}}}
 
           | {{#switch: {{{1|}}}
                 | ref = {{citation
+
                 | | ref = {{citation
 
                         | mode = {{{mode|CS1}}}
 
                         | mode = {{{mode|CS1}}}
                         | url = http://bonap.net/MapGallery/County/{{{genus|}}}%20{{{species|}}}.png
+
                         | url = http://bonap.net/MapGallery/{{#if:{{{state|}}}|State|County}}/{{urlencode:{{{genus|}}} {{{species|}}}|PATH}}.png
 
                         | title = ''{{{genus|}}} {{{species|}}}''
 
                         | title = ''{{{genus|}}} {{{species|}}}''
                         | work = County-level distribution map from the North American Plant Atlas (NAPA)
+
                         | work = {{#if:{{{state|}}}|State|County}}-level distribution map from the North American Plant Atlas (NAPA)
 
                         | publisher = Biota of North America Program (BONAP)
 
                         | publisher = Biota of North America Program (BONAP)
                         | date = 2013
+
                         | date = {{{date|2014}}}
 
                         | access-date = {{{access-date|{{{accessdate|}}} }}}
 
                         | access-date = {{{access-date|{{{accessdate|}}} }}}
 
                         }}
 
                         }}
                 | link = [http://bonap.net/MapGallery/County/{{{genus|}}}%20{{{species|}}}.png County-level map from the Biota of North America Program (BONAP): {{{genus|}}} {{{species|}}}]
+
                 | link = [http://bonap.net/MapGallery/{{#if:{{{state|}}}|State|County}}/{{urlencode:{{{genus|}}} {{{species|}}}|PATH}}.png County-level map from the Biota of North America Program (BONAP): {{{genus|}}} {{{species|}}}]
 
                 | {{color|red|Please place either link or ref as the first parameter of {{tl|BONAP}}.}}
 
                 | {{color|red|Please place either link or ref as the first parameter of {{tl|BONAP}}.}}
 
             }}
 
             }}
 
           | {{#switch: {{{1|}}}
 
           | {{#switch: {{{1|}}}
                 | ref = {{citation
+
                 | | ref = {{citation
 
                         | mode = {{{mode|CS1}}}
 
                         | mode = {{{mode|CS1}}}
                         | url = http://bonap.net/NAPA/TaxonMaps/Genus/County/{{{genus|}}}
+
                         | url = http://bonap.net/NAPA/TaxonMaps/Genus/{{#if:{{{state|}}}|State|County}}/{{{genus|}}}
 
                         | title = ''{{{genus|}}}''
 
                         | title = ''{{{genus|}}}''
                         | work = County-level distribution maps from the North American Plant Atlas (NAPA)
+
                         | work = {{#if:{{{state|}}}|State|County}}-level distribution maps from the North American Plant Atlas (NAPA)
 
                         | publisher = Biota of North America Program (BONAP)
 
                         | publisher = Biota of North America Program (BONAP)
                         | date = 2013
+
                         | date = {{{date|2014}}}
 
                         | access-date = {{{access-date|{{{accessdate|}}} }}}
 
                         | access-date = {{{access-date|{{{accessdate|}}} }}}
 
                         }}
 
                         }}
                 | link = [http://bonap.net/NAPA/TaxonMaps/Genus/County/{{{genus|}}} County-level maps from the Biota of North America Program (BONAP): {{{genus|}}}]
+
                 | link = [http://bonap.net/NAPA/TaxonMaps/Genus/{{#if:{{{state|}}}|State|County}}/{{{genus|}}} {{#if:{{{state|}}}|State|County}}-level maps from the Biota of North America Program (BONAP): {{{genus|}}}]
 
                 | {{color|red|Please place either link or ref as the first parameter of {{tl|BONAP}}.}}
 
                 | {{color|red|Please place either link or ref as the first parameter of {{tl|BONAP}}.}}
 
             }}
 
             }}

Latest revision as of 15:19, 13 August 2018

Template documentation[create]