Difference between revisions of "Template:GRIN"

From blackwiki
Jump to navigation Jump to search
imported>Mellis
(Pulls url from Wikidata if not specified.)
imported>Mellis
(Creating documentation page.)
Line 6: Line 6:
 
}}<noinclude>
 
}}<noinclude>
  
== Usage ==
+
{{Documentation}}
* '''name''' - name of the plant, a title to be shown here on WP within the edited article, wiki syntax possible (required)
 
* '''id''' - from the [[URL]] of the GRIN page, must be the real ID number of the cited article on the GRIN site (required)
 
* '''accessdate''' - when was the referred page seen really (optional, prefilled here for copypaste)
 
  
=== Named parameters ===
 
<nowiki>{{GRIN | name = | id = | accessdate = </nowiki>{{#time: j F Y}}<nowiki> }}</nowiki>
 
 
<nowiki>* {{GRIN | name = ''Daucus glochidiatus'' (Labill.) Fisch. & C. A. Mey. | id = 102093 | accessdate = 3 January 2009 }}</nowiki>
 
results in:
 
* {{GRIN | name = ''Daucus glochidiatus'' (Labill.) Fisch. & C. A. Mey. | id = 102093 | accessdate = 3 January 2009 }}
 
 
=== Numbered parameters ===
 
<nowiki>{{GRIN|||</nowiki>{{#time:Y-m-j}}<nowiki>}}</nowiki>
 
 
<nowiki>* {{GRIN | ''Daucus glochidiatus'' (Labill.) Fisch. & C. A. Mey. | 102093 | 2009-01-03 }}</nowiki>
 
results in:
 
* {{GRIN | ''Daucus glochidiatus'' (Labill.) Fisch. & C. A. Mey. | 102093 | 2009-01-03 }}
 
 
{{Interwikitmp-grp
 
|commons = GRIN species
 
|species = GRIN
 
}}
 
 
[[Category:Biology external link templates]]
 
[[Category:Flora external link templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 07:23, 11 February 2016

[Expression error: Unrecognized punctuation character "[". "Expression error: Unrecognized punctuation character "["."] Check |url= value (help). Germplasm Resources Information Network (GRIN).

Template documentation[view] [edit] [history] [purge]

Template:Underused external link template

Usage

Template:Uses Wikidata

Use this template to add a reference to a species page on the web site GRIN. At the moment, it cannot link to pages on other taxonomic ranks, such as genera and families.

Template:Note: This template is designed to support WikipediaBioReferences and retrieves Wikidata. Do not edit this template unless you are familiar with these functionalities or are copying updated code from commons.

Syntax

Simple

Simply use the tag by itself or leave the id parameter blank to generate a citation/link of Wikidata's corresponding GRIN link for the current plant species. Wikidata: has GRIN links for most of the Wikipedia species on the GRIN database.

{{GRIN}}
Example
Adding {{GRIN}} to the Maize page creates (in the beginning of 2020) the following:
   "Zea mays". Germplasm Resources Information Network (GRIN). Agricultural Research Service (ARS), United States Department of Agriculture (USDA).


Advanced formatting and parameter options

{{GRIN | id | description | validity | access-date = 19 January 2026 }}

{{GRIN | name = | id = | access-date = 19 January 2026 }}

{{GRIN | access-date = 19 January 2026 }}

Parameters
  • |mode=
By default Citation Style 1; switch to Citation Style 2 with |mode=cs2.
  • |id=
the id of the species on GRIN web site.
How to retrieve the id: use the search page to retrieve the correct page.
In the url https://npgsweb.ars-grin.gov/gringlobal/taxonomydetail.aspx?3074 the id is 3074
Sample (for ananas): 3074
  • |name= (optional)
The name of the taxon
Sample (for ananas): Ananas comosus
  • |authors= (optional)
The taxon authors
Sample (for ananas): (L.) Merr.
  • |validity= (optional)
If the genus is considered as unaccepted or synonym by GRIN, add nv.
Sample (for searching example): nv
  • |access-date=19 January 2026 (optional)
Specify the date the article was accessed.

Samples

{{GRIN | name = ''Daucus glochidiatus'' (Labill.) Fisch. & C. A. Mey. | id = 102093 | access-date = 19 January 2026 }}
{{GRIN | mode = cs2 | name = ''Daucus glochidiatus'' (Labill.) Fisch. & C. A. Mey. | id = 102093 | access-date = 19 January 2026 }}
{{GRIN | ''Daucus glochidiatus'' (Labill.) Fisch. & C. A. Mey. | 102093 | access-date = 19 January 2026 }}
{{GRIN | 3074 | ''Ananas comosus'' (L.) Merr. | | | access-date = 19 January 2026 }}
{{GRIN | 3074 | ''Ananas comosus'' | | access-date = 19 January 2026 }}
{{GRIN | 3074 | ''Ananas comosus'' | nv }}
{{GRIN | 3074 }}
{{GRIN | ''Daucus glochidiatus''}}
{{GRIN}}
Results
[Expression error: Unrecognized punctuation character "[". "Expression error: Unrecognized punctuation character "["."] Check |url= value (help). Germplasm Resources Information Network (GRIN).
[Expression error: Unrecognized punctuation character "[". "Expression error: Unrecognized punctuation character "["."] Check |url= value (help). Germplasm Resources Information Network (GRIN).
[Expression error: Unrecognized punctuation character "[". "Expression error: Unrecognized punctuation character "["."] Check |url= value (help). Germplasm Resources Information Network (GRIN).
[Expression error: Unrecognized punctuation character "[". "Expression error: Unrecognized punctuation character "["."] Check |url= value (help). Germplasm Resources Information Network (GRIN).
[Expression error: Unrecognized punctuation character "[". "Expression error: Unrecognized punctuation character "["."] Check |url= value (help). Germplasm Resources Information Network (GRIN).
[Expression error: Unrecognized punctuation character "[". "Expression error: Unrecognized punctuation character "["."] Check |url= value (help). Germplasm Resources Information Network (GRIN).
[Expression error: Unrecognized punctuation character "[". "Expression error: Unrecognized punctuation character "["."] Check |url= value (help). Germplasm Resources Information Network (GRIN).
[Expression error: Unrecognized punctuation character "[". "Expression error: Unrecognized punctuation character "["."] Check |url= value (help). Germplasm Resources Information Network (GRIN).
[Expression error: Unrecognized punctuation character "[". "Expression error: Unrecognized punctuation character "["."] Check |url= value (help). Germplasm Resources Information Network (GRIN).

(The last 2 examples would have working links if added to a species article with corresponding "GRIN URL" Wikidata.)

See also