Difference between revisions of "Template:DefaultTable"

From Game Detectives Wiki
Jump to: navigation, search
[checked revision][checked revision]
 
(41 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
| style="border-color: black; background-color: #fff; text-align: left;" class="matty" | {{{1}}}
+
| style="width: auto; max-width: 600px; border-color: black; text-align: left; padding-right: 25px;" id="tableCol1-{{#var:x}}" | {{{1}}}
| {{#switch:{{{2}}}|Completed=style="text-align:center; background-color: #aaffaa; border-color: black;"|Active=style="text-align:center; background-color: #5ac3ec; border-color: black;"|Discontinued=style="text-align:center; background-color: #fb5757; border-color: black;"|On Hold=style="text-align:center; background-color: #F37338; border-color: black;"|style&equals;"text-align:center; border-color: black;"}} | '''{{{2}}}'''
+
| style="width: auto; max-width: 160px; font-weight: bold; text-align: center; border-color: black; background-color:#{{#switch:{{{2}}}|Completed=aaffaa|Active=66ccff|Discontinued=ff6666|On Hold=ff6633}}; padding: 2px 20px;" id="tableCol2-{{#var:x}}" | {{{2}}}
| style="border-color: black; background-color: #fff; text-align: center;" class="matty" | {{{3}}} {{#if:{{{4|}}}| & {{{4}}}}} {{#if:{{{5|}}}| & {{{5}}}}}
+
| style="width: auto; max-width: 600px; border-color: black; text-align: center; padding: 2px 25px;" id="tableCol3-{{#var:x}}" | <span class="plainlinks">{{{3}}}</span> {{#if:{{{4|}}}| & <span class="plainlinks">{{{4}}}</span>}} {{#if:{{{5|}}}| & <span class="plainlinks">{{{5}}}</span>}}
| style="border-color: black; background-color: #fff; text-align: center;" class="matty" | {{{6}}}
+
| style="width: auto; max-width: 160px; border-color: black; text-align: center; padding: 2px 15px;" id="tableCol4-{{#var:x}}" | {{{6}}}
| style="border-color: black; background-color: #fff; text-align: center;" class="matty" | {{{7}}}
+
| style="width: auto; max-width: 240px; border-color: black; text-align: center; padding: 2px 5px;" id="tableCol5-{{#var:x}}" | {{{7}}}
|-
+
|- id="tableRow{{#vardefineecho:x|{{#expr:{{#var:x}}+1}}}}" class="{{#if:{{#varexists:x}}|{{#ifeq:{{#expr:{{#var:x}}mod2}}|0|tableRowEven|tableRowOdd}}}}"
 
</includeonly>
 
</includeonly>

Latest revision as of 17:26, 24 February 2019