Difference between revisions of "Template:IPNI/doc"

From blackwiki
Jump to navigation Jump to search
imported>Peter coxhead
(→‎Usage: copy-edit)
imported>Peter coxhead
(updated documentation)
Line 5: Line 5:
  
 
== Usage ==
 
== Usage ==
Without parameters, queries Wikidata for IPNI id for the taxon that the current article is about.
+
This template produces citations to the [[International Plant Names Index]] (IPNI). To produce a reference, enclose a use of the template in ref tags.
* {{tlc|IPNI}} or {{tlc|IPNI |accessdate{{=}}{{date}}}}
 
  
Otherwise, provide id:
+
===Citation for a single taxon===
* {{tlc|IPNI | id {{=}} <var>IPNI id</var>&#x20; | taxon {{=}} <var>taxon name</var>&#x20; | accessdate {{=}} {{date}} }}
+
*<code><nowiki>{{IPNI/sandbox |id=77086113-1 |taxon=Rhodanthemum atlanticum subsp. gelidum |authority=(Maire) Dobignard |accessdate=2019-07-21}}</nowiki></code> →<br>{{IPNI/sandbox |id=77086113-1 |taxon=Rhodanthemum atlanticum subsp. gelidum |authority=(Maire) Dobignard |accessdate=2019-07-21}}
 +
The authority may be omitted:
 +
*<code><nowiki>{{IPNI/sandbox |id=77086113-1 |taxon=Rhodanthemum atlanticum subsp. gelidum |accessdate=2019-07-21}}</nowiki></code> →<br>{{IPNI/sandbox |id=77086113-1 |taxon=Rhodanthemum atlanticum subsp. gelidum |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.
  
or a search query:
+
===Citation for an author===
 +
*<code><nowiki>{{IPNI/sandbox |id=22405-1 |author=Carl Linnaeus |accessdate=2019-07-21}}</nowiki></code> →<br>{{IPNI/sandbox |id=22405-1 |author=Carl Linnaeus |accessdate=2019-07-21}}
  
* {{tlc|IPNI | query {{=}}&#x20; | name {{=}}&#x20; | accessdate {{=}} {{date}} }}
+
===Citation for an author abbreviation===
 +
*<code><nowiki>{{IPNI/sandbox |abbrev=L.f. |accessdate=2019-07-21}}</nowiki></code> →<br>{{IPNI/sandbox |abbrev=L.f. |accessdate=2019-07-21}}<!--author std%3AL.f.-->
  
The {{para|taxon}} is automatically italicized if necessary by [[Module:eFloras]]. Any italics will be ignored if the module is able to determine the taxonomic rank. Do not place the [[taxonomic authority]] in the {{para|taxon}} parameter. That may prevent italicization. Instead, place it in the {{para|authority}} parameter:
+
===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.
  
* {{tlc|IPNI&#x20; |id{{=}}77151885-1&#x20; |taxon{{=}}Homalium glandulosum&#x20; |authority{{=}}Tagane & V.H.Nguyen&#x20; |accessdate{{=}}2016-01-19}}
+
Search for a taxon:
*: &darr;
+
*<code><nowiki>{{IPNI/sandbox |search=Rhodanthemum |accessdate=2019-07-21}}</nowiki></code> →<br>{{IPNI/sandbox |search=Rhodanthemum |accessdate=2019-07-21}}
* {{IPNI |id=77151885-1 |taxon=Homalium glandulosum |authority=Tagane & V.H.Nguyen |accessdate=2016-01-19}}
+
Search for an author:
 
+
*<code><nowiki>{{IPNI/sandbox |search=Carl Linnaeus |accessdate=2019-07-21}}</nowiki></code> →<br>{{IPNI/sandbox |search=Carl Linnaeus |accessdate=2019-07-21}}
By default, the template creates CS1 style citations, based on {{tlx|cite web}}. Set {{para|mode|CS2}} to create CS2 style citations, based on {{tlx|citation}}.
 
 
 
==Examples==
 
# {{tlc|IPNI|id{{=}}21501-1 |taxon{{=}}Sassafras |accessdate{{=}}{{date}} }}
 
# {{tlc|IPNI|id{{=}}21501-1 |accessdate{{=}}{{date}} }}
 
# {{tlc|IPNI|id{{=}}21501-1 |accessdate{{=}}{{date}} |mode{{=}}CS2}}
 
:: &darr;
 
# {{IPNI|id=21501-1|taxon=Sassafras|accessdate={{date}}}}
 
# {{IPNI|id=21501-1|accessdate={{date}}}}
 
# {{IPNI|id=21501-1 |accessdate={{date}} |mode=CS2}}
 
  
 
==See also==
 
==See also==
* [[:Category:Articles using Template:IPNI with missing parameters]]: added if neither {{para|query}} nor {{para|id}} was provided and no Wikidata item was found
+
* [[:Category:Articles using Template:IPNI with missing parameters]]: added if none of {{para|id}}, {{para|abbrev}} or {{para|search}} was provided (and no Wikidata item was found).
* {{tl|IPNI author}} For use with IPNI ''author'' IDs.
 
  
 
<includeonly>
 
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- CATEGORIES HERE, THANKS -->
 
[[Category:Botany external link templates|{{PAGENAME}}]]
 
[[Category:Botany external link templates|{{PAGENAME}}]]
 
[[Category:Biology source templates|{{PAGENAME}}]]
 
[[Category:Biology source templates|{{PAGENAME}}]]
 
[[ar:قالب:IPNI]]
 
[[fr:Modèle:IPNI]]
 
[[es:Plantilla:IPNI]]
 
[[ja:Template:IPNI]]
 
[[ko:틀:IPNI]]
 
 
</includeonly>
 
</includeonly>

Revision as of 09:48, 21 July 2019

Template:Uses Wikidata

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/sandbox |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:

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

Citation for an author abbreviation

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:

Search for an author:

See also