Template:Common tags to use in combination/doc

From OpenStreetMap Wiki
Jump to: navigation, search

This template helps to describe "Tags used in combination" section in tag description pages. It can gives descriptions of common tags used with a main tag, their standardized description and their translate text.

Usage

{{Common tags to use in combination
|feature=<the type of the feature>
|name=<yes or description>
|operator=<yes or description>
|brand=<yes or description>
|addr=<yes or description>
|opening_hours=<yes or description>
|drive_through=<yes or description>
|wheelchair=<yes or description>
|phone=<yes or description>
|website=<yes or description>
|wikipedia=<yes or description>
|lang=<langcode>
}}

If operator is set as yes, operator=* will appear with the default description. If operator is set with description string, the description will be overwritten by it. Other parameters are also similar.

If feature is not set, "feature" is used as the type of the feature.

When lang=<langcode> is omitted, a language of the page includes this template is used. If the language is not supported by this template, English text is used.

Examples

{{Common tags to use in combination
|feature=building
|operator=yes
|addr=yes
|opening_hours=yes
|phone=phone number
}}

Result:

{{Common tags to use in combination
|feature=building
|operator=yes
|addr=yes
|opening_hours=yes
|lang=ja
}}

Result:

{{Common tags to use in combination
|operator=yes
|addr=yes
|opening_hours=yes
|phone=yes
|lang=de
}}

Ergebnis: