Шаблон:ChaseTable — различия между версиями
Материал из GS
м |
|||
(не показаны 11 промежуточных версий 1 участника) | |||
Строка 1: | Строка 1: | ||
− | <includeonly>{{#vardefine:st_player|background-color: #020086;}}{{#vardefine:st_chaser|background-color: #C00002;}}{{#vardefine:st_nobody|background-color: #11D8F5;}} | + | <includeonly>{{#vardefine:st_base|width: 80px; color: white;}}{{#vardefine:st_player|background-color: #020086;}}{{#vardefine:st_chaser|background-color: #C00002;}}{{#vardefine:st_nobody|background-color: #11D8F5;}}{{#vardefine:chaser_text|◀}}{{#vardefine:text1|{{#ifexpr:{{{2}}}=1 and {{{3}}}>{{{2}}}|{{{1}}}|{{#ifexpr:{{{3}}}=1|{{#var:chaser_text}}}}}}}}{{#vardefine:text2|{{#ifexpr:{{{2}}}=2 and {{{3}}}>{{{2}}}|{{{1}}}|{{#ifexpr:{{{3}}}=2|{{#var:chaser_text}}}}}}}}{{#vardefine:text3|{{#ifexpr:{{{2}}}=3 and {{{3}}}>{{{2}}}|{{{1}}}|{{#ifexpr:{{{3}}}=3|{{#var:chaser_text}}}}}}}}{{#vardefine:text4|{{#ifexpr:{{{2}}}=4 and {{{3}}}>{{{2}}}|{{{1}}}|{{#ifexpr:{{{3}}}=4|{{#var:chaser_text}}}}}}}}{{#vardefine:text5|{{#ifexpr:{{{2}}}=5 and {{{3}}}>{{{2}}}|{{{1}}}|{{#ifexpr:{{{3}}}=5|{{#var:chaser_text}}}}}}}} |
− | + | {{#vardefine:text6|{{#ifexpr:{{{2}}}=6 and {{{3}}}>{{{2}}}|{{{1}}}|{{#ifexpr:{{{3}}}=6|{{#var:chaser_text}}}}}}}}{{#vardefine:text7|{{#ifexpr:{{{2}}}=7 and {{{3}}}>{{{2}}}|{{{1}}}|{{#ifexpr:{{{3}}}=7|{{#var:chaser_text}}}}}}}}{{#vardefine:style1|{{#ifexpr:{{{3}}}<=1|{{#var:st_chaser}}|{{#ifexpr:{{{2}}}>=1|{{#var:st_player}}|{{#var:st_nobody}}}}}}}}{{#vardefine:style2|{{#ifexpr:{{{3}}}<=2|{{#var:st_chaser}}|{{#ifexpr:{{{2}}}>=2|{{#var:st_player}}|{{#var:st_nobody}}}}}}}}{{#vardefine:style3|{{#ifexpr:{{{3}}}<=3|{{#var:st_chaser}}|{{#ifexpr:{{{2}}}>=3|{{#var:st_player}}|{{#var:st_nobody}}}}}}}}{{#vardefine:style4|{{#ifexpr:{{{3}}}<=4|{{#var:st_chaser}}|{{#ifexpr:{{{2}}}>=4|{{#var:st_player}}|{{#var:st_nobody}}}}}}}}{{#vardefine:style5|{{#ifexpr:{{{3}}}<=5|{{#var:st_chaser}}|{{#ifexpr:{{{2}}}>=5|{{#var:st_player}}|{{#var:st_nobody}}}}}}}}{{#vardefine:style6|{{#ifexpr:{{{3}}}<=6|{{#var:st_chaser}}|{{#ifexpr:{{{2}}}>=6|{{#var:st_player}}|{{#var:st_nobody}}}}}}}}{{#vardefine:style7|{{#ifexpr:{{{3}}}<=7|{{#var:st_chaser}}|{{#ifexpr:{{{2}}}>=7|{{#var:st_player}}|{{#var:st_nobody}}}}}}}}{{#ifexpr:{{{2}}}={{{3}}}|{{#vardefine:style1|{{#var:st_chaser}}}}{{#vardefine:style2|{{#var:st_chaser}}}}{{#vardefine:style3|{{#var:st_chaser}}}}{{#vardefine:style4|{{#var:st_chaser}}}}{{#vardefine:style5|{{#var:st_chaser}}}}{{#vardefine:style6|{{#var:st_chaser}}}}{{#vardefine:style7|{{#var:st_chaser}}}}{{#vardefine:text1| }}{{#vardefine:text2| }}{{#vardefine:text3| }}{{#vardefine:text4| }}{{#vardefine:text5| }}{{#vardefine:text6| }}{{#vardefine:text7| }}}}<table class="wikitable wikicenter"> | |
− | {{#vardefine:text1|{{#ifexpr:{{{2}}}=1|{{{1}}}|{{#ifexpr:{{{3}}}=1| | + | |
− | + | ||
− | {{#vardefine:style1|{{#ifexpr:{{{3}}}<=1|{{#var:st_chaser}}|{{#ifexpr:{{{2}}}>=1|{{#var:st_player}}|{{#var:st_nobody}}}}}}}} | + | |
− | {{#vardefine:style2|{{#ifexpr:{{{3}}}<=2|{{#var:st_chaser}}|{{#ifexpr:{{{2}}}>=2|{{#var:st_player}}|{{#var:st_nobody}}}}}}}} | + | |
− | + | ||
− | <table class="wikitable wikicenter"> | + | |
<tr> | <tr> | ||
− | <td style=" | + | <td style="{{#var:st_base}}{{#var:style1}}">{{#var:text1}}</td> |
− | <td style=" | + | <td style="{{#var:st_base}}{{#var:style2}}">{{#var:text2}}</td> |
− | <td style=" | + | <td style="{{#var:st_base}}{{#var:style3}}">{{#var:text3}}</td> |
− | <td style=" | + | <td style="{{#var:st_base}}{{#var:style4}}">{{#var:text4}}</td> |
− | <td style=" | + | <td style="{{#var:st_base}}{{#var:style5}}">{{#var:text5}}</td> |
− | <td style=" | + | <td style="{{#var:st_base}}{{#var:style6}}">{{#var:text6}}</td> |
− | <td style=" | + | <td style="{{#var:st_base}}{{#var:style7}}">{{#var:text7}}</td> |
</tr> | </tr> | ||
− | </table></includeonly><noinclude | + | </table></includeonly><noinclude>{{doc}}</noinclude> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | </noinclude> | + |
Текущая версия на 15:36, 16 февраля 2015
Документация
Использование
{{ChaseTable|S|C|M}}
- S — сумма, стоящая на кону погони, включая валюту;
- C — номер клетки, в которой находится участник;
- M — номер клетки, в которой находится преследователь.
Клетки на табло нумеруются от 1 до 7 слева-направо. Также есть невидимые клетки 0 и 8.
{{ChaseTable|999 WMR|5|8}}
999 WMR |
{{ChaseTable|999 WMR|5|7}}
999 WMR | ◀ |
{{ChaseTable|999 WMR|5|6}}
999 WMR | ◀ |
{{ChaseTable|999 WMR|4|6}}
999 WMR | ◀ |
{{ChaseTable|999 WMR|0|2}}
◀ |
{{ChaseTable|999 WMR|2|4}}
999 WMR | ◀ |
{{ChaseTable|999 WMR|2|3}}
999 WMR | ◀ |
{{ChaseTable|999 WMR|2|2}}