Template:Gametip: Difference between revisions

From Unofficial Homecoming Wiki
Jump to navigation Jump to search
imported>Konoko
(test edit)
imported>Konoko
(Undo test edit. Why o why does switch break it?)
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="margin: 0.5em;">
<div style="margin: 0.5em;">
{| style="text-align:center; border: 1px solid #000000; border-collapse: collapse; {{#switch: {{#lc:{{{game|}}}}}
{| style="text-align:center; border: 1px solid #000000; border-collapse: collapse; {{#ifeq: {{{game}}} | hero |background-color: #82a0be;| {{#ifeq: {{{game}}} | vill |background-color:#ff6f75;|background-color:#CCCCCC;}}}} width:100%;"
|h
|hero
|heroes=background-color: #82a0be;
|v
|vill
|villains=background-color:#ff6f75;
|both
|default=background-color:#CCCCCC;}} width:100%;"
|-  
|-  
|Rowspan=2 Valign=top|{{#switch: {{#lc:{{{game|}}}}}
|Rowspan=2 Valign=top|{{#ifeq: {{{game}}} | hero | [[Image:CoH_Game_Icon.png|left]] | {{#ifeq: {{{game}}} | vill | [[Image:CoV_Game_Icon.png|left]] | [[Image:CoX_Game_Icon.png|left]]}}}} ||  
|h
|hero
|heroes=[[Image:CoH_Game_Icon.png|left]]
|v
|vill
|villains=[[Image:CoV_Game_Icon.png|left]]
|both
|default=[[Image:CoX_Game_Icon.png|left]]}} ||  
|-  
|-  
| style="{{#switch: {{#lc:{{{game|}}}}}
| style="{{#ifeq: {{{game}}} | hero | width:100%;color:black;" | {{#ifeq: {{{game}}} | vill | width:100%;color:black;" | width:100%;color:black;"}}}} | '''{{{tip}}}'''
|h
|hero
|heroes=color:black;"
|v
|vill
|villains=color:black;"
|both
|default=color:black;"}} | '''{{{tip}}}'''
|-
|-
|}
|}

Revision as of 14:32, 17 July 2007