Template:Internal/Warning/MissingParam: Difference between revisions
From Halopedia, the Halo wiki
m (→top: Moving page, replaced: {{Documentation → {{Doc/Template) |
m (Reverted edits by Dab1001 (talk) to last revision by Superintendent) Tag: Rollback |
(One intermediate revision by the same user not shown) | |
(No difference)
|
Latest revision as of 04:35, August 23, 2022
Usage
This template is used to signal to the editor that they have failed to supply a recommended template parameter.
Simplified Version | Full Version |
---|---|
{{Internal/Warning/MissingParam | }} |
{{Internal/Warning/MissingParam |Category= |Template= | }} |
Parameters
Field Name | Field Aliases | Optional or Required? | Description | Example |
---|---|---|---|---|
1 (Unnamed field) | Message | Recommended | The message to present to the user. | Template parameter "Acronym" is recommended!
|
Catgory | - | Optional | The category to insert pages into if they contain this warning. | Pages containing invalid template parameter warnings
|
Template | - | Recommended | The name of the template in which the error has occurred. | Acronym
|
Error states
This template is guaranteed never to throw an error, but will always issue a warning - that is its purpose.
Example
Here is an example of how to use this template:
Wiki Markup | Resulting Warning |
---|---|
{{Internal/Error/MissingParam}} |
MISSING PARAMETER WARNING: This template call is missing a recommended parameter! |
{{Internal/Error/MissingParam|Template parameter "Acronym" is required!}} |
MISSING PARAMETER WARNING: Template parameter "Acronym" is required! |