Template:Data item link
Jump to navigation
Jump to search
This documentation is transcluded from Template:Data item link/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.
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 :
{{Data item link|layout=pen|type=key-prefix|prefix=addr}}
rendered :
{{Data item link|layout=tab|type=key-prefix|prefix=addr}}
rendered :