2 962 octets ajoutés,
16 novembre 2014 à 16:51 Ce modèle génère une représentation visuelle du déroulement de tournois à élimination directe.
== Usage ==
<pre style="overflow:auto">
{{#invoke: TeamBracket | teamBracket
| rounds =
| seed-width =
| team-width =
| score-width =
| RD1 =
| RD1-group1 =
| RD1-seed1 =
| RD1-team1 =
| RD1-score1 =
...
}}
</pre>
== Liste des paramètres ==
: <code>seed-width – </code>la largeur des cellules pour les "seeds".
: <code>team-width – </code>la largeur des cellules pour les noms d'équipe.
: <code>score-width – </code>la largeur des cellules pour les scores.
: <code>RD<sub>n</sub> – </code>Le nom du round ''n''.
: <code>RD<sub>n</sub>-group<sub>m</sub> – </code>Le nom du groupe ''m'' dans le round ''n''.
: <code>RD<sub>n</sub>-seed<sub>m</sub> – </code>Le "seed" de l'équipe ''m'' dans le round ''n''.
: <code>RD<sub>n</sub>-team<sub>m</sub> – </code>Le nom de l'équipe ''m'' dans le round ''n''.
: <code>RD<sub>n</sub>-score<sub>m</sub> – </code>Le score de l'équipe ''m'' dans le round ''n''.
== Description des paramètres ==
''(A traduire.)''
:; ''seed-width''
:: The width of the seed cells in [[CSS]]. Examples:
::: <code>''N'' [em/%/px]</code>
::: <code>auto</code>
:; ''team-width''
:: The width of the team name cells in [[CSS]].
:; ''score-width''
:: The width of the score cells in [[CSS]].
:; ''RD<sub>n</sub>''
:: The name of round ''n''. Defaults are "Round of ''m''", ..., "Quarterfinals", "Semifinals", and "Finals", where ''m'' is the number of teams in the round.
:; ''RD<sub>n</sub>-group<sub>m</sub>''
:: The name of group ''m'' in round ''n''. For each round, every set of four teams is classified as a group.
:; ''RD<sub>n</sub>-seed<sub>m</sub>''
:: The seed of team ''m'' in round ''n''. For round 1, this value defaults to the conventional seed allocation for tournaments. If omitted, the cell is hidden. To hide seeds for round 1, the value must be explicitly set to be empty. ''m'' is the zero-padded position.
:; ''RD<sub>n</sub>-team<sub>m</sub>''
:: The name of team ''m'' in round ''n''. ''m'' is the zero-padded position.
:; ''RD<sub>n</sub>-score<sub>m</sub>''
:: The score of team ''m'' in round ''n''. ''m'' is the zero-padded position.
== Exemples ==
=== Pas de "seeds" ===
<pre style="overflow: auto;">
{{#invoke: TeamBracket | teamBracket
| rounds = 2
| RD1-seed1 =
| RD1-seed2 =
| RD1-seed3 =
| RD1-seed4 =
}}
</pre>
{{#invoke: TeamBracket | teamBracket
| rounds = 2
| RD1-seed1 =
| RD1-seed2 =
| RD1-seed3 =
| RD1-seed4 =
}}
=== Groupes ===
<pre style="overflow: auto;">
{{#invoke: TeamBracket | teamBracket
| rounds = 3
| RD1-group1 = Pacific
| RD1-group2 = Mountain
| RD2-group1 = West
}}
</pre>
{{#invoke: TeamBracket | teamBracket
| rounds = 3
| RD1-group1 = Pacific
| RD1-group2 = Mountain
| RD2-group1 = West
}}
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here, and interwikis go in Wikidata -->
}}</includeonly>