Template:TagIssue/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

Usage

Tag that assigns the severity to a raised issue in a project or on a guideline.

Example

Full option example. Al parameters defined, shows icon and label, custom colours used for text colour and background colour.

Critical
Critical
 

{{TagIssue|type=critical|label=Critical|vscale=1|txtcolor=white|bckcolor=black}}

Example using the default colours.

Critical
Critical
 

{{TagIssue|type=critical|label=Critical|vscale=1}}

Example with only an icon, double size.

Critical
 
 

{{TagIssue|type=critical|vscale=2}}

Example with only a label, 3/4 size.

 
Critical
 

{{TagIssue|type=critical|vscale=2}}

Templatedata

Creates a dashboard item to summaries project issues / challenges / goals.

Template parameters

ParameterDescriptionTypeStatus
Tag typetype

Defines the tag type. The supported values are critical/important/minor/resolved

Stringoptional
Labellabel

Label to be shown on the tag. If no label is required just don't include the parameter

Stringoptional
Template scalingvscale

Number to base 1 (fractions to scale down, multiplication to scale up) to scale the whole template up or down. Caution: scaling down may cause the summary icon to display at full size, due to inaccuracies in the calculation. In those cases use a different factor with less significant numbers behind the decimal separator.

Default
1
Numberoptional
Text colortxtcolor

Assign a custom colour for the text displayed on the tag. To use custom colours just don't define the parameter.

Default
grey
Stringoptional
Background colourbckcolor

Assign a custom background colour for the text displayed on the tag. To use custom colours just don't define the parameter.

Default
pink
Stringoptional

See also