Jump to content

Template:PLANTS/testcases

From Wikipedia, the free encyclopedia

Basic

[edit]
Set nothing
{{PLANTS}}

{{PLANTS}}

NRCS. "Plants Database". United States Department of Agriculture (USDA).

{{PLANTS/sandbox}}

NRCS (USDA). "Plants Database". United States Department of Agriculture (USDA).

Basic access date cases
{{PLANTS|access-date=11 November 2014 |symbol=VAMA |taxon=Vaccinium macrocarpon}}

{{PLANTS}}

NRCS. "Vaccinium macrocarpon". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 11 November 2014.

{{PLANTS/sandbox}}

NRCS (USDA). "Vaccinium macrocarpon". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 11 November 2014.

{{PLANTS|access-date=December 11, 2015 |id=TOCA |taxon=Torreya californica}}

{{PLANTS}}

NRCS. "Torreya californica". PLANTS Database. United States Department of Agriculture (USDA). Retrieved December 11, 2015.

{{PLANTS/sandbox}}

NRCS (USDA). "Torreya californica". PLANTS Database. United States Department of Agriculture (USDA). Retrieved December 11, 2015.

{{PLANTS|accessdate=24 November 2015 |id=SPTR |taxon=Sparaxis tricolor}}

{{PLANTS}}

NRCS. "Sparaxis tricolor". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 24 November 2015.

{{PLANTS/sandbox}}

NRCS (USDA). "Sparaxis tricolor". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 24 November 2015.

{{PLANTS|access-date=6 July 2015 |id=MEOF2 |taxon=Melissa officinalis}}

{{PLANTS}}

NRCS. "Melissa officinalis". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 6 July 2015.

{{PLANTS/sandbox}}

NRCS (USDA). "Melissa officinalis". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 6 July 2015.

Date and access date

[edit]
Date and access date
{{PLANTS|access-date=6 July 2015 |date=2014 |id=SYON2 |taxon=Symphyotrichum ontarionis}}

{{PLANTS}}

NRCS (2014). "Symphyotrichum ontarionis". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 6 July 2015.

{{PLANTS/sandbox}}

NRCS (USDA) (2014). "Symphyotrichum ontarionis". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 6 July 2015.

Date but no access date
{{PLANTS|date=2016 |id=SYAN3 |taxon=Symphyotrichum anticostense}}
No dates
{{PLANTS|id=SYCA3 |taxon=Symphyotrichum campestre}}
String of the same date with multiple calls in same article
{{PLANTS|access-date=6 July 2015 |date=2015a |id=SYON2 |taxon=Symphyotrichum ontarionis}}

{{PLANTS}}

NRCS (2015a). "Symphyotrichum ontarionis". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 6 July 2015.

{{PLANTS/sandbox}}

NRCS (USDA) (2015a). "Symphyotrichum ontarionis". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 6 July 2015.

{{PLANTS|access-date=6 July 2015 |date=2015b |id=SYAN3 |taxon=Symphyotrichum anticostense}}

{{PLANTS}}

NRCS (2015b). "Symphyotrichum anticostense". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 6 July 2015.

{{PLANTS/sandbox}}

NRCS (USDA) (2015b). "Symphyotrichum anticostense". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 6 July 2015.

{{PLANTS|access-date=6 July 2015 |date=2015c |id=SYCA3 |taxon=Symphyotrichum campestre}}

{{PLANTS}}

NRCS (2015c). "Symphyotrichum campestre". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 6 July 2015.

{{PLANTS/sandbox}}

NRCS (USDA) (2015c). "Symphyotrichum campestre". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 6 July 2015.

Test shortened footnotes

Test[1][2][3]

References for above

Some examples in place in articles

[edit]
{{PLANTS|access-date=11 November 2014 |symbol=VAMA |taxon=Vaccinium macrocarpon}}

{{PLANTS}}

NRCS. "Vaccinium macrocarpon". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 11 November 2014.

{{PLANTS/sandbox}}

NRCS (USDA). "Vaccinium macrocarpon". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 11 November 2014.

{{PLANTS|access-date=2018-11-07 |id=PSME |taxon=Pseudotsuga menziesii}}

{{PLANTS}}

NRCS. "Pseudotsuga menziesii". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 2018-11-07.

{{PLANTS/sandbox}}

NRCS (USDA). "Pseudotsuga menziesii". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 2018-11-07.

{{PLANTS|access-date=2018-11-07 |id=PIRE |taxon=Pinus resinosa}}

{{PLANTS}}

NRCS. "Pinus resinosa". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 2018-11-07.

{{PLANTS/sandbox}}

NRCS (USDA). "Pinus resinosa". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 2018-11-07.

{{PLANTS|symbol=PHME13 |taxon=Photinia melanocarpa}}
{{PLANTS|symbol=PHFL9 |taxon=Photinia floribunda}}
{{PLANTS|symbol=PRVIM |taxon=Prunus virginiana var. melanocarpa}}
{{PLANTS|accessdate=4 December 2015 |id=STNU4 |taxon=Strychnos nux-vomica}}

{{PLANTS}}

NRCS. "Strychnos nux-vomica". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 4 December 2015.

{{PLANTS/sandbox}}

NRCS (USDA). "Strychnos nux-vomica". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 4 December 2015.

{{PLANTS|accessdate=14 October 2015 |id=PRSC |taxon=Pritchardia schattaueri}}

{{PLANTS}}

NRCS. "Pritchardia schattaueri". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 14 October 2015.

{{PLANTS/sandbox}}

NRCS (USDA). "Pritchardia schattaueri". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 14 October 2015.

{{PLANTS|accessdate=31 Jul 2016 |symbol=CLTE3 |taxon=Clitoria ternatea}}

{{PLANTS}}

NRCS. "Clitoria ternatea". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 31 Jul 2016.

{{PLANTS/sandbox}}

NRCS (USDA). "Clitoria ternatea". PLANTS Database. United States Department of Agriculture (USDA). Retrieved 31 Jul 2016.

Let's check for expected (or not) errors in the sandbox

[edit]
Invalid id, no taxon/name/title - error = no ; behavior - title = id and url is built properly
Invalid symbol, no taxon/name/title - error = no ; behavior - title = symbol and url is built properly
Set id only - error = no; behavior - title is id
Set taxon and title - error = no; behavior - title overrides taxon
{{PLANTS|id=SYCOR |taxon=Symphyotrichum cordifolium |title=TITLE}}
Set taxon and name - error = no; behavior - name overrides taxon
{{PLANTS|id=SYCOR |name=NAME |taxon=Symphyotrichum cordifolium}}
Set name and taxon and title - error = no; behavior - title overrides name and taxon
{{PLANTS|id=SYCOR |name=NAME |taxon=Symphyotrichum cordifolium |title=TITLE}}
Set website - error = no
{{PLANTS|id=SYCOR |taxon=Symphyotrichum cordifolium |website=plants.gov}}
Set work - error = yes
{{PLANTS|id=SYCOR |taxon=Symphyotrichum cordifolium |work=plants.gov}}

{{PLANTS}}

NRCS. "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA). {{cite web}}: More than one of |work= and |website= specified (help)

{{PLANTS/sandbox}}

NRCS (USDA). "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA). {{cite web}}: More than one of |work= and |website= specified (help)

Set author - error = yes
{{PLANTS|author=AUTHORTEST |id=SYCOR |taxon=Symphyotrichum cordifolium}}

{{PLANTS}}

NRCS. "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA). {{cite web}}: More than one of |author= and |last1= specified (help)

{{PLANTS/sandbox}}

NRCS (USDA). "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA). {{cite web}}: More than one of |author= and |last1= specified (help)

Set author1 - error = yes
{{PLANTS|author1=AUTHOR1TEST |id=SYCOR |taxon=Symphyotrichum cordifolium}}

{{PLANTS}}

NRCS. "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA). {{cite web}}: More than one of |author1= and |last1= specified (help)

{{PLANTS/sandbox}}

NRCS (USDA). "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA). {{cite web}}: More than one of |author1= and |last1= specified (help)

Set author2 - error = no
{{PLANTS|author2=AUTHOR2TEST |id=SYCOR |taxon=Symphyotrichum cordifolium}}

{{PLANTS}}

NRCS; AUTHOR2TEST. "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA).{{cite web}}: CS1 maint: numeric names: authors list (link)

{{PLANTS/sandbox}}

NRCS (USDA); AUTHOR2TEST. "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA).{{cite web}}: CS1 maint: numeric names: authors list (link)

Set last - error = yes
{{PLANTS|id=SYCOR |last=LASTTEST |taxon=Symphyotrichum cordifolium}}

{{PLANTS}}

LASTTEST. "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA). {{cite web}}: More than one of |last1= and |last= specified (help)

{{PLANTS/sandbox}}

LASTTEST. "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA). {{cite web}}: More than one of |last1= and |last= specified (help)

Set last1 - error = no
{{PLANTS|id=SYCOR |last1=LAST1TEST |taxon=Symphyotrichum cordifolium}}

{{PLANTS}}

LAST1TEST. "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA).{{cite web}}: CS1 maint: numeric names: authors list (link)

{{PLANTS/sandbox}}

LAST1TEST. "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA).{{cite web}}: CS1 maint: numeric names: authors list (link)

Set last2 - error = no
{{PLANTS|id=SYCOR |last2=LAST2TEST |taxon=Symphyotrichum cordifolium}}

{{PLANTS}}

NRCS; LAST2TEST. "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA).{{cite web}}: CS1 maint: numeric names: authors list (link)

{{PLANTS/sandbox}}

NRCS (USDA); LAST2TEST. "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA).{{cite web}}: CS1 maint: numeric names: authors list (link)

Set author-link1 - error = no
{{PLANTS|author-link1=AUTHORLINK1 |id=SYCOR |taxon=Symphyotrichum cordifolium}}
Set author-link - error = yes
{{PLANTS|author-link=AUTHORLINK |id=SYCOR |taxon=Symphyotrichum cordifolium}}

{{PLANTS}}

NRCS. "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA). {{cite web}}: More than one of |author-link1= and |author-link= specified (help)

{{PLANTS/sandbox}}

NRCS (USDA). "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA). {{cite web}}: More than one of |author-link1= and |author-link= specified (help)