Difference between revisions of "Template:Infobox international baseball tournament"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (replace {{PAGENAME}} with {{PAGENAMEBASE}} to remove any disambiguation if article name is used as infobox title, using AWB)
imported>Muboshgu
(MOS:ACCESS#Text / MOS:FONTSIZE: "Avoid using smaller font sizes in elements that already use a smaller font size, such as infoboxes, navboxes and reference sections.")
 
Line 28: Line 28:
 
| data4      = {{#if: {{{dates|}}} | {{nowrap | {{{dates|}}} }} }}
 
| data4      = {{#if: {{{dates|}}} | {{nowrap | {{{dates|}}} }} }}
 
| label5    = Teams
 
| label5    = Teams
| data5      = {{{num_teams|}}}{{#if: {{{continents|}}}|&nbsp;<small>(from {{{continents}}} continent{{#ifeq:{{{continents}}}|1| |s}})</small>}}
+
| data5      = {{{num_teams|}}}{{#if: {{{continents|}}}|&nbsp;(from {{{continents}}} continent{{#ifeq:{{{continents}}}|1| |s}})}}
 
| label6    = Venue{{#ifeq:{{{venues}}}|1| |s}}
 
| label6    = Venue{{#ifeq:{{{venues}}}|1| |s}}
| data6      = {{{venues|}}}{{#if:{{{cities|}}}|&nbsp;<small>(in {{{cities}}} host cit{{#ifeq: {{{cities}}}|1|y|ies}})</small>}}
+
| data6      = {{{venues|}}}{{#if:{{{cities|}}}|&nbsp;(in {{{cities}}} host cit{{#ifeq: {{{cities}}}|1|y|ies}})}}
 
| label7    = Defending champions
 
| label7    = Defending champions
 
| data7      = {{#if:{{{defending_champion|}}}|{{bb|{{{defending_champion|}}}|{{{defending_champion_flagvar|}}}}} {{#if:{{{prev_year|}}}|({{{prev_year|}}})}}}}
 
| data7      = {{#if:{{{defending_champion|}}}|{{bb|{{{defending_champion|}}}|{{{defending_champion_flagvar|}}}}} {{#if:{{{prev_year|}}}|({{{prev_year|}}})}}}}
Line 54: Line 54:
 
| Gold medal blank.svg
 
| Gold medal blank.svg
 
}}|20px|right]]
 
}}|20px|right]]
| data10    = {{#if:{{{champion|}}}|{{bb|{{{champion|}}}|{{{champion_flagvar|}}}}}{{#if: {{{num_championships|}}}|{{nowrap|<small> ({{ordinal|{{{num_championships}}}}} title)</small>}} }} }}
+
| data10    = {{#if:{{{champion|}}}|{{bb|{{{champion|}}}|{{{champion_flagvar|}}}}}{{#if: {{{num_championships|}}}|{{nowrap| ({{ordinal|{{{num_championships}}}}} title)}} }} }}
 
| label11    = Champions[[Image:{{#switch: {{{medal_type|}}}
 
| label11    = Champions[[Image:{{#switch: {{{medal_type|}}}
 
| world major
 
| world major
Line 71: Line 71:
 
| Gold medal blank.svg
 
| Gold medal blank.svg
 
}}|20px|right]]
 
}}|20px|right]]
| data11    = {{#if:{{{champion_other|}}}|{{{champion_other}}}{{#if: {{{num_championships|}}}|{{nowrap|<small> ({{ordinal|{{{num_championships}}}}} title)</small>}} }} }}
+
| data11    = {{#if:{{{champion_other|}}}|{{{champion_other}}}{{#if: {{{num_championships|}}}|{{nowrap| ({{ordinal|{{{num_championships}}}}} title)}} }} }}
 
| label12    = Runner-up[[Image:{{#switch: {{{medal_type|}}}
 
| label12    = Runner-up[[Image:{{#switch: {{{medal_type|}}}
 
| world major
 
| world major
Line 150: Line 150:
 
| data19    = {{{games|}}}
 
| data19    = {{{games|}}}
 
| label20    = Attendance
 
| label20    = Attendance
| data20    = {{#if:{{{attendance|}}}|{{formatnum: {{{attendance|0}}}}}{{#if:{{{games|}}}|&nbsp;<small>({{formatnum: {{#expr: {{{attendance|0}}} /{{{games|1}}} round 0}}}} per game)</small> }} }}
+
| data20    = {{#if:{{{attendance|}}}|{{formatnum: {{{attendance|0}}}}}{{#if:{{{games|}}}|&nbsp;({{formatnum: {{#expr: {{{attendance|0}}} /{{{games|1}}} round 0}}}} per game) }} }}
 
| label21    = Best batting average
 
| label21    = Best batting average
 
| data21    = {{#if:{{{best_avg_hitter|}}}|{{nowrap|{{{best_avg_hitter|}}} {{#if:{{{best_avg|}}}|({{{best_avg|}}})}}}}}}
 
| data21    = {{#if:{{{best_avg_hitter|}}}|{{nowrap|{{{best_avg_hitter|}}} {{#if:{{{best_avg|}}}|({{{best_avg|}}})}}}}}}
Line 164: Line 164:
 
| data26    = {{{mvp|}}}
 
| data26    = {{{mvp|}}}
  
| below      = {{#if:{{{prev_edition|}}}|{{align|left|&larr; {{{prev_edition|}}} }}}}{{#if:{{{next_edition|}}}|{{align|right|{{{next_edition|}}} &rarr; }}}}{{#if:{{{updated|}}}|{{#if:{{{prev_edition|}}}|<br />|{{#if:{{{next_edition|}}}|<br />}}}}<small>Last updated on {{{updated}}}</small> }}
+
| below      = {{#if:{{{prev_edition|}}}|{{align|left|&larr; {{{prev_edition|}}} }}}}{{#if:{{{next_edition|}}}|{{align|right|{{{next_edition|}}} &rarr; }}}}{{#if:{{{updated|}}}|{{#if:{{{prev_edition|}}}|<br />|{{#if:{{{next_edition|}}}|<br />}}}}Last updated on {{{updated}}} }}
 
}}<noinclude>{{documentation}}</noinclude>
 
}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 21:12, 7 July 2018

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

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

Usage

Template:Parameter names example

{{Infobox international baseball tournament
| tourney_name = <!-- blank, if tournament name is like PAGE NAME -->
| year = <!-- to have "2009 World Cup" -->
| year_rear = <!-- to have "World Cup 2009" -->
| other_titles = 
| image = 
| size = 
| caption =
| city =  
| country = 
| dates = 
| num_teams = 
| continents = 
| venues = 
| cities = 
| defending_champion = 
| defending_champion_other = 
| prev_year = 
| champion = <!-- automatically wraps into {{bb}} template -->
| champion_other = <!-- use instead if the team is not in {{bb}} (enter your own code) -->
| num_championships = 
| second = <!-- automatically wraps into {{bb}} template -->
| second_other = <!-- use instead if the team is not in {{bb}} (enter your own code) -->
| third = <!-- automatically wraps into {{bb}} template -->
| third_other = <!-- use instead if the team is not in {{bb}} (enter your own code) -->
| fourth = <!-- automatically wraps into {{bb}} template -->
| fourth_other = <!-- use instead if the team is not in {{bb}} (enter your own code) -->
| medal_type = <!-- options: world major, world minor, world cup, world baseball classic, olympic, africa, america, asia, australia, europe, north america, south america - defaults to blank -->
| games = 
| attendance = 
| best_avg_hitter = 
| best_avg = 
| most_hr_hitter = 
| most_hr = 
| most_sb_runner = 
| most_sb = 
| best_era_pitcher = 
| best_era = 
| most_k_pitcher = 
| most_k = 
| mvp = 
| updated =
| prev_edition =
| next_edition =
}}

Example

2009 Baseball World Cup
Amateur World Series (1938-1986)
No image.svg
2009 Baseball World Cup official logo
Tournament details
Host countries Czech Republic
 Spain
 Sweden
 Russia
 Germany
 Netherlands
 Italy
Dates September 9 – September 27
Teams22 (from 5 continents)
Venues25 (in 25 host cities)
Defending champions United States (2007)
Final positions
Champions
Gold medal world centered.svg
 Cuba (Template:Ordinal title)
Runner-up
Silver medal world centered.svg
 South Korea
Third place
Bronze medal world centered.svg
 Japan
Fourth place Team USA
Tournament statistics
Games played106
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox international baseball tournament
| tourney_name = Baseball World Cup
| year = 2009
| other_titles = Amateur World Series (1938-1986)
| image = No image.svg
| size = 200px
| caption = 2009 Baseball World Cup official logo
| country = Czech Republic
| country2 = Spain
| country3 = Sweden
| country4 = Russia
| country5 = Germany
| country6 = Netherlands
| country7 = Italy
| dates = September 9 – September 27
| num_teams = 22
| continents = 5
| venues = 25
| cities = 25
| defending_champion = United States
| prev_year = 2007
| champion = Cuba
| num_championships = 26
| second = South Korea
| third = Japan
| fourth_other = {{bb|USA|name=Team USA}}
| medal_type = world cup
| games = 106
}}