Difference between revisions of "Template:Userbox Server"

From Ouroboros Portal
Jump to: navigation, search
(Fixed for cohv case and friends; made it obvious when you forget the game name.)
m
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="float: left; border: solid #4169E1 1px; margin: 1px;">
+
<includeonly><div style="float: left; border: solid #4169E1 1px; margin: 1px;">
 
{| cellspacing="0" style="width: 238px; color: #000000; background: #D3D3D3;"
 
{| cellspacing="0" style="width: 238px; color: #000000; background: #D3D3D3;"
 
| style="width: 45px; height: 45px; background: white; text-align: center;" | {{{3|{{#switch: {{lc:{{{1}}}}}
 
| style="width: 45px; height: 45px; background: white; text-align: center;" | {{{3|{{#switch: {{lc:{{{1}}}}}
Line 32: Line 32:
 
| cox
 
| cox
 
| hv = both City of Heroes and Villains
 
| hv = both City of Heroes and Villains
| #default = City of {{{1|<nowiki>{{{1}}}</nowiki>}}}<!-- Has to be a "nowiki" like that; if you just use {{{1}}} it breaks. -->}} on the '''<font style="font-weight:bold;">[[Servers|{{{2}}}]]</font>''' server.
+
| #default = City of {{{1|<nowiki>{{{1}}}</nowiki>}}}<!-- Has to be a "nowiki" like that; if you just use {{{1}}} it breaks. -->}} on the '''<font style="font-weight:bold;">[[paragonwiki:{{#switch:{{{2}}}
|}</div><noinclude>
+
|Freedom
{{clr}}
+
|Infinity
==Usage==
+
|Liberty
Three parameters
+
|Pinnacle
* first is the game
+
|Triumph
** most variants of Heroes, CoH, Villains, COHV will be replaced with "City of Heroes" or "City of Villains" or "City of Heroes/Villains".
+
|Victory
** Other words will replace "City of" with that word.
+
|Champion
* second is the server.
+
|Guardian
** 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''
+
|Justice
* the third parameter is optional. if specified, will replace the image with the one specified.
+
|Protector
** If the first paramter does not match Heroes or Villains, a 'default' image will be displayed, unless replaced by this third parameter.
+
|Virtue
* Both the first and third parameters use the same #switch statement to replace text/images.
+
|Defiant
== Example ==
+
|Union
{|
+
|Vigilance
|-
+
|Zukunft=Servers#{{{2}}}
| <nowiki>{{Userbox Server|Heroes|Champion}}</nowiki>
+
|#default=Servers}}|{{{2}}}]]</font>''' server.
| {{Userbox Server|Heroes|Champion}}
+
|}</div></includeonly><noinclude>{{Documentation}}</noinclude>
|-
+
| <nowiki>{{Userbox Server|Villains|Virtue}}</nowiki>
+
| {{Userbox Server|Villains|Virtue}}
+
|-
+
| <nowiki>{{Userbox Server|Villains|Freedom|[[Image:Skill power invent.png]]}}</nowiki>
+
| {{Userbox Server|Villains|Freedom|[[Image:Skill power invent.png]]}}
+
|-
+
| <nowiki>{{Userbox Server|Moonmen|Pinnacle}}</nowiki>
+
| {{Userbox Server|Moonmen|Pinnacle}}
+
|-
+
| <nowiki>{{Userbox Server|Zeroes|Elysium|[[Image:ArcticMastery BlockOfIce.png]]}}</nowiki>
+
| {{Userbox Server|Zeroes|Elysium|[[Image:ArcticMastery BlockOfIce.png]]}}
+
|-
+
|}
+
[[Category:Userbox Templates]]</noinclude>
+

Latest revision as of 07:20, 5 March 2009

[edit] Documentation

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}}
CoH Game Icon.png This user plays City of Heroes on the Champion server.
{{Userbox Server|Villains|Virtue}}
CoV Game Icon.png This user plays City of Villains on the Virtue server.
{{Userbox Server|CoH/V|Justice}}
CoX Game Icon.png This user plays both City of Heroes and Villains on the Justice server.
{{Userbox Server|vh|Liberty}}
CoX Game Icon.png This user plays both City of Villains and Heroes on the Liberty server.
{{Userbox Server|Villains|Freedom|[[Image:Skill power invent.png]]}}
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]]}}
ArcticMastery BlockOfIce.png This user plays City of Zeroes on the Elysium server.