User:RicoZ/Template:NamespacePrefix/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

This template is a copy of a description box template with added namespace functionality for experimenting.

Usage

Full parameter set in vertical format
Vertical list Prerequisites Brief instructions / notes
{{Description
| type          = 
| key           = 
| value         = 
| namespace     =
| image         = 
| description   = 
| group         = 
| onNode        = 
| onWay         = 
| onArea        = 
| onRelation    = 
| combination   = 
| implies       = 
| seeAlso       = 
| status        = 
| statuslink    = 
| website       = 
| url_pattern   = 
| lang          = 
| class         = 
| float         = 
| style         = 
| languagelinks = 
| templatename  = 
}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
status
 
 
 
 
 
 
 
 
 
 
'namespace', 'key' or 'value'
 
ignored if |type=key
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Qnnnn
en, de, fr, ja, etc.
 
set |float=none to inhibit floating
 
 
 
 
  • If a field name is listed in the Prerequisites column it is a prerequisite for the field to the left.

Parameters

The following parameters are recognised:

Description type

  • type: set to namespace to describe a namespace, key to describe a single key, set to value to describe a key/value pair

Feature description

  • namespace: the namespace beeing described
  • key: the key being described
  • value: if type=value, the value being described, otherwise ignored
  • image: the name of an image to be used to illustrate the feature
  • description: a short description of the feature in question
  • group: the name of the broader group to which this feature belongs

Feature usage

  • onNode: yes if the feature being described is suitable for use on node elements, no otherwise
  • onWay: yes if the feature being described is suitable for use on way elements, no otherwise
  • onArea: yes if the feature being described is suitable for use on area elements, no otherwise
  • onRelation: yes if the feature being described is suitable for use on relation elements, no otherwise

Additional information

  • combination: a list of additional tags which are useful in combination with this one; see below for examples
  • implies: a list of tags which are implied by this tag; see below for examples
  • seeAlso: references to additional pages which may be of interest
  • status:
    status of feature based on de facto presence in db, users and software:
    • inuse: the feature is in use
    • defacto: the tag is in widespread use, but no formal proposal process has taken place
    • obsolete: feature (without proposal) obsolete by newer feature proposal
    • discardable: feature will be discarded by major editors
    the approval status of this feature (based on Proposal process results):
    • draft: the feature has a draft proposal being written
    • proposed: the feature has been formally proposed
    • abandoned: the approval process for this feature has been terminated before completion
    • voting: the feature is currently being voted on as part of the approval process
    • approved: the feature has successfully competed the approval process
    • rejected: the feature was rejected during the approval process
  • statuslink: name of the proposal page, for linking
  • website: the main website(s) associated with this feature
  • url_pattern: pattern to generate deep-link URLs for instances of this feature

Language support

  • lang: the ISO 639-2 code for the language used to document this feature: this will generate aspects of the description box in the specified language, if translations are available

Advanced formatting parameters

These parameters can generally be ignored by the majority of users. They are available for fine-tuning the presentation of the description box, and are useful for including in examples, or embedding in tutorial pages.

  • class: specify the CSS class of the HTML table used to form the description box
  • float: specify the CSS float value of the table: set to none to disable the standard right float
  • style: the CSS style to be applied to the HTML table: overrides |float= if present
  • languagelinks: set to no to inhibit links to corresponding pages in other languages
  • templatename: name of the page which the navlinks should act on

Examples

Note: In these examples, long lines have been wrapped for convenience. The advanced formatting parameters, class, float, style and languagelinks are not show, as their values are specific to use as examples.

{{Description
| type          = value
| key           = dessert
| value         = cheesecake
| image = File:Italian style cheesecake.jpg
| description   = Cheesecake is a type of cake \
with two layers: a soft, deep top layer, \
typically made with some sort of cheese, and a \
firm, often biscuit-based bottom layer.
| onNode        = yes
| onWay         = no
| onArea        = 
| onRelation    = yes
| combination   = * {{tag|meal|dinner}}
* {{tag|flavour|lemon}} 
* {{tag|origin|new_york}}
| implies       = * {{tag|edible|yes}}  
* {{tag|sweet|yes}} 
| seeAlso       = The {{tag|dessert|gateau}} tag \
is sometimes confused with this one.
| status        = Imaginary
| lang          = en
}}
Public-images-osm logo.svg dessert = cheesecake
Italian style cheesecake.jpg
Description
Cheesecake is a type of cake with two layers: a soft, deep top layer, typically made with some sort of cheese, and a firm, often biscuit-based bottom layer.
Used on these elements
may be used on nodesshould not be used on waysuse on areas unspecifiedmay be used on relations
Implies
Useful combination
See also

The dessert=gateau tag is sometimes confused with this one.

Status: imaginary
{{Description
| type          = key
| key           = dessert
| image         = 
| description   = A dessert is a sweet dish, \
typically served towards the end of a meal.
| onNode        = yes
| onWay         = no
| onArea        =
| onRelation    = yes
| combination   = * {{tag|meal|dinner}}
* {{tag|sweet|yes}}
| implies       = * {{tag|edible|yes}}
| seeAlso       = * {{tag|dessert|cheesecake}}
* {{tag|dessert|gateau}}
| status        = Imaginary
| lang          = en
}}
Public-images-osm logo.svg dessert
Description
A dessert is a sweet dish, typically served towards the end of a meal.
Used on these elements
may be used on nodesshould not be used on waysuse on areas unspecifiedmay be used on relations
Implies
Useful combination
See also
Status: imaginary
{{Description
| type          = value
| key           = highway
| value         = residential
| image         = Image:Residential.jpg
| description   = Road in a residential area
| onNode        = no
| onWay         = yes
| onArea        = no
| onRelation    = 
| combination   = * [[Key:name|name]]
*[[Key:oneway|oneway]]
| implies       = 
| seeAlso       = 
| status        = Approved
| lang          = 
}}
Public-images-osm logo.svg highway = residential
Residential.jpg
Description
Road in a residential area
Used on these elements
should not be used on nodesmay be used on waysshould not be used on areasuse on relations unspecified
Useful combination
Status: approved
{{Description
| type          = value
| key           = power
| value         = generator
| image         = \
File:Kraftwerk_Staudinger_von_Limes-B.jpg
| description   = Kraftwerk - dient der Erzeugung \
von Strom oder Wärme
| onNode        = yes
| onWay         = yes
| onArea        = yes
| onRelation    = 
| combination   = * {{Key|generator:source|kl=DE}}
* {{Key|generator:method|kl=DE}}
* {{Key|generator:output|kl=DE}}
* {{Tag|name|kl=DE}}
* {{Tag|operator|kl=DE}}
| implies       = 
| seeAlso       = 
| status        = 
| lang          = de
}}
Public-images-osm logo.svg power = generator
Kraftwerk Staudinger von Limes-B.jpg
Beschreibung
Kraftwerk - dient der Erzeugung von Strom oder Wärme
Für diese Elemente
kann auf Punkte angewendet werdenkann auf Linien angewendet werdenkann auf Flächen (und Multipolygon-Relationen) angewendet werdenAnwendung auf Relationen nicht spezifiziert
Sinnvolle Kombinationen
Status: unbestimmt
{{Description
| type          = key
| key           = shop
| image         = File:Geograph shop.jpg
| description   = Место розничной торговли или \
оказания услуг.
| onNode        = yes
| onWay         = no
| onArea        = yes
| onRelation    = 
| combination   = * {{Template:RU:Tag|name}}
* {{Template:RU:Tag|opening_hours}}
| implies       = 
| seeAlso       = 
| status        = 
| lang          = ru
}}
Public-images-osm logo.svg shop
Geograph shop.jpg
Описание
Место розничной торговли или оказания услуг.
Используется на элементах
точки можно отмечать этим тегомлинии не принято отмечать этим тегомполигоны можно отмечать этим тегомuse on relations unspecified
Полезные сочетания
Статус: не известен
{{Description
| type          = value
| key           = highway
| value         = tertiary
| image         = Image:OHZ-K3-Werschenrege.jpg‎‎
| description   = A road linking small \
settlements, or the local centres of a large \
town or city.
| onNode        = no
| onWay         = yes
| onArea        = no
| onRelation    = 
| combination   = * [[Key:lanes|lanes]]
* [[Key:oneway|oneway]]
* [[Key:name|name]]
* [[Key:ref|ref]]
| implies       = {{Tag|access||yes}}
| seeAlso       = 
| status        = Approved
| statuslink    = Proposed features/highway=tertiary
| lang          = en
}}
Public-images-osm logo.svg highway = tertiary
OHZ-K3-Werschenrege.jpg
Description
A road linking small settlements, or the local centres of a large town or city.
Used on these elements
should not be used on nodesmay be used on waysshould not be used on areasuse on relations unspecified
Implies

access=yes

Useful combination
Status: approvedPage for proposal

See also