Template:Incorrect biology template usage/AssertNotEmpty

From Wikimedia Commons, the free media repository
Jump to: navigation, search


Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Incorrect biology template usage/AssertNotEmpty/doc.

Usage
Called to ensure that the parameter is not empty.
If it is empty, it adds Category:Pages with incorrect biology template usage to the calling category/article/file.
Mostly called by templates to ensure that a parameter has been provided
Syntax
{{Incorrect biology template usage/AssertNotEmpty|value|sortkey=<YourSortKey>|doc=<docPage>|text=<TheErrorToDisplay> }}
Parameters
  • value
the value supposed to be not-empty.
Sample (Inside {{IUCN}}): {{{1|}}}
  • sortkey=<YourSortKey>
the sortkey under which the calling category/article/file will be placed in Category:Pages with incorrect biology template usage.
Sample (Inside {{IUCN}}): sortkey=UCN
  • text=<TheErrorToDisplay> (optional)
the error message to be displayed in red when the value is incorrect.
Sample (Inside {{IUCN}}): text=Incorrect empty RiskLevel
  • doc=<docPage> (optional)
the page to which the red error message will link
Sample (Inside {{IUCN}}): doc=Template:IUCN
Used by
See Also