Template:Infobox individual darts tournament/doc: Difference between revisions
thedartswiki>Aidan721 No edit summary |
m (1 revision imported) |
(No difference)
| |
Latest revision as of 15:49, 25 April 2023
{{#ifeq:doc |doc
|
{{#ifeq:show |show
|
| Template:Strong for Template:Infobox individual darts tournament{{#if:||.}} It contains usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Template |User |template template page |{{#if:Template |template page|article}}}}}}}}. |
}}{{#if: |
| {{#ifexist:Template:Infobox individual darts tournament
| [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
|
}}
}}
|
}}
| This template {{#if:|sometimesTemplate:Sp}}adds an automatically generated short description{{#if:|Template:Sp({{{category}}})|}}{{#if:|Template:Space{{{conditions}}}}}. If the automatic short description is not optimal, replace it by adding {{Short description}} at the top of the article. |
{{#ifeq:doc|Infobox individual darts tournament|[[Category:Templates that generate short descriptions{{#if:|Template:Spfor {{{category}}}|}}]]|}}
Usage[edit source]
| {{{tournament_name}}} | |||
|---|---|---|---|
| [[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}]] | |||
| Tournament information | |||
| Dates | {{{dates}}} | ||
| Venue | {{{venue}}} | ||
| Location | {{{location}}} | ||
| Country | {{{country}}} | ||
| Established | {{{establishment}}} | ||
| {{#if:|Organization(s)|Organisation(s)}} | {{#if:|{{{organization}}}|{{{organisation}}}}} | ||
| Format | {{{format}}} | ||
| Prize fund | {{{prize_fund}}} | ||
| Winner's share | {{{winners_share}}} | ||
| Nine-dart finish | {{{nine_dart}}} | ||
| High checkout | {{{high_checkout}}} | ||
| {{#if:{{{winner}}}|Champion(s)}} | |||
| {{{winner}}} | |||
{{#if: {{{prev}}}{{{next}}}
|
| |||
{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{#ifeq:Infobox individual darts tournament/doc|Infobox||{{#ifeq:docdocd|Infobox|[[Category:Infobox templates|]]}}}} | other | #default =
}}{{#ifeq:darts tournament|none||
}}{{#ifeq:{{{pagetype}}}|Disambiguation pages||{{#ifeq:template|exclude||{{#ifeq:{{#switch: 10 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 100 | 101 | 118 | 119 | 828 | 829 | = exclude|#default=}}|exclude||}}}}}}{{#ifexpr: 16>100 |}}{{#if:Darts tournament||}}{{#ifeq:0|1
|{{#switch: Darts |c. |gTLD |iMac |iOS |iOS, |iPad |iPhone |iTunes |macOS |none |pH |pH-dependent= |#default={{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = }}{{#ifeq:doc|testcases|CATEGORY APPLIED|}}}} | }}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = }}
{{Infobox individual darts tournament
| tournament_name =
| image =
| image_size =
| alt =
| dates =
| venue =
| location =
| country =
| establishment =
| organisation =
| format =
| prize_fund =
| winners_share =
| nine_dart =
| high_checkout =
| winner =
| prev =
| next =
}}
Parameters[edit source]
Some parameters are required.
Required[edit source]
- tournament_name or name
- The full name of the tournament.
- location
- In what town/city the tournament is held.
- country
- In what country the tournament is held.
Optional[edit source]
- image
- image_size or imagesize
- alt
- The logo of the tournament. Use the full image syntax, including the [[File:]] markup, a size, and alt text. Do not use the "thumb" or "frame" attributes.
- dates
- The start and end date.
- venue
- The name of the place where the tournament is held.
- establishment
- organisation or organization
- The abbreviated version of the organisation that runs the tournament (e.g. PDC, BDO).
- format
- The format of the games (legs/sets).
- prizefund
- The prize pool for the tournament.
- winners_share
- The amount of money for winning the tournament.
- nine_dart
- If a nine dart finish is hit. See example for layout. Leave blank if there isn't a nine darter.
- high_checkout
- The highest checkout of the tournament. See example for layout.
- winner
- The winner of the tournament (include flagicon).
- prev
- next
Example[edit source]
| 2010 Sponsor Tournanment | |||
|---|---|---|---|
| Tournament information | |||
| Dates | 28 July – 1 August | ||
| Venue | Template Arena | ||
| Location | Template City | ||
| Country | Template Country | ||
| {{#if:|Organization(s)|Organisation(s)}} | {{#if:|{{{organization}}}|TEO}} | ||
| Format | Legs | ||
| Prize fund | £100,000,001 | ||
| Winner's share | £1,000,000 | ||
| Nine-dart finish | Tim Template vs Tom Template | ||
| High checkout | 170 – Tom Template vs Tim Template | ||
{{#if:{{safesubst:#ifeq: {{safesubst:#switch:
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no }}|yes|{{safesubst:#ifexist: Template: Country data ENG|[[File:{{safesubst:#if:Flag of England.svg|Flag of England.svg|Flag placeholder.svg}}|{{safesubst:#if:||{{safesubst:#if:|23x15px|23x15px}}}}|border |alt=England|link=England]]|}}|[[File:{{safesubst:#if:Flag of England.svg|Flag of England.svg|Flag placeholder.svg}}|{{safesubst:#if:||{{safesubst:#if:|23x15px|23x15px}}}}|border |alt=England|link=England]]{{safesubst:#ifexist: Template:Country data ENG||{{safesubst:#switch: {{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#if:
|
{{safesubst:#ifeq:|
| talk
|
}}
|
{{safesubst:#ifeq:template|template talk
| talk
| template
}}
}}
}}
| showall = showall
| main
| = 2
| talk = 1
| user = 1
| wikipedia = 2
| file
| image = 2
| mediawiki = 2
| template = 2
| help = 2
| category = 2
| portal = 2
| draft = 2
| other
| #default = 2
}}
| 1 = | 2 = | 3 = | 4 = | 5 = | 6 = | 7 = | 8 = | 9 = | 10 = | 11 = | 12 = | 13 = | showall = }}}}}} Tim Template|Champion(s)}} | |||
{{safesubst:#ifeq: {{safesubst:#switch:
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no }}|yes|{{safesubst:#ifexist: Template: Country data ENG|[[File:{{safesubst:#if:Flag of England.svg|Flag of England.svg|Flag placeholder.svg}}|{{safesubst:#if:||{{safesubst:#if:|23x15px|23x15px}}}}|border |alt=England|link=England]]|}}|[[File:{{safesubst:#if:Flag of England.svg|Flag of England.svg|Flag placeholder.svg}}|{{safesubst:#if:||{{safesubst:#if:|23x15px|23x15px}}}}|border |alt=England|link=England]]{{safesubst:#ifexist: Template:Country data ENG||{{safesubst:#switch: {{safesubst:#switch:
{{safesubst:#if:
| {{{demospace}}}
| {{safesubst:#if:
|
{{safesubst:#ifeq:|
| talk
|
}}
|
{{safesubst:#ifeq:template|template talk
| talk
| template
}}
}}
}}
| showall = showall
| main
| = 2
| talk = 1
| user = 1
| wikipedia = 2
| file
| image = 2
| mediawiki = 2
| template = 2
| help = 2
| category = 2
| portal = 2
| draft = 2
| other
| #default = 2
}}
| 1 = | 2 = | 3 = | 4 = | 5 = | 6 = | 7 = | 8 = | 9 = | 10 = | 11 = | 12 = | 13 = | showall = }}}}}} Tim Template | |||
{{#if: 20092011
|
| |||
{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|Template
| template
| other
}}
}}
| template = {{#ifeq:Infobox individual darts tournament/doc|Infobox||{{#ifeq:docdocd|Infobox|[[Category:Infobox templates|]]}}}} | other | #default =
}}{{#ifeq:darts tournament|none||
}}{{#ifeq:{{{pagetype}}}|Disambiguation pages||{{#ifeq:template|exclude||{{#ifeq:{{#switch: 10 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 100 | 101 | 118 | 119 | 828 | 829 | = exclude|#default=}}|exclude||}}}}}}{{#ifexpr: 16>100 |}}{{#if:Darts tournament||}}{{#ifeq:0|1
|{{#switch: Darts |c. |gTLD |iMac |iOS |iOS, |iPad |iPhone |iTunes |macOS |none |pH |pH-dependent= |#default={{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = }}{{#ifeq:doc|testcases|CATEGORY APPLIED|}}}} | }}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Template|
| main
| other
}}
}}
| main = | other | #default = }}
{{Infobox individual darts tournament
| tournament_name = 2010<br />Sponsor<br />Tournanment
| image =
| image_size =
| alt =
| dates = 28 July – 1 August
| venue = [[Template Arena]]
| location = [[Template City]]
| country = [[Template Country]]
| establishment =
| organisation = [[Template Example Organisation|TEO]]
| format = Legs
| prize_fund = [[Pound sterling|£]]100,000,001
| winners_share = £1,000,000
| nine_dart = [[Tim Template]]<br />''vs [[Tom Template]]''
| high_checkout = '''170''' – [[Tom Template]]<br />''vs [[Tim Template]]''
| winner = {{flagicon|ENG}} [[Tim Template]]
| prev = [[Link to article on the previous edition|2009]]
| next = [[Link to article on the following edition|2011]]
}}
See also[edit source]