Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Implementation in Module:WikiProject banner  





2 Optional parameters  



2.1  The lowercase parameter syntax  





2.2  The UPPERCASE parameter syntax  







3 Example  





4 Subtemplates  





5 Instances  





6 TemplateData  














Template:Class mask






Afrikaans
العربية

تۆرکجه
Basa Bali


فارسی
Հայերեն
Bahasa Indonesia
Kurdî
Bahasa Melayu


ି

Scots
Shqip

Slovenščina
ி


Türkçe
اردو

 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


¬

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 Module:WikiProject banner

The template provides the default class masks for WikiProject's quality scales, and is also used by a few projects which have opted out of the standard scale and use a custom class mask by setting |QUALITY_CRITERIA=custom and |QUALITY_SCALE=subpage in the WikiProject's banner template, and creating a /class subpage.

When used on a /class subpage, 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.

Optional parameters

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
Future
class. This is the simplest way of adding a class but has the following two limitations:

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.

Example

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.

Subtemplates

Instances

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Class mask in articles based on its TemplateData.

TemplateData for Class mask

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

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Assessment class1

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

Suggested values
{{{class|}}}
Example
{{{class|}}}
Auto value
{{{class|}}}
Contentrequired
topictopic

no description

Unknownoptional
fafa

no description

Unknownoptional
flfl

no description

Unknownoptional
aa

no description

Unknownoptional
gaga

no description

Unknownoptional
bb

no description

Unknownoptional
cc

no description

Unknownoptional
startstart

no description

Unknownoptional
stubstub

no description

Unknownoptional
listlist

no description

Unknownoptional
FQSFQS

no description

Unknownoptional
categorycategory

no description

Unknownoptional
disambigdisambig

no description

Unknownoptional
draftdraft

no description

Unknownoptional
filefile

no description

Unknownoptional
portalportal

no description

Unknownoptional
projectproject

no description

Unknownoptional
templatetemplate

no description

Unknownoptional
fmfm

no description

Unknownoptional
redirectredirect

no description

Unknownoptional
forceNAforceNA

no description

Unknownoptional
b1b1

no description

Unknownoptional
b2b2

no description

Unknownoptional
b3b3

no description

Unknownoptional
b4b4

no description

Unknownoptional
b5b5

no description

Unknownoptional
b6b6

no description

Unknownoptional
topic1topic1

no description

Unknownoptional
topic2topic2

no description

Unknownoptional
topic3topic3

no description

Unknownoptional
topic4topic4

no description

Unknownoptional
topic5topic5

no description

Unknownoptional
topic6topic6

no description

Unknownoptional

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Class_mask&oldid=1214469479"

Categories: 
Lua-based templates
WikiProject templates
Wikipedia metatemplates
Hidden categories: 
Wikipedia template-protected templates
Templates using TemplateData
 



This page was last edited on 19 March 2024, at 04:02 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki