Template:Parameter Check
Due to the sensitive nature of this template or the fact that it is used on a large number of pages, it has been semi-protected to prevent site-wide damage by vandal bots. Editors: In order to minimize the impact on our servers, please use sandboxes to make and test changes to widely used templates before deployment. For more information, please see this article's talk page. |
Summary
This template is intended to be used solely as a sub-template for other templates like {{Creature Summary}}, {{NPC Summary}}, {{Quest Header}} and the like. It will check any relevant parameters in a uniform manner to avoid repeating large code blocks and having to change them in multiple places every time site policy is changed. Currently, it is focused mostly on image parameters, though the description is also checked, and other parameters can be added as needed.
Parameters
Parameter | Scope | Description |
---|---|---|
type | required | What it is that we're checking ("NPC", "Quest", etc.). This is the text used in category names. |
types | optional | Plural of the above if it requires more than adding an "s" at the end. |
ratio | optional | The desired ratio of the image ("4:3" and "square"/"1:1" are currently the only options). Defaults to square for NPCs and creatures, 4:3 for all others. |
minratio | optional | If a non-standard ratio is desired, specify the minimum allowable width:height ratio here as a decimal (e.g., 4:3 defaults to 1.3). |
maxratio | optional | If a non-standard ratio is desired, specify the maximum allowable width:height ratio here as a decimal (e.g., 4:3 defaults to 1.35). |
needsimage | optional | Whether or not to display a "Needs Image" message if an image is not present. Defaults to doing so, pass an empty value to stop it from displaying the error. |
Inherited parameters | ||
The following parameters are all inherited from the parent template where possible. In the event of naming discrepancies, you will have to pass them into the template (e.g., "image={{{customimage|}}} ). |
||
ns_base | optional | As per MetaTemplate documentation, the namespace the template will act as though it's in if not the actual namespace. (Note: checking has been disabled in non-gamespaces, even if ns_base is specified explicitly. Used only during name checks.) |
image | optional | The image to check.
|
imgdesc | optional | The image description.
|
description | optional | The description of the NPC, Quest, etc.
|