Difference between revisions of "Template:IPNI/doc"
imported>Peter coxhead (updated documentation) |
imported>Peter coxhead (removed link to sandbox now it seem to work ok; case with no taxon name) |
||
| Line 8: | Line 8: | ||
===Citation for a single taxon=== | ===Citation for a single taxon=== | ||
| − | *<code><nowiki>{{IPNI | + | *<code><nowiki>{{IPNI |id=77086113-1 |taxon=Rhodanthemum atlanticum subsp. gelidum |authority=(Maire) Dobignard |accessdate=2019-07-21}}</nowiki></code> →<br>{{IPNI |id=77086113-1 |taxon=Rhodanthemum atlanticum subsp. gelidum |authority=(Maire) Dobignard |accessdate=2019-07-21}} |
The authority may be omitted: | The authority may be omitted: | ||
| − | *<code><nowiki>{{IPNI | + | *<code><nowiki>{{IPNI |id=77086113-1 |taxon=Rhodanthemum atlanticum subsp. gelidum |accessdate=2019-07-21}}</nowiki></code> →<br>{{IPNI |id=77086113-1 |taxon=Rhodanthemum atlanticum subsp. gelidum |accessdate=2019-07-21}} |
| + | If the taxon name is omitted, a dummy title will be generated for the citation, which is undesirable: | ||
| + | *<code><nowiki>{{IPNI |id=77086113-1 |accessdate=2019-07-21}}</nowiki></code> →<br>{{IPNI |id=77086113-1 |accessdate=2019-07-21}} | ||
<b>Note</b>: if the template is used on a page with a link to a Wikidata item using the same taxon name, then the ID may be omitted and will be picked up from Wikidata. This is not recommended as it depends on the setup in Wikidata, which may change; pages in the English Wikipedia are regularly linked to Wikidata items with different taxon names because of Wikidata limitations. | <b>Note</b>: if the template is used on a page with a link to a Wikidata item using the same taxon name, then the ID may be omitted and will be picked up from Wikidata. This is not recommended as it depends on the setup in Wikidata, which may change; pages in the English Wikipedia are regularly linked to Wikidata items with different taxon names because of Wikidata limitations. | ||
===Citation for an author=== | ===Citation for an author=== | ||
| − | *<code><nowiki>{{IPNI | + | *<code><nowiki>{{IPNI |id=22405-1 |author=Carl Linnaeus |accessdate=2019-07-21}}</nowiki></code> →<br>{{IPNI |id=22405-1 |author=Carl Linnaeus |accessdate=2019-07-21}} |
===Citation for an author abbreviation=== | ===Citation for an author abbreviation=== | ||
| − | *<code><nowiki>{{IPNI | + | *<code><nowiki>{{IPNI |abbrev=L.f. |accessdate=2019-07-21}}</nowiki></code> →<br>{{IPNI |abbrev=L.f. |accessdate=2019-07-21}}<!--author std%3AL.f.--> |
===Citation for a search=== | ===Citation for a search=== | ||
| Line 23: | Line 25: | ||
Search for a taxon: | Search for a taxon: | ||
| − | *<code><nowiki>{{IPNI | + | *<code><nowiki>{{IPNI |search=Rhodanthemum |accessdate=2019-07-21}}</nowiki></code> →<br>{{IPNI |search=Rhodanthemum |accessdate=2019-07-21}} |
Search for an author: | Search for an author: | ||
| − | *<code><nowiki>{{IPNI | + | *<code><nowiki>{{IPNI |search=Carl Linnaeus |accessdate=2019-07-21}}</nowiki></code> →<br>{{IPNI |search=Carl Linnaeus |accessdate=2019-07-21}} |
==See also== | ==See also== | ||
Revision as of 09:57, 21 July 2019
| File:Edit-copy green.svg | This is a documentation subpage for Template:IPNI. It contains usage information, categories and other content that is not part of the original template page. |
Contents
Usage
This template produces citations to the International Plant Names Index (IPNI). To produce a reference, enclose a use of the template in ref tags.
Citation for a single taxon
{{IPNI |id=77086113-1 |taxon=Rhodanthemum atlanticum subsp. gelidum |authority=(Maire) Dobignard |accessdate=2019-07-21}}→
"Script error: No such module "eFloras". (Maire) Dobignard". International Plant Names Index (IPNI). Royal Botanic Gardens, Kew. Retrieved 2019-07-21.
The authority may be omitted:
{{IPNI |id=77086113-1 |taxon=Rhodanthemum atlanticum subsp. gelidum |accessdate=2019-07-21}}→
"Script error: No such module "eFloras".". International Plant Names Index (IPNI). Royal Botanic Gardens, Kew. Retrieved 2019-07-21.
If the taxon name is omitted, a dummy title will be generated for the citation, which is undesirable:
{{IPNI |id=77086113-1 |accessdate=2019-07-21}}→
International Plant Names Index (IPNI). Royal Botanic Gardens, Kew https://www.ipni.org/n/77086113-1. Retrieved 2019-07-21. Missing or empty|title=(help)
Note: if the template is used on a page with a link to a Wikidata item using the same taxon name, then the ID may be omitted and will be picked up from Wikidata. This is not recommended as it depends on the setup in Wikidata, which may change; pages in the English Wikipedia are regularly linked to Wikidata items with different taxon names because of Wikidata limitations.
Citation for an author
{{IPNI |id=22405-1 |author=Carl Linnaeus |accessdate=2019-07-21}}→
"Carl Linnaeus". International Plant Names Index (IPNI). Royal Botanic Gardens, Kew. Retrieved 2019-07-21.
Citation for an author abbreviation
{{IPNI |abbrev=L.f. |accessdate=2019-07-21}}→
"Author abbreviation 'L.f.'". International Plant Names Index (IPNI). Royal Botanic Gardens, Kew. Retrieved 2019-07-21.
Citation for a search
The output may be a list of results. It is possible to search for all occurrences of a taxon name or of an author name.
Search for a taxon:
{{IPNI |search=Rhodanthemum |accessdate=2019-07-21}}→
"Search for 'Rhodanthemum'". International Plant Names Index (IPNI). Royal Botanic Gardens, Kew. Retrieved 2019-07-21.
Search for an author:
{{IPNI |search=Carl Linnaeus |accessdate=2019-07-21}}→
"Search for 'Carl Linnaeus'". International Plant Names Index (IPNI). Royal Botanic Gardens, Kew. Retrieved 2019-07-21.
See also
- Category:Articles using Template:IPNI with missing parameters: added if none of
|id=,|abbrev=or|search=was provided (and no Wikidata item was found).