Template:Counter Team/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 pages. Any other use will result in the entire page getting deleted by Admins. This only applies to template calls using 5=to.

DOCUMENTATION

This template is used for setting what teams a team is strong against and for displaying what teams are counters to a team. 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 {{Counter Team|parameters}}, where parameters are place holders for data you send to the template.

Parameters

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

To Format

This format is used to set which teams a team page is a counter to.

  • 5 = The format of the template. For to this will use the layout designated for setting a team as a counter to another team. Options: to
  • 3v3 = If the team is 3v3. Options: y or omit.
  • ships = If the team is ships. Options: y or omit.
  • team_name = The name of the team. This should be the name of that teams page minus the Team - in it.
  • type = The tpye of counter it is. Options: Soft Counter, Hard Counter
  • banners = The max possible banners this team gets in GAC.
  • killOrder = The kill order of the team using > < = <= >= signs between the names of the units. If this is omitted it will apply the default kill order specified on the team's page.
  • details = The details of the counter. It should be formatted to include the following sections Substitutes, Zetas, Strategy, Video.
  • video = OPTIONAL: A place to set links for the video. If wanting the video to show up when using 5=for you can add it to the details parameter, however, you will not be able to do it using the [link linkName] and will have to just use the full link address as if it was text. Separate all links with •. Adding to the details section is the recommended setup so it will be seen everywhere.
  • enemy_lineup = FLEET ONLY: Sets the images for the counter to a specific team. Options: Lineup # where number is the assigned number to the lineup on the teams page.

For Format

This format is used to retrieve what teams are counters to a team. It is specifically made to work with a Semantic MediaWiki ask to retrieve the required information and not meant to be called directly from a page.
Characters

  • 1 = The name of the team that can counter it.
  • 2 = The type of counter. Options: Soft Counter, Hard Counter
  • 3 = The max possible banners.
  • 4 = The details for the counter.
  • 5 = Layout format. Has to be set to for.
  • 6 = The lead of the team that can counter.
  • 7 = The ally 1 slot of the team that can counter.
  • 8 = The ally 2 slot of the team that can counter.
  • 9 = The ally 3 slot of the team that can counter.
  • 10 = The ally 4 slot of the team that can counter.
  • 11 = The substitutes of the team that can counter.
  • 12 = The locked team positions that should not be substituted. Options: 1-5 separated by commas and no space
  • 13 = The kill order for the team being countered.
  • 14 = This will hide the name hover from the images. Option: for. Omit to not use.
  • 15 = If the team is 3v3, 5v5, or Fleet. Options: 3v3, ship, 5v5

Ships

  • 1 = The name of the team that can counter it.
  • 2 = The type of counter. Options: Soft Counter, Hard Counter
  • 3 = The max possible banners.
  • 4 = The details for the counter.
  • 5 = Layout format. Has to be set to for.
  • 6 = The capital ship of the team that can counter.
  • 7 = The frontline 1 slot of the team that can counter.
  • 8 = The frontline 2 slot of the team that can counter.
  • 9 = The frontline 3 slot of the team that can counter.
  • 10 = The reinforcement 1 slot of the team that can counter.
  • 11 = The reinforcement 2 slot of the team that can counter.
  • 12 = The reinforcement 3 slot of the team that can counter.
  • 13 = The kill order for the team being countered.
  • 14 = The reinforcement 4 slot of the team that can counter.
  • 15 = If the team is 3v3, 5v5, or Fleet. Options: 3v3, ship, 5v5
  • 16 = The substitutes of the team that can counter.
  • 17 = The locked team positions that should not be substituted. Options: 1-5 separated by commas and no space
  • 18 = This will hide the name hover from the images. Option: for. Omit to not use.

Semantics

All semantics on this page are used to automatically retrieve the information needed in the FOR format.

  • Property: Counter Team = Saved as a Page, assigned the value sent in team_name.
  • Property: team_name counter type = Saved as text, assigned the value sent in type.
  • Property: team_name counter max banners = Saved as text, assigned the value sent in banners
  • Property: team_name counter details = Saved as text, assigned the value sent in details
  • Property: team_name kill order = Saved as text, assigned the value sent in killOrder. If no value was sent for killOrder it will pull the Kill order property from the teams page indicated in team_name.

Use Examples

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

Counter TO

Once again this is used to set the counter to something.

{{Counter Team
 |team_name=Rebels (CLS L)
 |type=Hard Counter
 |banners=55
 |details=<b>Substitutes: </b> ... <br />
<b>Zetas: </b> ... <br />
<b>Strategy: </b> ... <br />
<b>Video: </b> link (Creator) 
 |5=to
}}

Counter FOR

This is used to get the counters to something. It does a Semantic call to look at every page in Category Team and find every page that has the specified Counter team property. It ignores returning the mainLabel and then returns all ? values from the page found. Sort and order are optional and are used to return the results in a specific order. The shown setting will return Hard Counters first and the Soft Counters. Format tells the ask to return results as a template but you can however remove this and it will return it as a table. Template is just setting the template it should use. It is going to take all of the ? values and pass it to the templates parameters in the order they are shown in so it is important they stay just like they are. The HideName options is used if wanting to hide the name popup on the characters.

{{#ask:
 [[Category:Team]]
 [[Counter team::Rebels (CLS L)]]
 |mainlabel=-
 |?Team name
 |?Rebels (CLS L) counter type
 |?Rebels (CLS L) counter max banners
 |?Rebels (CLS L) counter details
 |?Category:Layout # ERROR, for
 |?Team lead #
 |?Team ally 1 #
 |?Team ally 2 #
 |?Team ally 3 #
 |?Team ally 4 #
 |?Team substitutes #
 |?Team lock #
 |?Rebels (CLS L) kill order
 |?Category:HideName # Error, for
 |sort=Rebels (CLS L) counter type
 |order=asc
 |format=template
 |template=Counter Team
}}

{{#ask:
 [[Category:Team Fleet]]
 [[Counter team::Executor (Bounty Hunters)]]
 |mainlabel=-
 |?Team name
 |?Executor (Bounty Hunters) counter type
 |?Executor (Bounty Hunters) counter max banners
 |?Executor (Bounty Hunters) counter details
 |?Category:Layout # ERROR, for
 |?Team capital ship #
 |?Team frontline 1 #
 |?Team frontline 2 #
 |?Team frontline 3 #
 |?Team reinforcement 1 #
 |?Team reinforcement 2 #
 |?Team reinforcement 3 #
 |?Executor (Bounty Hunters) kill order
 |?Team reinforcement 4 #
 |?Category:Team Fleet # ship,na
 |?Team substitutes #
 |?Team lock #
 |?Category:HideName # Error, for
 |sort=Executor (Bounty Hunters) counter type
 |order=asc
 |format=template
 |template=Counter Team
}}