Jump to content

Template:Importance mask/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

This template is designed to be used by WikiProject banner templates to normalise the importance parameter.

The importances top, high, mid, low, and bottom may be enabled or disabled. However NA and Unknown may not be disabled.

Syntax

[edit]

Typically this template should be placed on the /importance subpage of a WikiProject banner template.

{{importance mask<noinclude>/templatepage</noinclude>
|1={{{importance|}}}
|pagetype={{{pagetype|}}}
|top=
|high=
|mid=
|low=
|forceNA=
}}

Parameters

[edit]
  • importance (Required) this parameter must be passed as the first unnamed parameter in all cases. Eg: importance={{{importance|}}}
  • pagetype (Required) – this parameter must be passed to allow the mask to automatically set the importance of non-articles to NA. Eg: pagetype={{{pagetype|}}}
  • top – specifies whether Top-importance is used, defaults to "yes".
  • high – specifies whether High-importance is used, defaults to "yes".
  • mid – specifies whether Mid-importance is used, defaults to "yes".
  • low – specifies whether Low-importance is used, defaults to "yes".
  • bottom – specifies whether Bottom-importance is used, defaults to "no".
  • forceNA – if set to "yes" then non-articles (except drafts and redirects) will be forced to have NA-importance. In this case the importance parameter will be ignored on these pages.

TemplateData

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

TemplateData for Importance mask

This template is designed to be used by WikiProject banner templates to normalise the ''importance'' parameter.

Template parameters

ParameterDescriptionTypeStatus
Importance1

One of 'top', 'high', 'mid', 'low' or 'bottom', 'NA' or 'Unknown'

Stringrequired
Classclass

the 'class' parameter must be passed to allow the mask to automatically set the importance of non-articles to NA.

Stringrequired
Top importancetop

specifies whether ''Top-importance'' is used, defaults to ''yes''

Stringoptional
High importancehigh

specifies whether ''High-importance'' is used, defaults to ''yes''

Stringoptional
Mid importancemid

specifies whether ''Mid-importance'' is used, defaults to ''yes''

Stringoptional
Low importancelow

specifies whether ''Low-importance'' is used, defaults to ''yes''

Stringoptional
Bottom importancebottom

specifies whether ''Bottom-importance'' is used, defaults to ''no''

Stringoptional

See also

[edit]