Template:Tagpresence/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

A template to display tag presence requirements.

Usage

1=
The first unnamed parameter is the presence requirement, taking one of the values: required, important, optional, or forbidden. important indicates the very common situation in which presence is not absolutely required, but is needed in the default, vast majority, or such like, of cases; in essence, a reason is needed to exclude it, rather than a reason being needed to include it. The remaining options should be sufficiently self-descriptive.
2=
The second unnamed parameter, if set, overrides the name/description text of the presence requirement, and causes the requirement symbol to be the subject of an <abbr> tag.

Samples

{{Tagpresence|required}} ! Required
{{Tagpresence|required|Description text}} ! Description text
{{Tagpresence|important}}  Important
{{Tagpresence|important|Description text}}  Description text
{{Tagpresence|optional}} ? Optional
{{Tagpresence|optional|Description text}} ? Description text
{{Tagpresence|forbidden}}  Forbidden
{{Tagpresence|forbidden|Description text}}  Description text


This template displays short information about recommendations to use some extra tags.

Template parameters

ParameterDescriptionTypeStatus
Presence requirement1

Identifier of template style.

Suggested values
required important optional forbidden
Example
required
Unknownrequired
Description override2

Text to override default description.

Lineoptional
stylestyle

no description

Unknownoptional