Template:Taginfo entry/doc
Jump to navigation
Jump to search
![]() | This is a documentation subpage for Template:Taginfo entry. It contains usage information, categories and other content or metadata that is not part of the original template. |
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}}