Шаблон:ChaseTable — различия между версиями

Материал из GS
Перейти к: навигация, поиск
м
м
Строка 1: Строка 1:
 
<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|&#9664;}}{{#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}}}}}}}}
 
<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|&#9664;}}{{#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|&nbsp;}}{{#vardefine:text2|&nbsp;}}{{#vardefine:text3|&nbsp;}}{{#vardefine:text4|&nbsp;}}{{#vardefine:text5|&nbsp;}}{{#vardefine:text6|&nbsp;}}{{#vardefine:text7|&nbsp;}}}}
+
{{#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|&nbsp;}}{{#vardefine:text2|&nbsp;}}{{#vardefine:text3|&nbsp;}}{{#vardefine:text4|&nbsp;}}{{#vardefine:text5|&nbsp;}}{{#vardefine:text6|&nbsp;}}{{#vardefine:text7|&nbsp;}}}}<table class="wikitable wikicenter">
<table class="wikitable wikicenter">
+
 
<tr>
 
<tr>
 
<td style="{{#var:st_base}}{{#var:style1}}">{{#var:text1}}</td>
 
<td style="{{#var:st_base}}{{#var:style1}}">{{#var:text1}}</td>

Версия 13:12, 8 октября 2012

Использование

<strong>{{ChaseTable|S|C|M}}</strong>

  • S — сумма, стоящая на кону погони, включая валюту;
  • C — номер клетки, в которой находится участник;
  • M — номер клетки, в которой находится преследователь.

Клетки на табло нумеруются от 1 до 7 слева-направо. Также есть невидимые клетки 0 и 8.