Template:Gametip: Difference between revisions
Jump to navigation
Jump to search
imported>Eabrace (historical) m (still tweaking) |
imported>Konoko (historical) (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" --> | ||
|- {{# | |- <!-- top row, background only | ||
| | -->{{#switch: {{#lc:{{{game|}}}}} | ||
|- {{# | | h | ||
| {{# | | 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> |