Template:Data item link

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

Usage

This template checks if a data item exists for the given tag and displays a link to it.

The item ID is determined by Module:Data item link.

Notes

By default the link is displayed as a plain text link. You can choose different link styles or layouts by specifying parameter "layout".

Syntax

{{Data item link|layout=|type=|key/prefix/suffix=|value=}}

Parameters

  • layout = button / pen / tab / not specified (default)
  • float = left / right (optional, default is "right" for 'ltr' languages and "left" for 'rtl' languages)
  • type = key / key-prefix / key-suffix / value
  • key = name
  • prefix = name
  • suffix = name
  • value = name

Examples

  • {{Data item link|type=key-prefix|prefix=addr}} rendered :
  • {{Data item link|layout=button|type=key-prefix|prefix=addr}} rendered :
Black pencil.svg
  • {{Data item link|layout=pen|type=key-prefix|prefix=addr}} rendered :
  • {{Data item link|layout=tab|type=key-prefix|prefix=addr}} rendered :