Difference between revisions of "Template:Gametip/doc"
m |
m |
||
Line 1: | Line 1: | ||
− | The Gametip template creates a text box containing a general tip for the game. Tips can be Hero-specific, Villain-specific, or generic. | + | The Gametip template creates a text box containing a general tip for the game. Tips can be Hero-specific, Villain-specific, or generic. Switch statements are used to alter the background and text colors of the boxes depending on the game specified in the template call. |
+ | |||
+ | Hero-specific tips will appear in blue boxes with white text and an City of Heroes icon. | ||
+ | |||
+ | Villain-specific tips will appear in red boxes with white text and an City of Villains icon. | ||
+ | |||
+ | Generic tips which apply to both games will appear in gray boxes with black text and an icon that is a hybrid of the City of Heroes and City of Villains icons. | ||
==Syntax== | ==Syntax== | ||
Line 9: | Line 15: | ||
'''game_id''' | '''game_id''' | ||
: Indicates whether the tip is specific to Heroes, specific to Villains, or generic. | : Indicates whether the tip is specific to Heroes, specific to Villains, or generic. | ||
− | :* For Hero-specific tips, set this value to '''hero'''. | + | :* For Hero-specific tips, set this value to '''h''', '''hero''', or '''heroes'''. |
− | :* For Villain-specific tips, set this value to '''vill'''. | + | :* For Villain-specific tips, set this value to '''v''', '''vill''', or '''villains'''. |
− | :* For Generic tips, set this value to '''both'''. | + | :* For Generic tips, set this value to '''x''', or '''both'''. If an undefined values is used, the template will default to Generic. |
'''tip_text''' | '''tip_text''' |
Revision as of 19:12, 17 July 2007
The Gametip template creates a text box containing a general tip for the game. Tips can be Hero-specific, Villain-specific, or generic. Switch statements are used to alter the background and text colors of the boxes depending on the game specified in the template call.
Hero-specific tips will appear in blue boxes with white text and an City of Heroes icon.
Villain-specific tips will appear in red boxes with white text and an City of Villains icon.
Generic tips which apply to both games will appear in gray boxes with black text and an icon that is a hybrid of the City of Heroes and City of Villains icons.
Syntax
{{Gametip | game=game_id | tip=tip_text}}
where:
game_id
- Indicates whether the tip is specific to Heroes, specific to Villains, or generic.
- For Hero-specific tips, set this value to h, hero, or heroes.
- For Villain-specific tips, set this value to v, vill, or villains.
- For Generic tips, set this value to x, or both. If an undefined values is used, the template will default to Generic.
tip_text
- The text of the game tip.
Examples
{{Gametip|game=hero|tip=This will create a Hero-specific game tip.}}
{{Gametip|game=vill|tip=This will create a Villain-specific game tip.}}
{{Gametip|game=both|tip=This will create a generic game tip.}}