Template:PermanentID/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:PermanentID. It contains usage information, categories and other content or metadata that is not part of the original template. |
Usage
Gives the permanent ID (name) set in the corresponding data item of a key or tag, respective to the type. The type must be manually set as second parameter with a template call.
- Type "key" gives the ID set as permanent key ID (P16).
- Type "prefix" gives the ID set as permanent key prefix ID (P52).
- Type "suffix" gives the ID set as permanent key suffix ID (P53).
- Type "value" gives the ID set as permanent tag ID (P19).
Notes
Syntax
{{PermanentID|<Q-ID>|<tag type>}}
Parameters
- 1 = data entity (item) ID starting with Q...
- 2 = type of tag: key / prefix / suffix / value
Examples
{{PermanentID|Q123|key}}
rendered : building:roof{{PermanentID|Q123|value}}
rendered : -{{PermanentID|Q890|value}}
rendered : bridge:movable=lift
See also