Template:TagCount
Jump to navigation
Jump to search
This template fetches and displays a count of elements for the specified key or value from Taginfo.
Parameters
{{{1}}}– key whose count is obtained, for examplebuilding=*{{{2}}}– optional value for the specified key whose count is obtained. If omitted, count of all objects tagged with the key is displayed.{{{3}}}– optional type of objects whose count is obtained. It may take the following values:- all – (default) all object types are fetched
- node – only nodes are fetched
- way – only ways are fetched. It is not possible to distinguish open and closed ways (areas).
- rel – only relations are fetched. It is not possible to distinguish by type of relation.
Usage
Examples:
{{TagCount|building}}produces (total count ofbuilding=*elements){{TagCount|building|detached}}produces (total count ofbuilding=detachedobjects){{TagCount|building|detached|node}}produces (total count ofbuilding=detachednodes){{TagCount|building|detached|way}}produces (total count ofbuilding=detachedways){{TagCount|building|detached|rel}}produces (total count ofbuilding=detachedrelations, presumably multipolygons){{TagCount|building||node}}produces (total count ofbuilding=*nodes, regardless of tag value)
See also
- {{Taginfo entry}}
- {{Taginfo2}}
- {{Taglist}}