Difference between revisions of "Template:Userbox Server"
From Ouroboros Portal
m (nope, no Tl template without nowiki tags) |
m (changed default hero/villain icon ''again'') |
||
Line 1: | Line 1: | ||
<div style="float: left; border: solid #4169E1 1px; margin: 1px;"> | <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;" | {{#if: {{{3|}}} | {{{3}}} | {{#ifeq: {{{1}}} | Heroes | [[Image: | + | | style="width: 45px; height: 45px; background: white; text-align: center;" | {{#if: {{{3|}}} | {{{3}}} | {{#ifeq: {{{1}}} | Heroes | [[Image:Badge defeatstatesman.png]] | {{#ifeq: {{{1}}} | Villains | [[Image:Badge defeatrecluse.png]] | [[Image:Power_Missing.png]] }} }} }} |
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em;" | This user plays City of {{{1}}} on the '''<font style="font-weight:bold;">[[Servers|{{{2}}}]]</font>''' server. | | style="font-size: 8pt; padding: 4pt; line-height: 1.25em;" | This user plays City of {{{1}}} on the '''<font style="font-weight:bold;">[[Servers|{{{2}}}]]</font>''' server. | ||
|}</div><noinclude> | |}</div><noinclude> | ||
Line 13: | Line 13: | ||
:* '''<nowiki>{{#if: {{{3|}}} | {{{3}}}</nowiki>''' | :* '''<nowiki>{{#if: {{{3|}}} | {{{3}}}</nowiki>''' | ||
:*: ''If third parameter exists, then display the third paratmeter'' | :*: ''If third parameter exists, then display the third paratmeter'' | ||
− | :** '''<nowiki> | {{#ifeq: {{{1}}} | Heroes | [[Image: | + | :** '''<nowiki> | {{#ifeq: {{{1}}} | Heroes | [[Image:Badge defeatstatesman.png]] </nowiki>''' |
:**: ''if third parameter does not exist, attempt to replace with a default 'hero' icon, based on first parameter'' | :**: ''if third parameter does not exist, attempt to replace with a default 'hero' icon, based on first parameter'' | ||
− | :*** '''<nowiki> | {{#ifeq: {{{1}}} | Villains | [[Image: | + | :*** '''<nowiki> | {{#ifeq: {{{1}}} | Villains | [[Image:Badge defeatrecluse.png]]</nowiki>''' |
:***: ''if not heroes, try villains'' | :***: ''if not heroes, try villains'' | ||
:**** '''<nowiki> | [[Image:Power_Missing.png]]</nowiki>''' | :**** '''<nowiki> | [[Image:Power_Missing.png]]</nowiki>''' |
Revision as of 13:41, 12 March 2007
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:Badge defeatstatesman.png]]
- if third parameter does not exist, attempt to replace with a default 'hero' icon, based on first parameter
- | {{#ifeq: {{{1}}} | Villains | [[Image:Badge defeatrecluse.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]]}} |
|