Template:Userbox Server: Difference between revisions
Jump to navigation
Jump to search
imported>Konoko (historical) m (learned about default in templates.) |
imported>SaintNicster (historical) (Updating) |
||
(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|{{# | | style="width: 45px; height: 45px; background: white; text-align: center;" | {{{3|{{#switch: {{lc:{{{1}}}}} | ||
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em;" | This user plays | | h | ||
| | | coh | ||
| hero | |||
== | | heroes = [[Image:CoH Game Icon.png|32px]] | ||
| cov | |||
| v | |||
| villain | |||
| villains = [[Image:CoV Game Icon.png|32px]] | |||
| vh | |||
| both | |||
| cohv | |||
| coh/v | |||
| cox | |||
| hv = [[Image:CoX Game Icon.png|32px]] | |||
| #default = [[Image:Power Missing.png]]}}}}} | |||
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em;" | This user plays {{#switch: {{lc:{{{1}}}}} | |||
| h | |||
| coh | |||
| hero | |||
| heroes = City of Heroes | |||
| cov | |||
| | | v | ||
| villain | |||
| | | villains = City of Villains | ||
| | | vh = both City of Villains and Heroes | ||
| both | |||
| | | cohv | ||
| | | coh/v | ||
| | | cox | ||
| | | 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;">[[{{#switch:{{{2}}} | ||
|Exalted | |||
| | |Freedom | ||
|Infinity | |||
|Liberty | |||
|Pinnacle | |||
|Triumph | |||
|Victory | |||
|Champion | |||
|Guardian | |||
|Justice | |||
|Protector | |||
|Virtue | |||
|Defiant | |||
|Union | |||
|Vigilance | |||
|Zukunft=Servers#{{{2}}} | |||
|#default=Servers}}|{{{2}}}]]</font>''' server. | |||
|}</div></includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 00:32, 7 November 2011
[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 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]]}} |
|