Template:Internal/Warning/MissingParam: Difference between revisions
From Halopedia, the Halo wiki
m (→top: Moving page, replaced: {{Documentation → {{Doc/Template) |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{Internal/Warning|{{{1|{{{Message|This template call is missing a recommended parameter!}}}}}}|Type=Missing parameter|Category={{{Category|Pages containing | <includeonly>{{Internal/Warning|{{{1|{{{Message|This template call is missing a recommended parameter!}}}}}}|Type=Missing parameter|Category={{{Category|Pages containing deprecated template parameter warnings}}}|Template={{{Template|}}}}}</includeonly><noinclude>{{Doc/Template}} [[Category:Warning templates]]</noinclude> |
Revision as of 04:34, 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! |