Template:Team Variation Ships/doc

From SWGoH Wiki
Jump to navigationJump to search


WARNING

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

DOCUMENTATION

This template can be used to graphically show information about different fleet team compositions. This template can display a total of 6 teams with up to 4 substitutes for each reinforcement. 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 Variation Ships|parameters}}, where parameters are place holders for data you send to the template. This template uses named paramters 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 Variation Ships|v1_capital=}}

This template uses the following parameters for teams:

  • v#_ goes at the beginning of each ship parameter where # can be 1-6
  • _capital and _capital_lock
  • _frontline# and _frontline#_lock where # can be 1-3
  • _reinforce# and reinforce#_lock where # can be 1-4
  • _reinforce#_sub# where the # after sub can be 1-4

Only the first v#_ will be demonstrated below. You would use the same format for the other team parameters by just replacing the numbers with the next corresponding number.

Setting teams

All frontline, reinforce, and reinforce_sub positions are optional.

  • v1_capital = The full in-game name of the capital ship.
  • v1_capital_lock = OPTIONAL: Adds a lock to the image
  • v1_frontline1 = The full in-game name of the ship in the starting positions.
  • v1_frontline1_lock = OPTIONAL: Adds a lock to the image
  • v1_reinforce1 = The full in-game name of the ship in the reinforcement positions.
  • v1_reinforce1_lock = OPTIONAL: Adds a lock to the image
  • v1_reinforce1_sub1 = The full in-game name of the ship that can substitute the reinforcement 1 position ship.
  • v1_reinforce1_sub2 = Same as above
  • v1_reinforce1_sub3 = Same as above
  • v1_reinforce1_sub4 = Same as above

Additional Settings

You can set notes for each lineup by adding the lineup#_notes parameter where # should match the v# for the team. FOR TEAM PAGES ONLY: If you are writing a counter for a specific lineup and want to display either the specific lineup for the team or the team being countered you can use the parameter enable_lineup# where # is the v# for the team.

  • lineup1_notes = Any information about the team such as popularity, viability, etc.
  • enable_lineup1 = Will enable semantic properties for the page so it can build an image of the team in counter boxes. Options: y or omit.

Semantic Properties

  • Property: Team Lineup # frontline = Saved as text assigned the value sent in capital, fronline1, frontline2, and frontline3. This is primarily used for getting their images.
  • Property: Team Lineup # reinforcement slot 1 = Saved as text assigned the value sent in reinforce1, reinforce1_sub1, reinforce1_sub2, reinforce1_sub3, reinforce1_sub4. This is primarily used for getting their images.
  • Property: Team Lineup # reinforcement slot 2 = Saved as text assigned the value sent in reinforce2, reinforce2_sub1, reinforce2_sub2, reinforce2_sub3, reinforce2_sub4. This is primarily used for getting their images.
  • Property: Team Lineup # reinforcement slot 3 = Saved as text assigned the value sent in reinforce3, reinforce3_sub1, reinforce3_sub2, reinforce3_sub3, reinforce3_sub4. This is primarily used for getting their images.
  • Property: Team Lineup # reinforcement slot 4 = Saved as text assigned the value sent in reinforce4, reinforce4_sub1, reinforce4_sub2, reinforce4_sub3, reinforce4_sub4. This is primarily used for getting their images.

Use Example

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

{{Team Variation Ships
 |lineup1_notes=
 |v1_capital=
 |v1_capital_lock=
 |v1_frontline1=
 |v1_frontline1_lock=
 |v1_frontline2=
 |v1_frontline2_lock=
 |v1_frontline3=
 |v1_frontline3_lock=
 |v1_reinforce1=
 |v1_reinforce1_sub1=
 |v1_reinforce2=
 |v1_reinforce2_sub1=
 |v1_reinforce3=
 |v1_reinforce3_sub1=
 |v1_reinforce4=
 |v1_reinforce4_sub1=
 |lineup2_notes=
 |v2_capital=
 |v2_capital_lock=
 |v2_frontline1=
 |v2_frontline1_lock=
 |v2_frontline2=
 |v2_frontline2_lock=
 |v2_frontline3=
 |v2_frontline3_lock=
 |v2_reinforce1=
 |v2_reinforce1_sub1=
 |v2_reinforce2=
 |v2_reinforce2_sub1=
 |v2_reinforce3=
 |v2_reinforce3_sub1=
 |v2_reinforce4=
 |v2_reinforce4_sub1=
}}