Template:Incorrect biology template usage


Template documentationview · edit · history · purge ]


Usage
Called when errors are detected in biology templates.
As a result it adds Category:Pages with incorrect biology template usage to the calling category/article/file.
Mostly called by templates to ensure that a certain part of the code is not reached (like a default in a switch).
Syntax
{{Incorrect biology template usage|sortkey=<YourSortKey>|doc=<docPage>|text=<TheErrorToDisplay>  | namespace=<namespace> }}
Parameters
  • sortkey=<YourSortKey>
the sortkey under which the calling category/article/file will be placed in Category:Pages with incorrect biology template usage.
Sample (Inside {{APWebsite}}): sortkey=Genera
  • text=<TheErrorToDisplay> (optional)
the error message to be displayed in red.
the text should not contain links (as it will be incorporated in a link)
Sample (Inside {{APWebsite}}): text=Parameter genera= has an unmanaged value '{{{genera|}}}'
  • doc=<docPage> (optional)
the page to which the red error message will link
Sample (Inside {{APWebsite}}): doc=Template:APWebsite
  • 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