Template:Chair query info: Difference between revisions

Undo revision 33793 by Egocarib (talk)
(try to add some formatting)
(Undo revision 33793 by Egocarib (talk))
Line 1: Line 1:
<noinclude>
<noinclude>


Template for showing a single row of chair info in a table. Used with a cargo query on the [[Sitting]] page.
Template for showing chair info in a table. Used with a cargo query on the [[Sitting]] page.


</noinclude><includeonly>
</noinclude><includeonly>
Line 7: Line 7:
| {{favilink|{{{Chair}}}}}
| {{favilink|{{{Chair}}}}}
| style="text-align:center;" | {{{ChairLevel}}}
| style="text-align:center;" | {{{ChairLevel}}}
| style="text-align:center;" | {{#ifexpr:{{formatnum:{{{ChairLevel}}}}} > 1
| {{#ifexpr:{{formatnum:{{{ChairLevel}}}}} > 1
     |<span style="color:#00c420;font-weight:bold;">+4</span>
     |+4
     |{{#ifexpr:{{formatnum:{{{ChairLevel}}}}} > -2
     |{{#ifexpr:{{formatnum:{{{ChairLevel}}}}} > -2
       |<span style="color:#00c420;font-weight:bold;">+
       |+
       |{{#ifexpr:{{formatnum:{{{ChairLevel}}} < -2|<span style="color:#d74200;font-weight:bold;">|<span style="font-weight:bold;">}}
       |
     }}{{#expr:{{formatnum:{{{ChairLevel}}}}} + 2
     }}{{#expr:{{formatnum:{{{ChairLevel}}}}} + 2
     }}</span>
     }}
   }}
   }}
| style="text-align:center;" | {{#ifexpr:{{formatnum:{{{ChairLevel}}}}} > -10
| {{#ifexpr:{{formatnum:{{{ChairLevel}}}}} > -10
     |{{#ifexpr:{{formatnum:{{{ChairLevel}}}}} > 8
     |{{#ifexpr:{{formatnum:{{{ChairLevel}}}}} > 8
       |+1
       |+1