ढाँचा:Class mask/कागजात

विकिपिडिया, एक स्वतन्त्र विश्वकोशबाट

This template is designed for use in WikiProject banners, and provides an easy way to construct a bespoke class mask. The class parameter must be passed to the template as the first unnamed parameter.

Implementation in Template:WPBannerMeta[सम्पादन गर्नुहोस्]

The template provides the default class masks for WikiProject's quality scales, and is also used by the majority of projects which use a custom class mask. It can be used in two different ways, either

  • the subpage method, with WPBannerMeta set to |QUALITY_SCALE=subpage in the WikiProject's banner template and {{Class mask}} called from its /class subpage. In this case, specific guidance on how the template works with the chosen parameters is displayed on this page.

or

  • the inline method, where WPBannerMeta is configured with |QUALITY_SCALE=inline and {{Class mask}} is called directly as the value of its |class= parameter.

Subpage method[सम्पादन गर्नुहोस्]

When used on a /class subpage (with |QUALITY_SCALE=subpage supplied to WPBannerMeta on the root banner template page), the template should be called in the following way:

{{Class mask<noinclude>/templatepage</noinclude>|1={{{class|}}}
 |topic=
 |all other optional parameters desired, one per line…
}}

The <noinclude>...</noinclude> tags allow the documentation from {{Class mask/templatepage}} to be displayed directly on the banner template's /class subpage, where it can provide useful information and category prompts for WikiProject admins and other interested users without any adverse effects to the banner template.

  • the |topic= parameter defines the main naming scheme of the assessment categories used by the project (i.e. the part of its assessment category names that comes after Category:Whatever-Class and before articles) and is used to check the existence of the categories that are required. For example, if your project uses categories such as Category:B-Class mathematics articles, etc., then set |topic=mathematics.
    • if the template uses task forces, the parameters |topic1=, |topic2=, |topic3=, |topic4=, |topic5= and |topic6= can be used to check for the corresponding categories needed by each.

Neither of the above are required for the inline method below.

Inline method[सम्पादन गर्नुहोस्]

When used "inline" (e.g. with |QUALITY_SCALE=inline), the call to /templatepage insides the <noinclude>...</noinclude> tags and the |topic= parameter(s) are not used, and the template should be called in the following way:

{{Class mask |1={{{class|}}} |optional parameters}}

Bear in mind that if the banner uses any hooks (e.g. the taskforce hook), you will need to insert the call to {{Class mask}} with the appropriate options each time is supposed to be used as the value of a parameter. Therefore, the subpage method may be more expedient in these cases.

Optional parameters[सम्पादन गर्नुहोस्]

  • If one or more of these nine is set to no, the class will be switched off. Their default is yes:
  • |FQS= – if set to yes, these seven additional assessment classes are activated (FQS stands for Full Quality Scale). Undesired classes may then be switched off individually by setting them to no. When |FQS= is absent, setting one or more to yes will switch on only that class.
  • If either of these is set to yes, that class will be switched on. The default is no, regardless of the |FQS= setting:
  • |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.
  • |b1=, |b2=, |b3=, |b4=, |b5=, |b6= - if the B-class checklist is used, these parameters must be passed through.

The lowercase parameter syntax[सम्पादन गर्नुहोस्]

Add a class in lowercase as the name of a parameter followed by the value "yes". For example, |future=yes would add the

भविष्य

class. This is the simplest way of adding a class but has the following two limitations:

  • The name of the class must have an initial capital letter and all following letters in lowercase. In other words, the capitalisation must be of the form Xxxxxx.
  • It is not possible to use this method to add a shortcut or alternative alias for a different class, for example "Cur" for Current-class.

If either of these are required, the uppercase parameter syntax must be used (see below).

If |FQS=yes is used, then a value of "no" may be used to switch off that individual class. Thus, on a /class subpage:

{{Class mask<noinclude>/templatepage</noinclude>|1={{{class|}}}
 |topic=physics
 |FQS=yes
 |portal=no
}}

would support six of the seven additional classes listed above but not support Portal-Class.

The UPPERCASE parameter syntax[सम्पादन गर्नुहोस्]

Add a class in UPPERCASE as the name of a parameter followed by the exact, case-sensitive name of the class as the value of the parameter. For example,

|SIA=SIA

would add SIA-Class and

|CHEESECAKE=CheeseCake

would add CheeseCake-Class.

You can use this method to add a shortcut or alias for a class, too, as in the case of

|future=yes
|FUT=Future

which would have the effect that defining either |future= or |fut= (not case sensitive) with a valid value would result in an assessment into Future-Class for that page.

You can add as many aliases for a class as needed, so this would work just as well for SIA-Class,

|SIA=SIA
|SETINDEX=SIA
|SET INDEX ARTICLE=SIA

and would mean that an input of |sia=, |setindex= or |set index article= (again, these are case-insensitive) would each result in an SIA-Class page assessment.

Examples[सम्पादन गर्नुहोस्]

Example 1: subpage[सम्पादन गर्नुहोस्]

The following code is placed in the banner template,

|QUALITY_SCALE=subpage
 |class={{{class|}}}

and on the /class subpage (for example {{WikiProject Zimbabwe}} uses the subpage Template:WikiProject Zimbabwe/class), the following code is used:

{{Class mask<noinclude>/templatepage</noinclude>|1={{{class|}}}
 |topic=Zimbabwe
 |FQS=yes
 |redirect=yes
}}

In this case all seven of the "extended" quality classes are used, plus the additional Redirect-Class, and because the |topic= parameter is set, specific documentation will be displayed on the /class subpage for it.

Example 2: inline[सम्पादन गर्नुहोस्]

The following code is placed in the banner template,

|QUALITY_SCALE=inline
 |class={{Class mask |1={{{class|}}} |FQS=yes |redirect=yes |fm=yes}}

activating all seven extended quality classes, plus the additional Redirect- and FM- classes.

Subtemplates[सम्पादन गर्नुहोस्]

Instances[सम्पादन गर्नुहोस्]

  • This shows all /class subpages which use this template.

TemplateData[सम्पादन गर्नुहोस्]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template in articles based on this TemplateData.

Class maskको कागजात

This template provides the project-specific valid Wikipedia 1.0 assessment scheme classes to Template:WPBannerMeta

ढाँचा प्यारामिटरहरू

This template prefers inline formatting of parameters.

मापदण्डविवरणप्रकारस्थिति
Assessment class1

Passthrough for {{{class}}} parameter from Template:WPBannerMeta

प्रस्तावित मानहरू
{{{class|}}}
उदाहरण
{{{class|}}}
स्वत: मूल्य
{{{class|}}}
सामग्रीआवश्यक
topictopic

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
fafa

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
flfl

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
aa

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
gaga

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
bb

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
cc

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
startstart

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
stubstub

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
listlist

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
FQSFQS

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
categorycategory

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
disambigdisambig

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
draftdraft

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
filefile

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
portalportal

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
projectproject

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
templatetemplate

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
fmfm

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
redirectredirect

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
forceNAforceNA

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
b1b1

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
b2b2

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
b3b3

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
b4b4

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
b5b5

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
b6b6

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
topic1topic1

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
topic2topic2

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
topic3topic3

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
topic4topic4

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
topic5topic5

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक
topic6topic6

कुनैपनि विवरण छैन

अज्ञातवैकल्पिक