Difference between revisions of "Template:BONAP"
imported>Erutuon m (missed title for genus) |
imported>Erutuon m (and here) |
||
| Line 1: | Line 1: | ||
{{#switch: {{{1|}}} | cite | ref = | {{#switch: {{{1|}}} | cite | ref = | ||
| − | {{#switch: {{{2|}}} | genus = {{cite web | url = http://bonap.net/NAPA/TaxonMaps/Genus/County/{{{3|{{{genus|}}}}}} | title = {{{3|{{{genus|}}}}}} | work = county distribution map from the North American Plant Atlas (NAPA) | publisher = Biota of North America Program (BONAP) | date = 2013 |access-date={{{access-date|{{{accessdate|}}} }}} }}{{#if: {{{4|{{{species|}}}}}} | {{color|red|A specific epithet is not needed to link to genus maps.}} | }} | species = {{cite web |url=http://bonap.net/MapGallery/County/{{{3|{{{genus|}}}}}}%20{{{4|{{{species|}}}}}}.png | title = {{{3|{{{genus|}}}}}} {{{4|{{{species|}}}}}} | work = County distribution map from the North American Plant Atlas (NAPA) | publisher = Biota of North America Program (BONAP) | date = 2013 | access-date = {{{access-date|{{{accessdate|}}} }}} }}{{#if: {{{4|}}} | | {{color|red|Please provide the specific epithet to link to a species distribution map.}} }} | + | {{#switch: {{{2|}}} | genus = {{cite web | url = http://bonap.net/NAPA/TaxonMaps/Genus/County/{{{3|{{{genus|}}}}}} | title = {{{3|{{{genus|}}}}}} | work = county distribution map from the North American Plant Atlas (NAPA) | publisher = Biota of North America Program (BONAP) | date = 2013 |access-date={{{access-date|{{{accessdate|}}} }}} }}{{#if: {{{4|{{{species|}}}}}} | {{color|red|A specific epithet is not needed to link to genus maps.}} | }} | species = {{cite web |url=http://bonap.net/MapGallery/County/{{{3|{{{genus|}}}}}}%20{{{4|{{{species|}}}}}}.png | title = {{{3|{{{genus|}}}}}} {{{4|{{{species|}}}}}} | work = County distribution map from the North American Plant Atlas (NAPA) | publisher = Biota of North America Program (BONAP) | date = 2013 | access-date = {{{access-date|{{{accessdate|}}} }}} }}{{#if: {{{4|{{{species|}}}}}} | | {{color|red|Please provide the specific epithet to link to a species distribution map.}} }} |
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 06:27, 4 September 2016
Template:Underused external link template
Usage
This template links to the county-level and the state- and province-level plant distribution maps for species or genera in the Biota of North America Program's North American Plant Atlas. At the moment, it is meant to be used in footnotes, not external links sections.
The first parameter chooses between ref or link. Place the genus name in parameter |genus= if you are linking to either a genus page or a species map, and add the specific epithet in parameter |species= if you are linking to a species map. By default, links to the county-level maps. Add |state= with any non-empty value to switch to the state- and province-level maps.
By default, Citation Style 1 is used. Switch to Citation Style 2 using |mode=cs2.
- Syntax
{{BONAP}}
- Examples
{{BONAP |genus=Campanula |species=rotundifolia |date=2014 |access-date=11 January 2026}}{{BONAP |genus=Campanula |date=2014 |access-date=11 January 2026}}{{BONAP |genus=Campanula |species=rotundifolia |state=1 |date=2014 |access-date=11 January 2026}}{{BONAP |genus=Campanula |state=1 |date=2014 |access-date=11 January 2026}}
- yield
| The above documentation is transcluded from Template:BONAP/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |