Template:Ti

From OpenStreetMap Wiki
Jump to navigation Jump to search

This simple template returns the number of all uses of a given key or tag from Taginfo.
The template is similar to {{Taginfo entry}} but doesn't include the table code.

Uses MediaWiki:Gadget-taginfo.js.

Usage

{{ti|key}}

{{ti|key|value}}

Examples

  • {{ti|building|yes}}
  • {{ti|nonexistent_key|nonexistent_value}}

Known issues

  • Does not return "0" when the tag is not present in the database.
  • Cannot be used within the text, because it returns a new line before and after it.

See also