Difference between revisions of "Template:Userbox Server"
From Ouroboros Portal
m (programming update.) |
(attempting to tweak it so that abnormal games like City of Moonmen will work again) |
||
Line 32: | Line 32: | ||
| cox | | cox | ||
| hv | | hv | ||
− | | #default = both City of Heroes and Villains}} on the '''<font style="font-weight:bold;">[[Servers|{{{2}}}]]</font>''' server. | + | | #default = {{#if:{{{1|}}}|City of {{{1}}}|both City of Heroes and Villains}}}} on the '''<font style="font-weight:bold;">[[Servers|{{{2}}}]]</font>''' server. |
|}</div><noinclude> | |}</div><noinclude> | ||
{{clr}} | {{clr}} |
Revision as of 17:10, 8 July 2007
This user plays both City of Heroes and Villains on the {{{2}}} server. |
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, always links to the Servers article. Will be 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 paramter 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}} |
| ||
{{Userbox Server|Villains|Virtue}} |
| ||
{{Userbox Server|Villains|Freedom|[[Image:Skill power invent.png]]}} |
| ||
{{Userbox Server|Moonmen|Pinnacle}} |
| ||
{{Userbox Server|Zeroes|Elysium|[[Image:ArcticMastery BlockOfIce.png]]}} |
|