Difference between revisions of "Template:BONAP"
imported>Erutuon (allow Citation Style 2) |
imported>MusikBot II m (Protected "Template:BONAP": High-risk template or module (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite))) |
||
| (10 intermediate revisions by 2 users not shown) | |||
| Line 2: | Line 2: | ||
-->{{#if: {{{species|}}} | -->{{#if: {{{species|}}} | ||
| {{#switch: {{{1|}}} | | {{#switch: {{{1|}}} | ||
| − | | ref = {{citation | + | | | ref = {{citation |
| − | | mode = {{{mode| | + | | mode = {{{mode|cs1}}} |
| − | | url = http://bonap.net/MapGallery/County/{{{genus|}}} | + | | url = http://bonap.net/MapGallery/{{#if:{{{state|}}}|State|County}}/{{urlencode:{{{genus|}}} {{{species|}}}|PATH}}.png |
| − | | title = {{{genus|}}} {{{species|}}} | + | | title = ''{{{genus|}}} {{{species|}}}'' |
| − | | work = County 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 = | + | | date = {{{date|2014}}} |
| access-date = {{{access-date|{{{accessdate|}}} }}} | | access-date = {{{access-date|{{{accessdate|}}} }}} | ||
}} | }} | ||
| − | | link = [http://bonap.net/MapGallery/County/{{{genus|}}} | + | | 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.}} | + | | {{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| | + | | 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 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 = | + | | date = {{{date|2014}}} |
| access-date = {{{access-date|{{{accessdate|}}} }}} | | access-date = {{{access-date|{{{accessdate|}}} }}} | ||
}} | }} | ||
| − | | link = [http://bonap.net/NAPA/TaxonMaps/Genus/County/{{{genus|}}} {{{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.}} | + | | {{color|red|Please place either link or ref as the first parameter of {{tl|BONAP}}.}} |
}} | }} | ||
Latest revision as of 17:59, 24 November 2019
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=1 January 2026}}{{BONAP |genus=Campanula |date=2014 |access-date=1 January 2026}}{{BONAP |genus=Campanula |species=rotundifolia |state=1 |date=2014 |access-date=1 January 2026}}{{BONAP |genus=Campanula |state=1 |date=2014 |access-date=1 January 2026}}
- yield
- "Campanula rotundifolia". County-level distribution map from the North American Plant Atlas (NAPA). Biota of North America Program (BONAP). 2014. Retrieved 1 January 2026.
- "Campanula". County-level distribution maps from the North American Plant Atlas (NAPA). Biota of North America Program (BONAP). 2014. Retrieved 1 January 2026.
- "Campanula rotundifolia". State-level distribution map from the North American Plant Atlas (NAPA). Biota of North America Program (BONAP). 2014. Retrieved 1 January 2026.
- "Campanula". State-level distribution maps from the North American Plant Atlas (NAPA). Biota of North America Program (BONAP). 2014. Retrieved 1 January 2026.
| 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. |