Template:Importance mask/doc

From MattWiki
Jump to: navigation, search

Usage

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

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

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

Parameters

  • importance (Required) this parameter must be passed as the first unnamed parameter in all cases.
  • class (Required) – the 'class' parameter must be passed to allow the mask to automatically set the importance of non-articles to NA. Eg: class={{{class|}}}

Eg: importance={{{importance|}}}

  • 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".

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

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'

Default
empty
Example
empty
Auto value
empty
Stringrequired
Classclass

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

Default
empty
Example
empty
Auto value
empty
Stringrequired
Top importancetop

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

Default
empty
Example
empty
Auto value
empty
Stringoptional
High importancehigh

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

Default
empty
Example
empty
Auto value
empty
Stringoptional
Mid importancemid

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

Default
empty
Example
empty
Auto value
empty
Stringoptional
Low importancelow

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

Default
empty
Example
empty
Auto value
empty
Stringoptional
Bottom importancebottom

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

Default
empty
Example
empty
Auto value
empty
Stringoptional

See also