User:RicoZ/Template:NamespacePrefix/doc
Jump to navigation
Jump to search
This is a documentation subpage for User:RicoZ/Template:NamespacePrefix. It contains usage information, categories and other content or metadata that is not part of the original user template. |
This template is a copy of a description box template with added namespace functionality for experimenting.
Usage
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 tovalue
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 usedefacto
: the tag is in widespread use, but no formal proposal process has taken placeobsolete
: feature (without proposal) obsolete by newer feature proposaldiscardable
: 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 writtenproposed
: the feature has been formally proposedabandoned
: the approval process for this feature has been terminated before completionvoting
: the feature is currently being voted on as part of the approval processapproved
: the feature has successfully competed the approval processrejected
: 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 }}
dessert = cheesecake |
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 |
Implies |
Useful combination |
See also |
Status: imaginary |
Tools for this tag |
|
{{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 }}
dessert |
Description |
---|
A dessert is a sweet dish, typically served towards the end of a meal. |
Used on these elements |
Implies |
Useful combination |
See also |
Status: imaginary |
Tools for this tag |
|
{{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 = }}
highway = residential |
Description |
---|
Road in a residential area |
Used on these elements |
Useful combination |
Status: approved |
Tools for this tag |
|
{{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 }}
power = generator |
Beschreibung |
---|
Kraftwerk - dient der Erzeugung von Strom oder Wärme |
Für diese Elemente |
Sinnvolle Kombinationen |
Status: unbestimmt |
Werkzeuge für dieses Attribut |
|
{{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 }}
shop |
Описание |
---|
Место розничной торговли или оказания услуг. |
Используется на элементах |
Полезные сочетания |
|
Статус: не известен |
Инструменты |
|
{{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 }}
highway = tertiary |
Description |
---|
A road linking small settlements, or the local centres of a large town or city. |
Used on these elements |
Implies |
access=yes |
Useful combination |
Status: approved |
Tools for this tag |
|
See also
- User:Moresby/KeyDescription
- User:Moresby/ValueDescription
- User:Moresby/RelationDescription
- {{KeyDescription}}
- {{ValueDescription}}
- {{RelationDescription}}
- {{PrefixNamespaceDescription}} Namespace (not limited to this page)
- {{PostfixNamespaceDescription}} Forward & backward, left & right (not limited to this page)