টেমপ্লেট:Class mask/নথি
এটি টেমপ্লেট:Class mask-এর জন্য একটি নথির উপপাতা। এখানে ব্যবহার সংক্রান্ত তথ্য, বিষয়শ্রেণী এবং অন্যান্য সামগ্রী রয়েছে যা মূল টেমপ্লেট পাতার অংশ নয়। |
This template is used by Template:WPBannerMeta to provide the default class masks for WikiProject's quality scales. It also allows the easy implementation of customised class masks for WikiProject bannersm, and is suitable for projects which require a slightly different mask to the default one, and can be used in two different ways:
- with
|QUALITY_SCALE=subpage
and placed on the /class subpage of the WikiProject's banner template. In this case, specific guidance on how the template works with the chosen parameters is displayed on this page. - with
|QUALITY_SCALE=inline
and placed directly inside the class parameter. However this method is not suitable for projects which use either of the following:- the B-class checklist;
- the taskforce hook.
Syntax
[সম্পাদনা]Typically this template should be placed on the/class subpage of a WikiProject banner template.
{{class mask|{{{class|}}} |topic= |FQS= |forceNA= |b={{{b|B}}} |category= |disambig= |portal= |redirect= |template= |project= |future= |current= |needed= |merge= }}
Parameters
[সম্পাদনা]- topic - set this parameter so that the documentation on the /class subpage links to the WikiProject's quality categories, e.g. if your quality categories are of the form Category:B-Class mathematics articles, etc. then set
|topic=mathematics
. - class - this parameter must be passed as the first unnamed parameter in all cases.
- FQS - if set to "yes", switches on the six additional classes Category, Disambig, Image, Portal, Template & Project. Individual classes may then be switched off by their respective parameters to "no".
- forceNA - if set to "yes", will automatically classify pages tagged as
|class=NA
depending on the namespace of the page. The default setting is "no". - category, disambig, portal, redirect, template, project, future, current, needed, merge - if set to "yes", enables this quality class. The default for each is "no", unless FQS is set.
- b - if the B-class checklist is used, this parameter must be passed through.
Example 1: subpage
[সম্পাদনা]The following code is placed in the banner template:
|QUALITY_SCALE = subpage |class = {{{class|}}}
and on the/class subpage (for example Template:WikiProject Zimbabwe uses the subpage Template:WikiProject Zimbabwe/class), the following code is used:
{{class mask | {{{class|}}} |topic=Zimbabwe |FQS=yes |redirect=yes }}
In this case all six of the "extended" quality classes are used, plus the additional Redirect-class. Because the |topic=
parameter is set, specific documentation will be displayed on the/class subpage.
Example 2: inline
[সম্পাদনা]The following code is placed in the banner template:
|QUALITY_SCALE = inline |class = {{class mask | {{{class|}}} | category=yes }}
Now the standard quality classes are used, plus the additional Category-class.
- Reminder: this method is not suitable is the template uses the B-class checklist or the taskforce hook.
Subpages
[সম্পাদনা]- Template:Class mask/core - the class mask itself
- Template:Class mask/extended - a version with the extended scale hard-wired, for use by Template:WPBannerMeta/class
- Template:Class mask/sandbox - the template sandbox, used for experimentation
- Template:Class mask/table - the documentation that is displayed on /class subpages
- Template:Class mask/row - used by /table
- Template:Class mask/doc - the documentation you are reading now
Uses
[সম্পাদনা]- This shows all /class subpages which use this template.