Template:Common tags to use in combination/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

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

Consider using instead simple text that is easier to edit, improve and adapt to a specific case.

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>
|contact=<yes or description>
|opening_hours=<yes or description>
|drive_through=<yes or description>
|wheelchair=<yes or description>
|phone=<yes or description>
|email=<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

1

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

Result:

  • addr:*=* - the address of this building
  • phone=* phone number
  • email=* - the address e-mail of this building
  • opening_hours=* - hours of opening
  • operator=* - indicates the operator or name of the company operating this building

2

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

Result:

3

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

Result: