Difference between revisions of "Template:Userbox Server/doc"
From Ouroboros Portal
(copying from template page) |
m |
||
(3 intermediate revisions by 3 users not shown) | |||
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, always links to the [[Servers]] article. '' | + | ** 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 | + | ** 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. | * Both the first and third parameters use the same #switch statement to replace text/images. | ||
== Example == | == Example == | ||
Line 36: | Line 36: | ||
|} | |} | ||
<includeonly> | <includeonly> | ||
− | [[Category:Userbox Templates|Server | + | [[Category:Userbox Templates|Server]] |
− | </includeonly> | + | </includeonly><noinclude> |
+ | [[Category:Template documentation]] | ||
+ | </noinclude> |
Latest revision as of 18:45, 8 August 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}} |
| ||
{{Userbox Server|Villains|Virtue}} |
| ||
{{Userbox Server|CoH/V|Justice}} |
| ||
{{Userbox Server|vh|Liberty}} |
| ||
{{Userbox Server|Villains|Freedom|[[Image:Skill power invent.png]]}} |
| ||
{{Userbox Server|Moonmen|Pinnacle}} |
| ||
{{Userbox Server|Zeroes|Elysium|[[Image:ArcticMastery BlockOfIce.png]]}} |
|