Template:Deprecated/doc
Describes deprecated tag values.
Usage
{{Deprecated
| oldkey =
| oldvalue =
| newtext =
}}
For example, this:
{{Deprecated
| oldkey = shop
| oldvalue = fish
| newtext = tag:shop=seafood
}}
does the same thing as this:
{{ValueDescription
| key = shop
| value = fish
| image = File:Commons-emblem-hand.svg
| description = Using this tag is discouraged, use tag:shop=seafood instead.
| osmcarto-rendering = File:Shop-other-16.svg
| osmcarto-rendering-size = 28px
| group = shops
| onNode = no
| onWay = no
| onArea = no
| onRelation = no
| combination =
| implies =
| seeAlso =
| status = deprecated
| statuslink =
| languagelinks = no
}}
{{Deprecated feature
| {{tag|shop|seafood}}
}}
However, there are some issuses with the first way, see talk page.
Parameters
- oldkey= (mandatory) Deprecated key name
- oldvalue= (optional) Deprecated value
- newtext= (mandatory) Replacement text to link to
- group= (optional) Group name of deprecated key
- statuslink= (optional) Link to resource that lead to deprecated status
Additional parameter
- status=deprecated (optional) It is suggested by at least one user to keep or add the parameter
status=deprecatedas this is important information that might be relevant to retain in the page content. For now, it is not known that it makes a difference. But in the future it may provide the possibility to read this information from the page, e.g. fetched by taginfo. (See also Template talk:Deprecated.)
Translation
The template content is and can be translated in separate Template:DeprecatedLang.
See also
- {{ValueDescription}}
- {{Deprecated feature}}
This template is dedicated for deprecated tags. It provides a description box suitable for key/value pairs.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Deprecated key | oldkey | Deprecated key name
| Line | required |
| Deprecated value | oldvalue | Deprecated tag value
| Line | optional |
| Replacement tagging | newtext | Text with suggested replacement tag(s)
| Content | required |
| An image showing a suggested rendering on a map | osmcarto-rendering | An image showing a suggested rendering on a map; alternatively a page name/anchor to link to more detailed description | File | optional |
| osmcarto-rendering-size | osmcarto-rendering-size | The size of the image set in osmcarto-rendering
| String | optional |
| osmcarto-rendering-node | osmcarto-rendering-node | an image showing a suggested rendering on a map for a node object; alternatively a page name/anchor to link to more detailed | File | optional |
| osmcarto-rendering-node-size | osmcarto-rendering-node-size | The size of the image set in osmcarto-rendering-node
| String | optional |
| osmcarto-rendering-way | osmcarto-rendering-way | an image showing a suggested rendering on a map for a node object; alternatively a page name/anchor to link to more detailed | File | optional |
| osmcarto-rendering-way-size | osmcarto-rendering-way-size | The size of the image set in osmcarto-rendering-way
| String | optional |
| osmcarto-rendering-area | osmcarto-rendering-area | an image showing a suggested rendering on a map for a node object; alternatively a page name/anchor to link to more detailed | File | optional |
| osmcarto-rendering-area-size | osmcarto-rendering-area-size | The size of the image set in osmcarto-rendering-area
| String | optional |
| Group of deprecated key | group | Group name of deprecated key
| Line | optional |
| Requires tag | requires | A list of tag(s) which are necessary (often higher/lower in hierarchy) for this tag and must be set to give its actual meaning | Content | optional |
| implies | implies | A list of tag(s) that the feature implies in its defention. | Content | optional |
| combination | combination | A bulleted-list of example tag(s) that can be used in combination with this feature. | Content | optional |
| seeAlso | seeAlso | a list of similar tags | Content | optional |
| status | status | The approval status of this feature
| Unknown | suggested |
| statuslink | statuslink | The name of the deprecation proposal page, for linking. | Page name | suggested |
| debug | debug | no description | Unknown | optional |