Template:Team Unit/doc

From SWGoH Wiki
Jump to navigationJump to search


DOCUMENTATION

This template can be used to add an image of the unit portrait to a page with a lock icon and zeta count surrounded by a gold border. This process of getting information from one wiki page and inserting it into another is referred to as transclusion (to transclude).

To get the information from the template you use {{Team Unit|parameters}}, where parameters are place holders for data you send to the template. This template uses ordered parameters and named parameters which are discussed in the next section.

Parameters

Order parameters are parameters that are accepted in a specific order and do not need a name declared. Named parameters require the name of the parameter followed by an equal sign. All parameters should begin with a | symbol.
Example Order: {{Team Unit | VALUE}}, Named: {{Team Unit | lock=VALUE}}

This template uses the following format for parameters:
{{Team Unit|UNIT_TYPE|UNIT_NAME|txt=|zeta=|size=|noHover=|team=}}
  • 1st Parameter = The type of unit. Options: Character, Ship
  • 2nd Parameter = The full in-game name of the unit.
  • size = The size to make the image. Options: sm = small, med = medium, lg = large. If omitted large will be selected by default.
  • link = OPTIONAL: Changes the link for the image. Options: Any page name
  • lock = OPTIONAL: Adds an image of a lock to the image. Options: y or omit
  • noHover = OPTIONAL: Disables the popup with the name above the image. Options: y or omit
  • team = OPTIONAL: Changes the text displayed in the popup above the image. Options: Any text
  • txt = OPTIONAL: Adds the unit name under the image. Options: y or omit
  • zeta = OPTIONAL: The number of zetas. Options: Any number

Use Example

You can copy the code below to quickly add and adjust your own. Delete the parameters you will not need.

{{Team Unit|Character|Bossk|size=|zeta=|txt=|lock=}}