Difference between revisions of "Template:Infobox darts tournament/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (→‎Parameters: formatting)
imported>Zyxw
(add Parameter names example, misc formatting)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- PLEASE ADD CATEGORIES AT THE BOTTOM OF THIS PAGE -->
  
=== Usage ===
+
== Usage ==
<pre>
+
{{Parameter names example | name | tournament_name | image | image_size | imagesize | alt | dates | venue | location | country | establishment | organization | organisation | format | prizefund | prize_fund | month_played | final year | final_year | Current Champion | current_champion | Final Champion | final_champion }}
 +
 
 +
<pre style="overflow: auto;">
 
{{Infobox darts tournament
 
{{Infobox darts tournament
 
| tournament_name  =  
 
| tournament_name  =  
 
| image            =  
 
| image            =  
 +
| image_size      =
 +
| alt              =
 +
| dates            =
 
| venue            =  
 
| venue            =  
 
| location        =  
 
| location        =  
Line 20: Line 25:
 
}}
 
}}
 
</pre>
 
</pre>
 +
{{clear}}
  
=== Parameters ===
+
== Parameters ==
 
Some parameters are required.
 
Some parameters are required.
==== Required ====
+
=== Required ===
 
; tournament_name: The full name of the tournament.
 
; tournament_name: The full name of the tournament.
 
; location: In what town/city the tournament was held for the previous tournament.
 
; location: In what town/city the tournament was held for the previous tournament.
Line 29: Line 35:
 
; establishment: The year of the first tournament
 
; establishment: The year of the first tournament
 
; organisation: The abbreviated version of the organisation that runs the tournament (e.g. PDC, BDO)
 
; organisation: The abbreviated version of the organisation that runs the tournament (e.g. PDC, BDO)
==== Optional ====
+
=== Optional ===
; image: The logo of the tournament. Use the full image syntax, including the <nowiki>[[File:]]</nowiki> markup, a size, and [[WP:ALT|alt text]]. Do not use the "thumb" or "frame" attributes.
+
; image
 +
; image_size
 +
; alt
 +
: The logo of the tournament. Use the full image syntax, including the <nowiki>[[File:]]</nowiki> markup, a size, and [[WP:ALT|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 was held for the previous tournament.  
 
; venue: The name of the place where the tournament was held for the previous tournament.  
 
; format: The format of the games (legs/sets).  
 
; format: The format of the games (legs/sets).  
Line 39: Line 49:
 
; Final Champion: <span style="color:red;">'''Note: Only use this parameter if tournament is no longer played.'''</span> The champion of the final year in which the tournament was held.
 
; Final Champion: <span style="color:red;">'''Note: Only use this parameter if tournament is no longer played.'''</span> The champion of the final year in which the tournament was held.
  
=== Example ===
+
== Example ==
 
{{Infobox darts tournament
 
{{Infobox darts tournament
 
| tournament_name  = Sponsor<br>Template Tournament
 
| tournament_name  = Sponsor<br>Template Tournament
 
| image            =  
 
| image            =  
 +
| image_size      =
 +
| alt              =
 +
| dates            =
 
| venue            = [[Template Palace]]
 
| venue            = [[Template Palace]]
 
| location        = [[Template City]]
 
| location        = [[Template City]]
Line 55: Line 68:
 
| Final Champion  =  
 
| Final Champion  =  
 
}}
 
}}
 +
 
<pre style="overflow: auto">
 
<pre style="overflow: auto">
 
{{Infobox darts tournament
 
{{Infobox darts tournament
 
| tournament_name  = Sponsor<br>Template Tournament
 
| tournament_name  = Sponsor<br>Template Tournament
 
| image            =  
 
| image            =  
 +
| image_size      =
 +
| alt              =
 +
| dates            =
 
| venue            = [[Template Palace]]
 
| venue            = [[Template Palace]]
 
| location        = [[Template City]]
 
| location        = [[Template City]]
Line 72: Line 89:
 
}}
 
}}
 
</pre>
 
</pre>
 +
{{clear}}
  
=== See also ===
+
== See also ==
[[Template:Infobox individual darts tournament]]
+
* [[Template:Infobox individual darts tournament]]
  
<includeonly>
+
<includeonly>{{Basepage subpage|
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- Categories go here and interwikis go in Wikidata. -->
 
[[Category:Darts templates]]
 
[[Category:Darts templates]]
 
[[Category:Sports infobox templates]]
 
[[Category:Sports infobox templates]]
  
[[ja:Template:Infobox Darts Tournament]]
+
}}</includeonly>
</includeonly>
 

Revision as of 13:17, 2 December 2018

Usage

Template:Parameter names example

{{Infobox darts tournament
| tournament_name  = 
| image            = 
| image_size       = 
| alt              = 
| dates            = 
| venue            = 
| location         = 
| country          = 
| establishment    = 
| organisation     = 
| format           = 
| prizefund        = 
| month_played     = 
| final year       = 
| Current Champion = 
| Final Champion   = 
}}

Parameters

Some parameters are required.

Required

tournament_name
The full name of the tournament.
location
In what town/city the tournament was held for the previous tournament.
country
In what country the tournament was held for the previous tournament.
establishment
The year of the first tournament
organisation
The abbreviated version of the organisation that runs the tournament (e.g. PDC, BDO)

Optional

image
image_size
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 was held for the previous tournament.
format
The format of the games (legs/sets).
prizefund
The prize pool for the previous tournament.
month_played
Note: Only use this parameter if tournament is still played. The month the tournament was played in the previous year.
final year
Note: Only use this parameter if tournament is no longer played. The final year of which the tournament was held.
Current Champion
Note: Only use this parameter if tournament is still played. The champion of the previous tournament.
Final Champion
Note: Only use this parameter if tournament is no longer played. The champion of the final year in which the tournament was held.

Example

Sponsor
Template Tournament
Tournament information
VenueTemplate Palace
LocationTemplate City
CountryTemplonaian
Established1994
Organisation(s)TEO
FormatSets
Prize fund£100,000,000 (2010)
Month(s) PlayedMarch
Current champion(s)
England Tim Template
{{Infobox darts tournament
| tournament_name  = Sponsor<br>Template Tournament
| image            = 
| image_size       = 
| alt              = 
| dates            = 
| venue            = [[Template Palace]]
| location         = [[Template City]]
| country          = [[Templonaian]]
| establishment    = 1994
| organisation     = [[Template Example Organisation|TEO]]
| format           = [[Set (darts)|Sets]]
| prizefund        = [[Pound sterling|£]]100,000,000 (2010)
| month_played     = March
| final year       = 
| Current Champion = {{flagicon|ENG}} [[Tim Template]]
| Final Champion   = 
}}

See also