Template:Incorrect biology template usage/AssertIsNumber/doc

Usage
Called to ensure that the parameter is non empty and is a number.
If it is not , it adds Category:Pages with incorrect biology template usage to the calling category/article/file.
Mostly called by templates to ensure that a deprecated or badly named parameter has not been provided.
Syntax
{{Incorrect biology template usage/AssertIsNumber|value|sortkey=<YourSortKey>|doc=<docPage>|text=<TheErrorToDisplay> }}
Parameters
  • value
the value supposed to be a number.
Sample (Inside {{IUCN}}): {{{2|}}}
  • 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 non numerical id '{{{2|}}}'
  • doc=<docPage> (optional)
the page to which the red error message will link
Sample (Inside {{IUCN}}): doc=Template:IUCN
  • namespace=<namespaceIndex> (optional)
the namespace index (-2 to 15, see possible values) for which this template will add the category (Default: 0 for articles + 14 for categories + 6 for files).
(Except if you did not provide sortkey, in which case an error is displayed in template namespace only)
Used by
See Also