Template:RelationDescription

From OpenStreetMap Wiki
Jump to: navigation, search
[Edit] [Purge] Template-info.svg Template documentation

This template provides a description box suitable for key/value pairs.

Usage

Full parameter set in vertical format
Vertical list Prerequisites Brief instructions / notes
{{RelationDescription
| type          = 
| image         = 
| image_caption = 
| description   = 
| group         = 
| members       = 
| combination   = 
| implies       = 
| seeAlso       = 
| status        = 
| statuslink    = 
| lang          = 
| class         = 
| float         = 
| style         = 
| languagelinks = 
}}
 
 
 
image
 
 
 
 
 
 
status
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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:

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. If this parameter is not specified or empty, the default language to use will be determined from the current page by {{Langcode}}

Feature description

  • type: the relation type being described
  • image: the name of an image to be used to illustrate the feature
  • image_caption: the description of the 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
  • members: the element types and roles of members of the relation

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: the approval status of this feature, possible values include:
    • abandoned: the approval process for this feature has been terminated before completion
    • approved: the feature has successfully competed the approval process
    • de facto or defacto: the tag is in widespread use, but no formal proposal process has taken place
    • deprecated: deprecated tags that will not be used anymore
    • discardable: a few features not carrying any meaning anymore like Tag:odbl=clean
    • draft: the feature has a draft proposal being written
    • in use or inuse: the feature is in use
    • obsolete: a feature which is no longer found in the database
    • proposed: the feature has been formally proposed
    • rejected: the feature was rejected during the approval process
    • unspecified or undefined or unknown or  (empty): unclear situation, a potentially abandoned draft of a proposal and some usage only
    • voting: the feature is currently being voted on as part of the approval process
  • statuslink: name of the proposal page, for linking

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 (this is only used within this documentation page for showing the examples below)

Examples

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

{{RelationDescription
| type          = multipolygon
| image         = File:Multipolygon Illustration 6.svg
| image_caption = Schematic illustration of how a multipolygon (here a complex example with enclaves and exclaves) can be represented.
| description   = The multipolygon relation is used to represent complex areas.
| group         = Properties
| lang          = en
| status        = Approved
| members       =
* {{IconWay}} - outer
* {{IconWay}} - inner
| seeAlso       = [[Relation:boundary]]
}}
Public-images-osm logo.svg multipolygon
Multipolygon Illustration 6.svg
Description
The multipolygon relation is used to represent complex areas. Edit or translate this description.
Group: Properties
Members
  • way - outer
  • way - inner
See also

Relation:boundary

Wikidata
Status: approved

{{RelationDescription|lang=pl
| type          = route
| image         = file:CycleLayer2.png
| description   = Zbiór tagów i członków relacji do oznakowania różnego rodzaju tras.
| group         = Route
| members       =
* {{IconWay}} - (blank)
* {{IconWay}} - forward
* {{IconWay}} - backward
* {{IconNode}} - stop:<number>
* {{IconNode}} - stop
* {{IconNode}} - forward:stop:<number>
* {{IconNode}} - forward:stop
* {{IconNode}} - backward:stop:<number>
* {{IconNode}} - backward:stop
* {{IconNode}} {{IconWay}} {{IconArea}} - platform:<number>
* {{IconNode}} {{IconWay}} {{IconArea}} - platform
| combination   = {{tag|route}}
}}
Public-images-osm logo.svg route
CycleLayer2.png
Opis
Zbiór tagów i członków relacji do oznakowania różnego rodzaju tras. Edit or translate this description.
Grupa: Route
Człony
  • way - (blank)
  • way - forward
  • way - backward
  • node - stop:<number>
  • node - stop
  • node - forward:stop:<number>
  • node - forward:stop
  • node - backward:stop:<number>
  • node - backward:stop
  • node way area - platform:<number>
  • node way area - platform
Przydatne kombinacje

route=*

Wikidane
Status: de facto

See also