Шаблон:Турнир16 до двух поражений. Кубок России 2

Материал из Википедии — свободной энциклопедии
Перейти к навигации Перейти к поиску
1-й раунд верхней сетки2-й раунд верхней сетки3-й раунд верхней сеткиФинал верхней сеткиФинал
1-й раунд нижней сетки2-й раунд нижней сетки3-й раунд нижней сетки4-й раунд нижней сеткиФинал нижней сетки

Документация

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

[править код]
{{Турнир16 до двух поражений. Кубок России 2
| RD1 =
| RD1-seed1   =
| RD1-team1   =
| RD1-score1  =
 ...
}}

Согласно ВП:РТ, "Избегайте уменьшения размера шрифта в блоках, которые уже используют уменьшенный размер, таких как шаблоны-карточки, навигационные шаблоны, врезки, подписи к изображениям и секции примечаний". Поскольку текст этого шаблона уже уменьшен до 90% от обычного размера, использование шаблона {{Small}} или тегов <small></small> в этом шаблоне приводит к размеру шрифта, который составляет 77% от размера страницы по умолчанию, что значительно ниже минимального значения 85%, указанного в руководстве.

Параметры

[править код]
Параметр Описание По умолчанию
maxround финальный раунд для показа. Этот параметр следует пропустить, если только он не меньше значения по умолчанию, установленного rounds.
minround первый раунд для показа. 1
autocol установите yes, чтобы автоматически установить максимальный раунд для отображения на основе записей. no
col-spacing введите значение в виде простого числа (например, <код>10</код> для 10 пикселей). 5
nowrap установите yes чтобы предотвратить перенос текста. no
seed-width the width of the cells for seeds. Plain numbers are assumed to be in px units (e.g., 25 for 25px 2em for 2em) 25
team-width the width of the cells for team names. Plain numbers are assumed to be in px units (e.g., 200 for 200px or 15em for 15em) 150
score-width the width of the cells for scores. Plain numbers are assumed to be in px units (e.g., 25 or 25px 2em for 2em) 25
seeds set to yes to show seed cells to show for all matches. no
legs the number of legs for all rounds. Use RDm-legs to individually set columns. Use RDm-legsk to individually set teams. 1
autolegs set to yes to automatically generate score cells per team. If legs or RDm-legs is used, autolegs will be set to no . no
byes set to yes to hide any team cells that are empty. Use RDm-byes for all matches under column m. Use RDmh-byes for matches under header h only in column m. no
show-bye-paths set to yes to replace any team cells that that are hidden byes with a path. no
aggregate set to yes to add an aggregate score box to each match. Only matches with two or more legs will show the aggregate score box. no
boldwinner set to yes to automatically bold the seed/team/score with the higher score in each match. no
shift vertically shifts all of the entries by the number entered. Use RDm-shift for individual in columns. 0
RDm, RDmh The header text of the (alpha hth) header in column m (e.g., RD1 or RD1a for the first header and RD1b for the second header in column 1).
RDm-seedk The seed of the kth team in column m. Alternatively, use RDmh-seedk for the kth team under header mh.
RDm-teamk The name of the kth team in column m. Alternatively, use RDmh-teamk for the kth team under header mh.
RDm-scorek The score of the kth team in column m. Alternatively, use RDmh-scorek for the kth team under header mh. Append the suffix -l for the lth leg or -agg for the aggregate score.
RDm-textk The text above the kth match in column m. Alternatively, use RDmh-textk for the kth match under header mh.
RD-shade the background color (in hex format, e.g. #ABCDEF) of all headers. Use RDm-shade or RDmh-shade for individual headers. #F2F2F2
RDm-RD(m+1)-path set to no or 0 to omit the paths from round m to round m+1. Note: Does not currently work for paths under subheaders. yes
paramstyle[a] set to numbered change the parameter name style of RDm-textk, RDm-seedk, RDm-teamk, and RDm-scorek to a numbered notation (|1 =,|2 =…). Set |seeds = yes add seeds. indexed
  1. May not be compatible with certain other features.

Иерархия параметров

[править код]
  • Whenever there are multiple headers in a single column, more than one parameter may be assigned to a cell value. For example, in the following bracket, both |RD1-team3 = and |RD1b-team1 = can be used to assign the third team in the first column. By default, entries with subheader prefixes will override those without. In the below example, RD1b-team1 will override any value that has been set by RD1-team3.
Upper round
Lower round
RD1-team3 or RD1b-team1
  • Parameters used in articles take precedence over parameters used in the template itself. For example, suppose ArticleX used the template NTeamBracket, and suppose NTeamBracket had the parameter |RD1-seed1 = 1 set. If ArticleX implemented {{NTeamBracket|RD1-seed1=2}}, then the first team in round 1 would have a seed of 2.

}}

Примеры

[править код]

Без посева

[править код]
{{Турнир16 до двух поражений. Кубок России 2
| seeds = no
| RD1 =
| RD1-seed1   =
| RD1-team1   =
| RD1-score1  =
 ...
}}
{{Турнир16 до двух поражений. Кубок России 2
| RD1-text1 = Text 1
| RD1-text2 = Text 2
| RD2-text1 = Text 3
| RD1 =
| RD1-seed1   =
| RD1-team1   =
| RD1-score1  =
 ...
}}
{{Турнир16 до двух поражений. Кубок России 2
| legs = 2
| RD1-legs = 3
| RD1 =
| RD1-seed1   =
| RD1-team1   =
| RD1-score1-1=
| RD1-score1-2=
| RD1-score1-3=
 ...
}}
{{Турнир16 до двух поражений. Кубок России 2
| legs=2
| aggregate=y
| RD1 =
| RD1-seed1     =
| RD1-team1     =
| RD1-score1-1  =
| RD1-score1-2  =
| RD1-score1-agg=
 ...
}}
{{Турнир16 до двух поражений. Кубок России 2
| RD1-byes = y
| RD1 =
| RD1-seed1   =
| RD1-team1   = Team 1
| RD1-score1  =
| RD1-seed2   =
| RD1-team2   = Team 2
| RD1-score2  =
 ...
}}

Нумерованные параметры

[править код]
{{Турнир16 до двух поражений. Кубок России 2
| paramstyle = numbered
| RD1 =

| Text 1 | Team 1 | S1 | Team 2 | S2
| Text 2 | Team 3 | S3 | Team 4 | S4
 ...
}}

См. также

[править код]