Module:Bracket/doc
| This module depends on the following other modules: |
Wrapper for bracket modules, which can be used in place of the following for reduced Post-expand include size:
- {{2TeamBracket}}
- {{2TeamBracket-Info}}
- {{3TeamBracket-PagePlayoff}}
- {{4TeamBracket}}
- {{4TeamBracket-Consols}}
- {{4TeamBracket-Info}}
- {{4TeamBracket-PagePlayoff}}
- {{4TeamBracket-Stepladder}}
- {{4TeamBracket-Tennis3}}
- {{4TeamBracket-Tennis35}}
- {{4TeamBracket-Tennis5}}
- {{5TeamBracket}}
- {{5TeamBracket-Consols}}
- {{5TeamBracket-Stepladder}}
- {{6TeamBracket}}
- {{6TeamBracket-PagePlayoff}}
- {{7TeamBracket}}
- {{7TeamBracket-Consols}}
- {{7TeamBracket-StepladderToSF}}
- {{8TeamBracket}}
- {{8TeamBracket-2Leg}}
- {{8TeamBracket-Byes}}
- {{8TeamBracket-Compact-Byes}}
- {{8TeamBracket-Compact-NoSeeds-Byes}}
- {{8TeamBracket-Consols}}
- {{8TeamBracket-Double-Stepladder}}
- {{8TeamBracket-Info}}
- {{8TeamBracket-PagePlayoff}}
- {{8TeamBracket-Stepladder}}
- {{8TeamBracket-Tennis3}}
- {{8TeamBracket-Tennis5}}
- {{8TeamBracket-info}}
- {{9TeamBracket}}
- {{10TeamBracket}}
- {{12TeamBracket}}
- {{12TeamBracket-Consols}}
- {{14TeamBracket}}
- {{14TeamBracket-Consols}}
- {{14TeamBracket-Stepladder}}
- {{16TeamBracket}}
- {{16TeamBracket-Byes}}
- {{16TeamBracket-Compact-Archery}}
- {{16TeamBracket-Compact-NoSeeds-Byes}}
- {{16TeamBracket-Compact-Tennis3}}
- {{16TeamBracket-Compact-Tennis3-Byes}}
- {{16TeamBracket-Compact-Tennis5}}
- {{16TeamBracket-Compact-Tennis5-Byes}}
- {{16TeamBracket-Consols}}
- {{16TeamBracket-Info}}
- {{16TeamBracket-Tennis3}}
- {{16TeamBracket-Tennis3-Byes}}
- {{16TeamBracket-Tennis5}}
- {{18TeamBracket}}
- {{24TeamBracket}}
- {{24TeamBracket-Byes}}
- {{24TeamBracket-Byes2}}
- {{24TeamBracket-Info}}
- {{24TeamBracket-NoSeeds}}
- {{32TeamBracket}}
- {{32TeamBracket-Byes}}
- {{32TeamBracket-Compact-NoSeeds-Byes}}
- {{32TeamBracket-Compact-Squash5}}
- {{32TeamBracket-Compact-Tennis3}}
- {{32TeamBracket-Info}}
- {{32TeamBracket-Tennis3}}
- {{64TeamBracket}}
Usage
{{#invoke:Bracket|template_name}}
Example
{{#invoke:Bracket|16TeamBracket-Compact-Tennis3}}
| 1st round | 2nd round | Semifinals | Finals | ||||||||||||||||||||||||
Adding new templates
New templates can be added using the following format:
p['TEMPLATE_NAME'] = function (frame)
return p._teamBracket(frame, 'TEMPLATE_NAME', {ALTERNATIVE_PARAMETER_NAMES}, {PARAMETER_DEFAULTS})
end
- TEMPLATE_NAME is the name of the template without "Template:"
- ALTERNATIVE_PARAMETER_NAMES is an array of custom parameters and the standard parameter of Module:Team bracket that they translate to, in the form
CUSTOM_NAME = "STANDARD_NAME". For example, a template that uses|RD1-group1 = {{{RD1-group1|{{{group1|}}}}}}would havegroup1 = "RD1-group1". There is no need to specify parameters with a leading 0 on the number at the end as an alternative (e.g.RD1-seed01as an alternative forRD1-seed1), as these are handled automatically. Any parameters that start with a number or contain a dash need to be specified as['CUSTOM_NAME'], e.g.['RD1-topseed'] = 'RD1-seed1'. - PARAMETER_DEFAULTS is an array of default parameter values that are used if a parameter is not specified. For example, a template that uses
|RD1 = Quarterfinalswould haveRD1 = "Quarterfinals", or a template that uses|team-width = {{{team-width|125}}}would have['team-width'] = "125". Setbuild = trueto call Module:Build bracket instead of Module:Team bracket. Some parameters are automatically determined based on TEMPLATE-NAME unless explicity specified in PARAMETER_DEFAULTS:roundsis automatically calculated based on the##Teamor##Roundtext present in TEMPLATE-NAME. This does not need to be specified unless an override is needed to the automatically calcualted value.- Templates with
-Tennis##or-Squash##in TEMPLATE-NAME will havesetsset to the value of##. In addition, these templates will have{seeds = "yes", nowrap = "yes"}set. - Templates with
-Compactin TEMPLATE-NAME will automatically default tocompact = "yes". - Templates with
-Infoin TEMPLATE-NAME will automatically appendRD#-datetoRD#and default tobuild = true. - Templates with
-Consols,-PagePlayoff, or-Stepladderin TEMPLATE-NAME will automatically default tobuild = true.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.