Template:Gametip: Difference between revisions

From City of Heroes: Rebirth Wiki
Jump to navigation Jump to search
imported>Eabrace
m (still tweaking)
imported>Konoko
(wow that's a lot of switch statements. I see places where there *could* be cleanup, but it'll still get messy. Background is the same per-game, text color is not. Table code in a switch statement :()
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"
{| border=1 <!-- style="text-align:center; border: 1px solid #000000; border-collapse: collapse" -->
|- {{#ifeq: {{{Game}}} | hero | bgcolor="0060BE" | {{#ifeq: {{{Game}}} | vill | bgcolor="A21B21"| bgcolor="CCCCCC"}}}}
|- <!-- top row, background only
|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]]}}}} ||  
-->{{#switch: {{#lc:{{{game|}}}}}
|- {{#ifeq: {{{Game}}} | hero | bgcolor="0060BE" | {{#ifeq: {{{Game}}} | vill | bgcolor="A21B21"| bgcolor="CCCCCC"}}}}
| h
| {{#ifeq: {{{Game}}} | hero | style="width:100%; color:white" | {{#ifeq: {{{Game}}} | vill | style="width:100%; color:white" | style="width:100%; color:black"}}}} |'''{{{Tip}}}'''
| hero = style="background-color: #0060BE;"
| v
| vill
| villain = style="background-color: #A21B21;"
| both
| #default = style="background-color: #CCCCCC;"}}
| rowspan=2 valign=top |<!-- icon, left side, two rows (top background row and text bottom row
-->{{#switch: {{#lc:{{{game|}}}}}
| h
| hero = [[Image:CoH_Game_Icon.png|left]]
| v
| vill
| villain = [[Image:CoV_Game_Icon.png|left]]
| both
| #default = [[Image:CoX_Game_Icon.png|left]]}} ||  
|- <!-- text area, hero/villain have different background color, text is white. both/default is black text on grey background
-->{{#switch: {{#lc:{{{game|}}}}}
| h
| hero = style="background-color: #0060BE;"
| v
| vill
| villain = style="background-color: #A21B21;"
| both
| #default = style="background-color: #CCCCCC;"}}
| {{#switch: {{#lc:{{{game|}}}}}
| h
| hero
| v
| vill
| villain = style="width: 100%; color: white;"
| both
| #default = "width: 100%; color: black;"}} | '''{{{tip}}}'''
|-
|-
|}
|}
</div>
</div>
</includeonly>
<!-- /includeonly -->
<noinclude>{{{{PAGENAME}}/Doc}}</noinclude>
<noinclude>{{{{PAGENAME}}/Doc}}</noinclude>

Revision as of 07:22, 17 July 2007