Template:ItemLink/doc

From Helldivers Wiki
Jump to navigation Jump to search
Template-info.svg Documentation

Takes a single parameter and provides a link to something accompanied by a 20px image of it. If the image filename is not of the format "PAGENAME", the second parameter can be used to call out the specific filename

For this template to work, there must be a png image with the same name of the page you are trying to link to, or the second parameter must be specified.

Usage

{{ItemLink|1|image=|link_name=}}

Parameters

  • 1 is the primary parameter. If no other parameters are added, the template will add content equivalent to [[File:1.png|20x20px]] [[1]].
  • image= is an override parameter for the filename. If this parameter is specified, the template will add content equivalent to [[File:2|20x20px]] [[1]].
  • link_name is an optional parameter if you want to have a different link name. If specified, the template will add content equivalent to [[File:1.png|20x20px]] [[1|link_name]]
  • size is an optional parameter that determines an icons size in px.

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.