Template:Taginfo entry
Jump to navigation
Jump to search
This documentation is transcluded from Template:Taginfo entry/doc. (Edit | history)
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
This template produces table cells with a taginfo counter.
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
- {{Taginfo}}
- {{Taginfo2}}
- {{Key table entry linked}}
- {{Taglist}}