Difference between revisions of "Template:Infobox snooker tournament"

From blackwiki
Jump to navigation Jump to search
imported>Paracel63
(modif to parameter, better suited for the time between tournaments)
imported>Zyxw
m (replace {{PAGENAME}} with {{PAGENAMEBASE}} to remove any disambiguation if article name is used as infobox title, using AWB)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{ infobox
+
{{Infobox
| title      = {{{tournament_name|<includeonly>{{PAGENAME}}</includeonly>}}}
+
| title      = {{{tournament_name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}
 
| headerstyle = background-color: lightgreen
 
| headerstyle = background-color: lightgreen
| data1      = {{{image|}}}
+
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|alt={{{alt|}}}}}
  
 
| header2    = {{#if:{{{venue|}}}{{{location|}}}{{{country|}}}{{{establishment|}}}{{{organisation|}}}{{{format|}}}{{{prizefund|}}}{{{winners_share|}}}{{{final year|}}}|Tournament information}}
 
| header2    = {{#if:{{{venue|}}}{{{location|}}}{{{country|}}}{{{establishment|}}}{{{organisation|}}}{{{format|}}}{{{prizefund|}}}{{{winners_share|}}}{{{final year|}}}|Tournament information}}
Line 16: Line 16:
 
| label7      = {{nowrap|Organisation(s)}}
 
| label7      = {{nowrap|Organisation(s)}}
 
| data7      = {{{organisation|}}}
 
| data7      = {{{organisation|}}}
| label8     = Format
+
| label8     = Format
 
| data8      = {{{format|}}}
 
| data8      = {{{format|}}}
 
| label9      = {{nowrap|Total prize fund}}
 
| label9      = {{nowrap|Total prize fund}}
 
| data9      = {{{prizefund|}}}
 
| data9      = {{{prizefund|}}}
| label10   = {{nowrap|Last edition}}
+
| label10     = {{nowrap|Recent edition}}
| data10   = {{{Last edition|}}}
+
| data10     = {{{Recent edition|}}}
| label11     = {{nowrap|Current champion(s)}}
+
| label11     = {{nowrap|Current champion(s)}}
 
| data11      = {{{Current Champion|}}}
 
| data11      = {{{Current Champion|}}}
| label12     = {{nowrap|Final Year}}
+
| label12     = {{nowrap|Final year}}
| data12     = {{{final year|}}}
+
| data12     = {{{final year|}}}
| label13   = {{nowrap|Final champion(s)}}
+
| label13     = {{nowrap|Final champion(s)}}
| data13   = {{{Final Champion|}}}
+
| data13     = {{{Final Champion|}}}
 +
 
 
}}<noinclude>{{doc}}</noinclude>
 
}}<noinclude>{{doc}}</noinclude>

Latest revision as of 02:23, 1 December 2016

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

Template:Parameter names example

{{Infobox snooker tournament
| tournament_name = 
| image = 
| venue = 
| location = 
| country = 
| establishment = 
| organisation = 
| format = 
| prizefund = 
| winners_share = 
| final year = 
| Recent edition = 
| Current Champion = 
| Final Champion = 
}}