Template:Incorrect biology template usage/AssertEmpty

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


Template documentationview · edit · history · purge ]


Usage
Called to ensure that the parameter is empty.
If it is not empty, 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/AssertEmpty|value|sortkey=<YourSortKey>|doc=<docPage>|text=<TheErrorToDisplay> }}
Parameters
  • value
the value supposed to be empty.
Sample (Inside {{VN}}): {{{simple|}}}
  • sortkey=<YourSortKey>
the sortkey under which the calling category/article/file will be placed in Category:Pages with incorrect biology template usage.
Sample (Inside {{VN}}): sortkey=Mple
  • text=<TheErrorToDisplay> (optional)
the error message to be displayed in red when the value is incorrect.
Sample (Inside {{VN}}): text=Please don't provide parameter 'simple' to VN
  • doc=<docPage> (optional)
the page to which the red error message will link
Sample (Inside {{VN}}): doc=Template:VN
  • 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