Template:Userbox Server
Revision as of 01:20, 10 March 2007 by imported>Konoko (attempt to explain if/then statements)
This user plays City of {{{1}}} on the {{{2}}} server. |
Usage
Three parameters
- first is the game, either Heroes or Villains
- second is the 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 Villians, a 'default' image will be displayed, unless replaced by this third parameter.
- {{#if: {{{3|}}} | {{{3}}}
- If third parameter exists, then display the third paratmeter
- | {{#ifeq: {{{1}}} | Heroes | [[Image:Flight CombatFlight.png]]
- if third parameter does not exist, attempt to replace with a default 'hero' icon, based on first parameter
- | {{#ifeq: {{{1}}} | Villains | [[Image:Ninjitsu NinjaReflexes.png]]
- if not heroes, try villains
- | [[Image:Power_Missing.png]]
- if all else fails, display the missing icon (replace with paragon wiki icon?!?)
- }} }} }}
- close all three if statements
- {{#if: {{{3|}}} | {{{3}}}
{{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]]}} |
|