Template:Unit/doc

From SWGoH Wiki
Jump to navigationJump to search


Guide

The Unit template is used to get images of characters and ships to use in wiki pages. Choose Edit Source on the page you want to add this to and copy and paste the following code:

{{Unit|param1|param2|param3|param4|param5}}

Parameters

{{Unit|param1|param2|param3|param4|param5|param6}}

  • Parameter 1 = Character or Ship
  • Parameter 2 = The units short name or base id. For a list of acceptable names see Template:Get Name/doc
  • Parameter 3 = Optional: emblem, portrait, or portrait-tr
  • Parameter 4 = Optional: resize image based on width using pixels. Example: 200px
  • Parameter 5 = Optional: link, Adds a link to the units wiki page.

Proper Formatting

When using optional parameters you can either use the parameter number or a | to indicate which parameter you are entering information for. Each | indicates a parameter, when skipping optional parameters the | still has to be used if not using the parameter name/number.
E.g.

  • {{Unit|Character|Aayla|4=200px}}
  • {{Unit|Character|Aayla||200px}}

Example

{{Unit|Ship|AhsokaShip||150px|link}}
Ahsoka Tano's Jedi Starfighter