تغييرات

The UESPWiki – Your source for The Elder Scrolls since 1995
اذهب إلى: تصفح، ابحث

قالب:Parameter Check/Doc

تم إضافة ٢٬٨٧٣ بايت, ٢٣:٥٤، ١٠ ديسمبر ٢٠١٦
ط
Parameters: Fix name
<includeonly>{{TemProtect}}</includeonly>
== Summary ==
This template is intended to be used solely as a sub-template for other templates like {{tl|Creature Summary}}, {{tl|NPC Summary}}, {{tl|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 ==
{{Parameters
|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.
|ratiomin|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).
|ratiomax|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., <code><nowiki>"image={{{customimage|}}}</nowiki></code>).|
|ns_base|optional|As per [[Project:MetaTemplate|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.
* If set to "none", all further image and imgdesc checks will be skipped.
* If not present, a {{tl|NeedsImage}} warning will be displayed.
* If not the right size, the page will be added to <nowiki>[[</nowiki>Category:''types'' with non-square images]] or <nowiki>[[</nowiki>Category:''types'' with non-4:3 images]].
* If not the right name, the page will be added to <nowiki>[[</nowiki>Category:''types'' with incorrectly-named Images]].
|imgdesc|optional|The image description.
* If not present, the page will be added to <nowiki>[[</nowiki>Category:''types'' Needing Image Descriptions]].
|description|optional|The description of the NPC, Quest, etc.
* If not present, the page will be added to <nowiki>[[</nowiki>Category:''types'' Needing Descriptions]].
}}

<includeonly>[[Category:Metatemplates]]</includeonly><noinclude>[[Category:Template Documentation]]</noinclude>
٤٩٬٤٤٥
٤٩٬٤٤٥ تعديلا

قائمة التصفح