Template:Team Comp

From SWGoH Wiki
(Redirected from Template:Team comp)
Jump to navigationJump to search


WARNING

This template will add Semantic MediaWiki properties to pages and must only be used with Team pages. Any other use will result in the entire page getting deleted by Admins.

DOCUMENTATION

This template is only for indicating the characters that can be used to make specific teams. For ships you should use the Template:Team Comp Ships template. 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 Comp|parameters}}, where parameters are place holders for data you send to the template. This template uses named parameters which are discussed in the next section.

Parameters

Each parameter should begin with a | symbol followed by the parameter name and the equals sign.
Example {{Team Comp|lead=}}

This template uses a lot of repetitive parameters so only one of each will be mentioned here. To indicate the different units you would use lead, ally# (where # can be 1-4), and sub# (where # can be 1-10). Lead and ally1-4 also include a _lock option.

  • lead = The full in-game name of the leader unit. Can only indicate one leader.
  • lead_lock = Adds a lock to the image to show that this unit has no substitute or is essential to the performance of the team. Options: y
  • ally1 = The full in-game name of the unit.
  • ally1_lock = Adds a lock to the image to show that this unit has no substitute or is essential to the performance of the team. Options: y
  • sub1 = The full in-game name of the unit.

Semantics

  • Property: Team lead = Saved as a page assigned the value sent in lead. This is used to point to the lead units page as well as indicate the lead's name for getting their images.
  • Property: Team ally 1 = Saved as a page assigned the value sent in ally1. This is used to point to the units page as well as indicate the unit's name for getting their images.
  • Property: Team ally 2 = Saved as a page assigned the value sent in ally2. This is used to point to the units page as well as indicate the unit's name for getting their images.
  • Property: Team ally 3 = Saved as a page assigned the value sent in ally3. This is used to point to the units page as well as indicate the unit's name for getting their images.
  • Property: Team ally 4 = Saved as a page assigned the value sent in ally4. This is used to point to the units page as well as indicate the unit's name for getting their images.
  • Property: Team substitutes = Saved as a page assigned the value sent in each sub#. This is used to point to the units page as well as indicate the unit's name for getting their images.
  • Property: Team lock = Saved as text. Each unit indicated to have a lock will be stored here with lead being 1 and allies being 2-5. This is used to add locks to unit images.

Use Example

You can copy the code below to quickly add and adjust your own.

{{Team comp
 |lead=
 |lead_lock=
 |ally1=
 |ally1_lock=
 |ally2=
 |ally2_lock=
 |ally3=
 |ally3_lock=
 |ally4=
 |ally4_lock=
 |sub1=
 |sub2=
 |sub3=
 |sub4=
 |sub5=
}}

The above information is transcluded from Template:Team Comp/doc.

EXAMPLE

Game-Icon-Lock.png
Unit-Character-Commander Luke Skywalker-portrait.png
Commander Luke Skywalker

Commander Luke Skywalker
Game-Icon-Lock.png
Unit-Character-Chewbacca-portrait.png
Chewbacca

Chewbacca
Game-Icon-Lock.png
Unit-Character-Han Solo-portrait.png
Han Solo

Han Solo
Unit-Character-R2-D2-portrait.png
R2-D2

R2-D2
Unit-Character-C-3PO-portrait.png
C-3PO

C-3PO
Unit-Character-Obi-Wan Kenobi (Old Ben)-portrait.png
Obi-Wan Kenobi (Old Ben)

Obi-Wan Kenobi (Old Ben)
Unit-Character-Threepio & Chewie-portrait.png
Threepio & Chewie

Threepio & Chewie





1,2,3