Template:Incorrect biology template usage/AssertNotEmpty
Jump to navigation
Jump to search
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
- 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