Difference between revisions of "Template:GRIN"
imported>Primefac m (Protected "Template:GRIN": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefini...) |
imported>Elegie (Display species name in italics. Content may be derived from the contents of the page Template:WCSP; see that page's history for attribution information.) |
||
| Line 1: | Line 1: | ||
{{citation | {{citation | ||
| mode = {{{mode|CS1}}} | | mode = {{{mode|CS1}}} | ||
| − | | title = {{#ifexpr: {{str len|{{{name|{{{1|}}}}}}}}>({{str number |{{{name|{{{1}}}}}}}}+3)|{{{title|{{{1|{{{name}}}}}}}}}|{{{2|{{trim|{{#if: {{#Property:P225}}|{{#Property:P225}}|{{PAGENAME}}}}}}}}}}} {{trim|{{#ifeq:{{{3|}}}|nv|''' Synonym'''}}}} | + | | title = {{#ifexpr: {{str len|{{{name|{{{1|}}}}}}}}>({{str number |{{{name|{{{1}}}}}}}}+3)|{{{title|{{{1|{{{name}}}}}}}}}|{{{2|{{trim|{{#if: {{#Property:P225}}|''{{#Property:P225}}''|''{{PAGENAME}}''}}}}}}}}} {{trim|{{#ifeq:{{{3|}}}|nv|''' Synonym'''}}}} |
| work = [[Germplasm Resources Information Network]] (GRIN) | | work = [[Germplasm Resources Information Network]] (GRIN) | ||
| url = {{If empty|{{#ifexpr: {{str number |{{{2|}}}}}>0|{{#if:{{{id|{{{2|}}}}}}|https://npgsweb.ars-grin.gov/gringlobal/taxonomydetail.aspx?{{trim|{{{code|{{{id|{{{2|}}}}}}}}}}}}}}}|{{#if: {{{id|}}}|https://npgsweb.ars-grin.gov/gringlobal/taxonomydetail.aspx?{{{id|}}}}}|{{#ifexpr: {{str number |{{{1|}}}}}>0|https://npgsweb.ars-grin.gov/gringlobal/taxonomydetail.aspx?{{trim|{{{id|{{{1|}}}}}}}}}}|{{#ifexpr: {{str number |{{{2|}}}>0|https://npgsweb.ars-grin.gov/gringlobal/taxonomydetail.aspx?{{trim|{{{{{{id|{{{code|{{{2|}}}}}}}}}}}}}}}}}}|{{#property:P1421|}}}} | | url = {{If empty|{{#ifexpr: {{str number |{{{2|}}}}}>0|{{#if:{{{id|{{{2|}}}}}}|https://npgsweb.ars-grin.gov/gringlobal/taxonomydetail.aspx?{{trim|{{{code|{{{id|{{{2|}}}}}}}}}}}}}}}|{{#if: {{{id|}}}|https://npgsweb.ars-grin.gov/gringlobal/taxonomydetail.aspx?{{{id|}}}}}|{{#ifexpr: {{str number |{{{1|}}}}}>0|https://npgsweb.ars-grin.gov/gringlobal/taxonomydetail.aspx?{{trim|{{{id|{{{1|}}}}}}}}}}|{{#ifexpr: {{str number |{{{2|}}}>0|https://npgsweb.ars-grin.gov/gringlobal/taxonomydetail.aspx?{{trim|{{{{{{id|{{{code|{{{2|}}}}}}}}}}}}}}}}}}|{{#property:P1421|}}}} | ||
Revision as of 07:03, 16 January 2018
[Script error: No such module "If empty". "Expression error: Unrecognized punctuation character "["."] Check |url= value (help), Germplasm Resources Information Network (GRIN), Agricultural Research Service (ARS), United States Department of Agriculture (USDA) Invalid |mode=CS1 (help)
Template:Underused external link template
Contents
Usage
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 = 11 January 2026 }}
{{GRIN | name = | id = | access-date = 11 January 2026 }}
{{GRIN | access-date = 11 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 urlhttps://npgsweb.ars-grin.gov/gringlobal/taxonomydetail.aspx?3074the 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=11 January 2026(optional)
- Specify the date the article was accessed.
Samples
{{GRIN | name = ''Daucus glochidiatus'' (Labill.) Fisch. & C. A. Mey. | id = 102093 | access-date = 11 January 2026 }}{{GRIN | mode = cs2 | name = ''Daucus glochidiatus'' (Labill.) Fisch. & C. A. Mey. | id = 102093 | access-date = 11 January 2026 }}{{GRIN | ''Daucus glochidiatus'' (Labill.) Fisch. & C. A. Mey. | 102093 | access-date = 11 January 2026 }}{{GRIN | 3074 | ''Ananas comosus'' (L.) Merr. | | | access-date = 11 January 2026 }}{{GRIN | 3074 | ''Ananas comosus'' | | access-date = 11 January 2026 }}{{GRIN | 3074 | ''Ananas comosus'' | nv }}{{GRIN | 3074 }}{{GRIN | ''Daucus glochidiatus''}}{{GRIN}}- Results
- [Script error: No such module "If empty". "Expression error: Unrecognized punctuation character "["."] Check
|url=value (help), Germplasm Resources Information Network (GRIN), Agricultural Research Service (ARS), United States Department of Agriculture (USDA), retrieved 11 January 2026 Invalid|mode=CS1(help) - [Script error: No such module "If empty". "Expression error: Unrecognized punctuation character "["."] Check
|url=value (help), Germplasm Resources Information Network (GRIN), Agricultural Research Service (ARS), United States Department of Agriculture (USDA), retrieved 11 January 2026 - [Script error: No such module "If empty". "Expression error: Unrecognized punctuation character "["."] Check
|url=value (help), Germplasm Resources Information Network (GRIN), Agricultural Research Service (ARS), United States Department of Agriculture (USDA), retrieved 11 January 2026 Invalid|mode=CS1(help) - [Script error: No such module "If empty". "Expression error: Unrecognized punctuation character "["."] Check
|url=value (help), Germplasm Resources Information Network (GRIN), Agricultural Research Service (ARS), United States Department of Agriculture (USDA), retrieved 11 January 2026 Invalid|mode=CS1(help) - [Script error: No such module "If empty". "Expression error: Unrecognized punctuation character "["."] Check
|url=value (help), Germplasm Resources Information Network (GRIN), Agricultural Research Service (ARS), United States Department of Agriculture (USDA), retrieved 11 January 2026 Invalid|mode=CS1(help) - [Script error: No such module "If empty". "Expression error: Unrecognized punctuation character "[". Synonym"] Check
|url=value (help), Germplasm Resources Information Network (GRIN), Agricultural Research Service (ARS), United States Department of Agriculture (USDA) Invalid|mode=CS1(help) - [Script error: No such module "If empty". "Expression error: Unrecognized punctuation character "["."] Check
|url=value (help), Germplasm Resources Information Network (GRIN), Agricultural Research Service (ARS), United States Department of Agriculture (USDA) Invalid|mode=CS1(help) - [Script error: No such module "If empty". "Expression error: Unrecognized punctuation character "["."] Check
|url=value (help), Germplasm Resources Information Network (GRIN), Agricultural Research Service (ARS), United States Department of Agriculture (USDA) Invalid|mode=CS1(help) - [Script error: No such module "If empty". "Expression error: Unrecognized punctuation character "["."] Check
|url=value (help), Germplasm Resources Information Network (GRIN), Agricultural Research Service (ARS), United States Department of Agriculture (USDA) Invalid|mode=CS1(help)
(The last 2 examples would have working links if added to a species article with corresponding "GRIN URL" Wikidata.)
See also
- fr:Modèle:GRIN espèce - Inspiration for this template.
- The other templates of Category:Biology external link templates
| The above documentation is transcluded from Template:GRIN/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |