Difference between revisions of "Template:Infobox international baseball tournament"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
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|}}}| | + | | data5 = {{{num_teams|}}}{{#if: {{{continents|}}}| (from {{{continents}}} continent{{#ifeq:{{{continents}}}|1| |s}})}} |
| label6 = Venue{{#ifeq:{{{venues}}}|1| |s}} | | label6 = Venue{{#ifeq:{{{venues}}}|1| |s}} | ||
− | | data6 = {{{venues|}}}{{#if:{{{cities|}}}| | + | | data6 = {{{venues|}}}{{#if:{{{cities|}}}| (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| | + | | 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| | + | | 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|}}}| | + | | data20 = {{#if:{{{attendance|}}}|{{formatnum: {{{attendance|0}}}}}{{#if:{{{games|}}}| ({{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|← {{{prev_edition|}}} }}}}{{#if:{{{next_edition|}}}|{{align|right|{{{next_edition|}}} → }}}}{{#if:{{{updated|}}}|{{#if:{{{prev_edition|}}}|<br />|{{#if:{{{next_edition|}}}|<br />}}}} | + | | below = {{#if:{{{prev_edition|}}}|{{align|left|← {{{prev_edition|}}} }}}}{{#if:{{{next_edition|}}}|{{align|right|{{{next_edition|}}} → }}}}{{#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]]
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
Amateur World Series (1938-1986) | |
---|---|
![]() 2009 Baseball World Cup official logo | |
Tournament details | |
Host countries | ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Dates | September 9 – September 27 |
Teams | 22 (from 5 continents) |
Venues | 25 (in 25 host cities) |
Defending champions | ![]() |
Final positions | |
Champions | ![]() |
Runner-up | ![]() |
Third place | ![]() |
Fourth place | ![]() |
Tournament statistics | |
Games played | 106 |
{{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 }}
The above documentation is transcluded from Template:Infobox international baseball tournament/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |