Template:ItemLink

From Apex Legends Wiki
Jump to navigation Jump to search
Template-info.png Documentation

This template takes a single parameter and provides a link to something accompanied by a 22px image of it. For this template to work, there must be a svg image with the same name of the page you are trying to link to.

Optional parameters can change this behavior but are for most use cases unneeded.

Usage

{{ItemLink|1}}

Parameters

  • 1 is the main and only mandatory parameter. The template will add content equivalent to [[File:1.svg|22x22px]] [[1]].
  • image if specified will change the image used. Note that file extension must be specified if using this parameter.
  • link if specified will change the link target on the image and link.
  • size if specified will change the size of the associated image. Can also be used as parameter 2.
  • text if specified will change the display text of the link, but not the link target.
  • inv if specified determines whether the image is inverted when on dark mode. Any value other than "no" causes the image to be inverted. If unspecified, all icons, except some colored icons such as ammo and healing items, will be inverted by default.
  • noText if specified will not display any text after the symbol, equivalent to Template:Symbol. Template only checks if a value is specified so editor can set any value for it to work.

Example

{{ItemLink|Disruptor Rounds}}
{{ItemLink|Disruptor Rounds|noText=yes|inv=no}}
{{ItemLink|Light Rounds}}
{{ItemLink|Shield Cell}}
{{ItemLink|Shield Cell|inv=yes}}

Disruptor Rounds.svg Disruptor Rounds
Disruptor Rounds.svg
Light Rounds.svg Light Rounds
Shield Cell.svg Shield Cell
Shield Cell.svg Shield Cell