Module:Tournoi/doc

De Penspinning France Wiki
< Module:Tournoi
Version datée du 6 septembre 2020 à 11:52 par Banz (discussion | contributions) (Premier jet doc)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

Ceci est la page de documentation pour Module:Tournoi

Ce modèle permet de représenter un tournoi à élimination simple. Il est copié du module TeamBracket de Wikipédia.

Usage

{{#invoke: Tournoi | tournoi
| manches         =

| graine-taille   =
| equipe-taille   =
| score-taille    =

| manche1         =
| manche1-groupe1 =
| manche1-graine1 =
| manche1-equipe1 =
| manche1-score1  =
 ...
}}

Liste des paramètres

Les paramètres sont les suivants:

graine-taille – the width of the cells for seeds.
equipe-taille – the width of the cells for team names.
score-taille – the width of the cells for scores.
seeds – set to no to hide all seeds.
compact – set to yes for compact bracket and to disable groups.
RDnThe name of round n.
RDn-groupmThe name of group m in round n.
RDn-seedmThe seed of team m in round n.
RDn-teammThe name of team m in round n.
RDn-scoremThe score of team m in round n.

Parameter descriptions

seed-width
The width of the seed cells in CSS. Examples:
N [em/%/px]
auto
team-width
The width of the team name cells in CSS.
score-width
The width of the score cells in CSS.
RDn
The name of round n. Defaults are "Round of m", ..., "Quarterfinals", "Semifinals", and "Finals", where m is the number of teams in the round.
RDn-groupm
The name of group m in round n. For each round, every set of four teams is classified as a group.
RDn-seedm
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.
RDn-teamm
The name of team m in round n. m is the zero-padded position.
RDn-scorem
The score of team m in round n. m is the zero-padded position.

Examples

No seeds

{{#invoke: TeamBracket | teamBracket
| rounds    = 2
| RD1-seed1 =
| RD1-seed2 =
| RD1-seed3 =
| RD1-seed4 =
}}

Erreur de script : le module « TeamBracket » n’existe pas.

Groups

{{#invoke: TeamBracket | teamBracket
| autoseeds  = y
| rounds     = 3
| RD1-group1 = Pacific
| RD1-group2 = Mountain
| RD2-group1 = West
}}

Erreur de script : le module « TeamBracket » n’existe pas.