Template:Ew-char
From MediaWiki
An attempt to create a right-floating template to list relevant attributes of Earth Wars characters. The information is collapsed so as to not create excessive whitespace in the text around it.
Contains the following parameters:
- name= The character's name. Can be left blank, but probably helpful for characters who are represented twice and can be listed separately, like G1 Optimus Prime/Orion Pax.
- image= Image to be inserted using regular syntax. Upright=1.66 and centered works best. Optional, in the event of no available image.
- vertical= Experimental parameter for images that are thinner than they are tall. Relocates the information boxes to the left of the image. Probably best deprecated.
- link= For adding an external link to the bottom of the template. Uses plaintext; URL and "(character) at Transformers: Earth Wars Wiki" must be added by yourself.
The following information parameters:
- faction= Accepts any text, but probably best to stick or Autobot or Decepticon.
- unit= Standard/Combiner/C.O.M.B.A.T./Weapon/Prime (Titan will be a separate template). Will not render without Faction.
- star= The minimum star rating available for a character. "star" is included by default; just enter a number between 1 and 5.
- class= The character's Class in plaintext: Warrior/Aerial/Gunner/Medic/Special/Triple Changer for Standard bots, Companion/Melee/Shield/Ranged for C.O.M.B.A.T.s. Will not render with Star.
- collection= The character's Collection.
- combiner= If the character is a component of a Combiner. Will not render without Collection.
- components= If the character is a Combiner, list the components.
- behavior= A description of how the character attacks. Currently listed as "Weapon" on certain pages but should probably be replaced due to the introduction of Weapon unit type.
- ability= The name of the character's ability or first ability of multiple.
- abilitydesc= A collapsed description of the ability. Required if the ability parameter is used.
- cost= The cost of using the ability. Optional.
- cooldown= The cooldown after using the ability. Optional.
- ability2= The name of the character's second ability. Using this parameter automatically changes the row heading from "Ability" to "Abilities".
- abilitydesc2=
- cost2=
- cooldown2=
- ability3= The name of the character's third ability, if required.
- abilitydesc3=
- cost3=
- cooldown3=
- ability3= The name of the character's fourth ability, if required.
- abilitydesc3=
- cost3=
- cooldown3=
- passive= The name of the character's passive ability.
- passivedesc= A collapsed description of the passive ability. If the ability has no name, use this instead of the passive parameter.
- combats= What type of C.O.M.B.A.T. Bots the character is compatible with: Companion/Melee/Shield/Ranged.
- cores= The character's Bot Specific Power Cores. Bulleted lists only work with a whole line break between them?
And the following meta information parameters, which render under a separate heading:
- date= The date the character was added to the game. Will not display without counterpart parameter.
- counterpart= The character's counterpart on the opposite faction.
- skins= Plaintext field to enter images and titles. Has its own collapsible toggle (which does not work on this version of MediaWiki, but should if/when we update) and a scroll function. Bulletpoints between skins and upright=1.5 (or smaller) and centered images work best. Same as with Power Cores, bullet lists behave weird.
Examples
Code
{{:User:TheLastGherkin/Rattrap
|name=Optimus Prime
|image=[[File:OptimusPrime-EarthWars.jpg|thumb|center|upright=1.66|Gathering resources is the right of all sentient base builders.]]
|link=[http://wiki.transformersearthwars.com/character:optimus-prime Optimus Prime at Transformers: Earth Wars Wiki]
|faction=Autobot
|unit=Standard
|class=Special
|star=2
|collection=Leaders
|combiner=Optimus Maximus
|behavior=Optimus Prime fires a shot from his Ion Blaster before engaging a defense and attacking it with his energon axe.
|ability=Inspiring Charge
|abilitydesc=Rally Autobots to engage the target, then charge in dealing damage to the target and damaging walls along the way.
|cost=5 ability points +2 for reuses.
|passivedesc=Shoots enemies at a distance every 5 seconds.
|combats=Melee, Minion
|cores=*'''Matrix of Leadership'''
*'''G1 Optimus Prime'''
|date=At launch
|counterpart=Megatron
|skins=*WFC Optimus Prime
*Shattered Glass Optimus Prime
[[File:OptimusPrime-EarthWars.jpg|thumb|center|upright=1.5|You could put images here, if we had any.]]
*Holiday 2022 Optimus Prime
*Armada Optimus Prime
[[File:OptimusPrime-EarthWars.jpg|thumb|center|upright=1.5|This one's down here to demonstrate scrolling.]]
}}
Result
This template works like an image, floating alongside text, and interacts with {{-}} and {{--}} in the same way.


