Template:Taginfo entry

From OpenStreetMap Wiki
Jump to navigation Jump to search
[Edit] [Purge] Template-info.svg Template documentation

This template produces table cells with a taginfo counter.

information sign

This template should be used outside of tables, because the cell syntax would then become visible text

For example, if you write {{Taginfo entry|building}}, the result would be:

|style="text-align:right;"|

Usage

Example:

{{Taginfo entry|building}} {{Taginfo entry|building|detached}}

You can also choose statistics for a specific region:

{{Taginfo entry|building|region=ru}} {{Taginfo entry|building|detached|region=ru}}

It is also possible to make a convenient sorting by the number of uses:

Tag Count
building=apartments
building=residential
building=house
building=detached
building=farm_auxiliary
building=garage
building=hut
building=industrial
building=shed
building=yes

The table above is produced by the following code structure (note the "//Rows" line, which is meant to be replaced by actual table rows):

{|class="wikitable sortable"
!Tag
!data-sort-type="number"|Count
|-
|{{Tag|building|apartments}}{{Taginfo entry|building|apartments}}
|-
//Rows
|-
|{{Tag|building|yes}}{{Taginfo entry|building|yes}}
|}

See also