Sandbox

From OpenStreetMap Wiki
Revision as of 17:19, 14 October 2023 by Chris2map (talk | contribs) (Test link to data item for key prefixes and suffixes)
Jump to navigation Jump to search
Documentation

This is the Sandbox, a page where you can play around with wiki editing. Just Create an account then click 'edit' above.

EDIT BELOW THIS LINE

Public-images-osm logo.svg Préfixe contact:*
Contact info.jpg
Description
La clé contact est un préfixe de différentes clés contact:* pour décrire des moyens de contact
Groupe: adresses
Utilisé pour ces éléments
peut être utilisé sur des nœudspeut être utilisé sur des cheminspeut être utilisé sur des zonesutilisation non spécifiée sur des relations
Voir aussi
Statut : utilisé
taginfo: contact:*



This is a test displaying a link to the data item on a key prefix page in the description box.

To get the link to the corresponding data item a module with lua script is used. The module is called Module:Data item link.

{{#invoke:Data item link|wbGetEntityIdForKeyPrefix|{{{prefix|}}}}}

The module uses the "prefix" parameter given with the template KeyPrefixDescription on a key prefix page in order to construct the page name (Key:prefix:*) to search the data item for.

The example layout is done in Template:Description/sandbox by using Template:Data item link to get the item and create the button.


Public-images-osm logo.svg Prefix counselling_type:*
Description
Which types of counselling something provides.
Group: Counselling
Used on these elements
may be used on nodesshould not be used on waysmay be used on areas (and multipolygon relations)may be used on relations
Useful combination

counselling=yes/no

Status: proposed
taginfo: counselling_type:*


Public-images-osm logo.svg Prefix damage:*
February 2010 Chile earthquake collapsed masonry bridge.jpg
Description
Specify the details of a of a event that caused destruction.
Group: lifecycle
Used on these elements
may be used on nodesmay be used on waysmay be used on areas (and multipolygon relations)may be used on relations
Useful combination
See also
Status: in use
taginfo: damage:*


Public-images-osm logo.svg Suffix *:both_ways
Both Ways - geograph.org.uk - 2516011.jpg
Beschreibung
Das Schlüsselsuffix *:both_ways wird verwendet, um Eigenschaften für Fahrspuren oder ähnliche Kartenmerkmale anzugeben, die für beide Richtungen eines Weges zutreffen.
Gruppe: Eigenschaften
Für diese Elemente
sollte nicht auf Punkte angewendet werdenkann auf Linien angewendet werdensollte nicht auf Flächen angewendet werdensollte nicht auf Relationen angewendet werden (außer Multipolygon-Relationen)
Status: akzeptiert
taginfo: *:both_ways