Difference between revisions of "Template:Userbox Server/doc"

From Ouroboros Portal
Jump to: navigation, search
m (2 revisions)
m
Line 6: Line 6:
 
** Other words will replace "City of" with that word.
 
** Other words will replace "City of" with that word.
 
* second is the server.
 
* second is the server.
** no matter which server is entered, it always links to the [[Servers]] article. ''Has been updated with a #switch statement to only link to Servers if the one specified is a valid CoX server''
+
** no matter which server is entered, it always links to the [[ParagonWiki:Servers]] article. ''Has been updated with a #switch statement to only link to Servers if the one specified is a valid CoX server''
 
* the third parameter is optional. if specified, will replace the image with the one specified.
 
* the third parameter is optional. if specified, will replace the image with the one specified.
 
** If the first parameter does not match Heroes or Villains, a 'default' image will be displayed, unless replaced by this third parameter.
 
** If the first parameter does not match Heroes or Villains, a 'default' image will be displayed, unless replaced by this third parameter.

Revision as of 07:21, 5 March 2009

Usage

Three parameters

  • first is the game
    • most variants of Heroes, CoH, Villains, COHV will be replaced with "City of Heroes" or "City of Villains" or "City of Heroes/Villains".
    • Other words will replace "City of" with that word.
  • second is the server.
    • no matter which server is entered, it always links to the ParagonWiki:Servers article. Has been updated with a #switch statement to only link to Servers if the one specified is a valid CoX server
  • the third parameter is optional. if specified, will replace the image with the one specified.
    • If the first parameter does not match Heroes or Villains, a 'default' image will be displayed, unless replaced by this third parameter.
  • Both the first and third parameters use the same #switch statement to replace text/images.

Example

{{Userbox Server|Heroes|Champion}}
32px This user plays City of Heroes on the Champion server.
{{Userbox Server|Villains|Virtue}}
32px This user plays City of Villains on the Virtue server.
{{Userbox Server|CoH/V|Justice}}
32px This user plays both City of Heroes and Villains on the Justice server.
{{Userbox Server|vh|Liberty}}
32px This user plays both City of Villains and Heroes on the Liberty server.
{{Userbox Server|Villains|Freedom|[[Image:Skill power invent.png]]}}
File:Skill power invent.png This user plays City of Villains on the Freedom server.
{{Userbox Server|Moonmen|Pinnacle}}
Power Missing.png This user plays City of Moonmen on the Pinnacle server.
{{Userbox Server|Zeroes|Elysium|[[Image:ArcticMastery BlockOfIce.png]]}}
File:ArcticMastery BlockOfIce.png This user plays City of Zeroes on the Elysium server.