Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Help:Useful Templates

From Paragon Wiki Archive
Revision as of 23:55, 4 March 2006 by StarGeek (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

About Templates

Templates are a way of standardizing content across the wiki. They allow information that is duplicated in several pages to be located and edited in one place. For example, the mission Talk to David Wincott can come from just about any contact, and rather than type that information over and over, it has been created in one place, Template:Mission Hollows, and can then be inserted into any contact with the text, {{Mission Hollows}}.

Templates can also accept parameters, details which change from use to use. An example of this is the Power Template. This simple template takes four parameters, and formats the information into the power entry which is used on most of the enemy pages. Since the format is kept in one place, if, in the future, and new format is decided upon, rather than go through all the enemy pages and redoing their powers, one change to the power template will make those changes in the entire wiki.

Useful Templates

The following templates can be useful in making articles in the wiki but are in no way required and subject to change at any time.

Enemy Templates

Power

This template formats an entry in an enemies power listing in a standarized way.

Format: {{Power|Bullet Image|Power name|Power Effects|Power description}}

  • Bullet image is the image that is associated with the power, scaled to 22 pixels. Example: [[Image:Empathy RecoveryAura.png|22px]]
  • Power Name is the name of the power.
  • Power Effects would be the short description in the top part of the info window. Abbreviations should be fully spelled out.
  • Power Description is the long description in the lower part of the info window. Game terms, like damage or accuracy should not be capitalized.

Player And Temporary Power Detail Box

The details on player and temporary powers is in a box with fixed width text. The following templates can be used to make it easy to line up the secondary information. In order to keep the box effect, any blank line must have a single space to it.

PowerDamage

Format: {{PowerDamage|Damage}}

  • Damage is the level of damage the power does (i.e. Low, Moderate, High).

PowerRecharge

Format: {{PowerRecharge|Recharge Rate}}

  • Recharge rate is the level that the power recharges at (i.e. Slow, Moderate, Long).

PowerMinLevel

Format: {{PowerMinLevel|Level}}

  • Level is the minumum level (and class, if appropriate) that is needed to gain this power. This is the line which will contain the Minimum Level: heading. Additional lines must use the {{PowerSpaces}} template.

PowerDuration

Format: {{PowerDuration|Duration}}

  • Duration is how long or how many charages a power has. This template is mainly used in temporary powers.

PowerEffects

Format: {{PowerEffects|Effects}}

  • Effects is one line of the powers effects. This is the line which will contain the Effects: heading. Additional lines must use the {{PowerSpaces}} template.

PowerEnhancements

Format: {{PowerEnhancements|Enhancement}}

  • Enhancement is one line of the what enhancements the power accepts. This is the line which will contain the Enhancement: heading. Additional lines must use the {{PowerSpaces}} template.

PowerSpaces

Format: {{PowerSpaces|Details}}

  • The PowerSpaces template is used to get extra details to line up with previous lines.

Example entry

Here's an example entry from the Archer power set. Take note that on each of the two blank lines, there is a single space.

{{PowerDamage|High}}
{{PowerRecharge|Moderate}}
{{PowerMinLevel|1 (Blaster)}}
{{PowerSpaces|2 (Defender)}}}

{{PowerEffects|Ranged}}
{{PowerSpaces|Moderate Damage (Lethal)}}

{{PowerEnhancements|Reduce Endurance Cost}}
{{PowerSpaces|Enhance Range}}
{{PowerSpaces|Enhance Recharge Speed}}
{{PowerSpaces|Enhance Damage}}
{{PowerSpaces|Enhance Accuracy}}

And here's how it would appear in the wiki.

Template:PowerDamage Template:PowerRecharge Template:PowerMinLevel Template:PowerSpaces}

Template:PowerEffects Template:PowerSpaces

Template:PowerEnhancements Template:PowerSpaces Template:PowerSpaces Template:PowerSpaces Template:PowerSpaces

Hero Contact Templates

These templates standardize the starting overview line of a hero contact, as well as automatically placing them in the contacts and CoH Contacts categories.

Contact CoH Overview

This template is used on hero contacts who are located in a neighborhood.

Format: {{Contact CoH Overview|Name|Hood|Zone Link|Coord}}

  • Name is the name of the contact.
  • Hood is the neighborhood that the contact is located in. If the contact is outside of a neighborhood, see the next template.
  • Zone Link is a link to the zone the contact is in.
  • Coord is the coordinates of that contact.

Contact CoH Overview2

This template is used on hero contacts who are not located in a neighborhood.

Format: {{Contact CoH Overview|Name|Zone Link|Coord}}

  • Name is the name of the contact.
  • Zone Link is a link to the zone the contact is in.
  • Coord is the coordinates of that contact.

Example entry

{{Contact CoH Overview|Jim Bell|New Corinth|[[Talos Island]]|-705, 225, 6250}}

would result in

Jim Bell is a City of Heroes contact located in the New Corinth neighborhood of Talos Island. Jim Bell's coordinates are (-705, 225, 6250).

Please note that the acutal template was not used in this case in order to prevent this article from ending up in the Contacts category.