Template:PLANTS/testcases
This is the template test cases page for the sandbox of Template:PLANTS. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Basic
[edit]- Set nothing
- Basic access date cases
{{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}}
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}}
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}}
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}}
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}}
NRCS (2016). "Symphyotrichum anticostense". PLANTS Database. United States Department of Agriculture (USDA).
{{PLANTS/sandbox}}
NRCS (USDA) (2016). "Symphyotrichum anticostense". PLANTS Database. United States Department of Agriculture (USDA).
- No dates
{{PLANTS}}
NRCS. "Symphyotrichum campestre". PLANTS Database. United States Department of Agriculture (USDA).
{{PLANTS/sandbox}}
NRCS (USDA). "Symphyotrichum campestre". PLANTS Database. United States Department of Agriculture (USDA).
- String of the same date with multiple calls in same article
{{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}}
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}}
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
- References for above
Some examples in place in articles
[edit]{{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}}
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}}
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}}
NRCS. "Photinia melanocarpa". PLANTS Database. United States Department of Agriculture (USDA).
{{PLANTS/sandbox}}
NRCS (USDA). "Photinia melanocarpa". PLANTS Database. United States Department of Agriculture (USDA).
{{PLANTS}}
NRCS. "Photinia floribunda". PLANTS Database. United States Department of Agriculture (USDA).
{{PLANTS/sandbox}}
NRCS (USDA). "Photinia floribunda". PLANTS Database. United States Department of Agriculture (USDA).
{{PLANTS}}
NRCS. "Prunus virginiana var. melanocarpa". PLANTS Database. United States Department of Agriculture (USDA).
{{PLANTS/sandbox}}
NRCS (USDA). "Prunus virginiana var. melanocarpa". PLANTS Database. United States Department of Agriculture (USDA).
{{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}}
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}}
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}}
NRCS. "TITLE". PLANTS Database. United States Department of Agriculture (USDA).
{{PLANTS/sandbox}}
NRCS (USDA). "TITLE". PLANTS Database. United States Department of Agriculture (USDA).
- Set taxon and name - error = no; behavior - name overrides taxon
{{PLANTS}}
NRCS. "NAME". PLANTS Database. United States Department of Agriculture (USDA).
{{PLANTS/sandbox}}
NRCS (USDA). "NAME". PLANTS Database. United States Department of Agriculture (USDA).
- Set name and taxon and title - error = no; behavior - title overrides name and taxon
{{PLANTS}}
NRCS. "TITLE". PLANTS Database. United States Department of Agriculture (USDA).
{{PLANTS/sandbox}}
NRCS (USDA). "TITLE". PLANTS Database. United States Department of Agriculture (USDA).
- Set website - error = no
{{PLANTS}}
NRCS. "Symphyotrichum cordifolium". plants.gov. United States Department of Agriculture (USDA).
{{PLANTS/sandbox}}
NRCS (USDA). "Symphyotrichum cordifolium". plants.gov. United States Department of Agriculture (USDA).
- Set work - error = yes
{{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}}
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}}
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}}
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}}
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}}
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}}
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}}
NRCS. "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA).
{{PLANTS/sandbox}}
NRCS (USDA). "Symphyotrichum cordifolium". PLANTS Database. United States Department of Agriculture (USDA).
- Set author-link - error = yes
{{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)