Taginfo/Embedding
< Taginfo
Jump to navigation
Jump to search
Infoboxes
This wiki contains the documentation for many OSM keys and tags in pages starting with "Key:" or "Tag:" or its equivalents in other languages. Most of those pages use the KeyDescription or ValueDescription templates. On the wiki page you can see the boxes with the green background on the right hand side. The templates contain special code to include an iframe. The content of this iframe comes directly from http://taginfo.openstreetmap.org/ , it contains a few statistics about this tag and a link to the Taginfo page.
Here are three examples:
for... | rendering | Wikicode | HTML code for inclusion on your webpage |
---|---|---|---|
highway=* | {{#tag:osmtaginfo||key=highway}}{{taginfo|highway}} | <iframe width="200" frameborder="0" src=
"http://taginfo.openstreetmap.org/embed/key?key=KEY" />
| |
highway=residential | {{#tag:osmtaginfo||key=highway|value=residential}} {{taginfo|highway|residential}} |
<iframe width="200" frameborder="0" src=
"http://taginfo.openstreetmap.org/embed/tag?key=KEY&value=VALUE" />
| |
turn:lanes=left|through|right | {{#tag:osmtaginfo||key=turn:lanes|value=left{{!}}through{{!}}right}} {{taginfo|turn:lanes|left{{!}}through{{!}}right}} |
||
Relation:multipolygon | {{#tag:osmtaginfo||rtype=multipolygon}} | <iframe width="200" frameborder="0" src=
"http://taginfo.openstreetmap.org/embed/relation?rtype=RTYPE" />
|
The #tag:osmtaginfo
parser function is implemented by a MediaWiki extension. Use the {{Taginfo}} or {{Taginfo2}} wrapper template unless you need custom layout.