Difference between revisions of "Template:Infobox cricket tour"
Jump to navigation
Jump to search
imported>PeeJay (different types of game, so adding the runs would be like comparing apples with oranges (and most likely would be the top Test scorer)) |
imported>Spike 'em (only display - if to_date is there) |
||
| (19 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {| | + | <includeonly>{{Infobox3cols |
| − | + | | bodyclass = infobox vcard | |
| − | {{ | + | | bodystyle = width: 28em; |
| − | + | | abovestyle = white-space: nowrap; | |
| − | + | | aboveclass = fn org | |
| − | | | + | | above = {{{series_name|{{PAGENAME}}}}} |
| − | + | | subheader = {{{other_titles|}}} | |
| − | {{ | + | | headerstyle = background-color:#EBF5FF; |
| − | + | ||
| − | + | | label1= {{#if:{{{team1_image|}}}{{{team2_image|}}}| }} | |
| − | {{ | + | | datastyle = padding-left: 5px; |
| − | }} | + | | datastylea = text-align: center; |
| − | {{#if:{{{ | + | | datastyleb = text-align: center; |
| − | + | | data1a ={{#invoke:InfoboxImage|InfoboxImage|image={{{team1_image|}}}|size=50px|alt={{{alt|}}}}} | |
| − | {{ | + | | data1b = {{#invoke:InfoboxImage|InfoboxImage|image={{{team2_image|}}}|size=50px|alt={{{alt|}}}}} |
| − | {{ | + | | label2 = {{#if:{{{team1_name|}}}{{{team2_name|}}}| }} |
| − | }} | + | | data2a = {{{team1_name|}}} |
| − | { | + | | data2b = {{{team2_name|}}} |
| − | {{ | + | |
| − | {{ | + | | label3 = Date{{#if:{{{to_date|}}}|s}} |
| − | + | | data3 = {{#if:{{{from_date|}}}{{{to_date|}}}|{{{from_date}}}{{#if:{{{to_date|}}}| – {{{to_date}}}}}}} | |
| − | + | | label4 = Captains | |
| − | + | | data4a = {{{team1_captain|}}} | |
| − | {{#if:{{{ | + | | data4b = {{{team2_captain|}}} |
| − | {{ | + | |
| − | {{ | + | | label5 = Player of the series |
| − | }} | + | | data5 = {{{player_of_series|}}} |
| − | + | | label6 = Most runs | |
| − | {{#if: {{{ | + | | data6a = {{{team1_series_most_runs|}}} |
| − | {{ | + | | data6b = {{{team2_series_most_runs|}}} |
| − | {{ | + | | label7 = Most wickets |
| − | {{ | + | | data7a = {{{team1_series_most_wickets|}}} |
| − | }} | + | | data7b = {{{team2_series_most_wickets|}}} |
| − | }} | + | |
| − | {{ | + | | header8 = {{#if:{{{no_of_tests|}}}|Test series}} |
| − | {{#if: {{{team1_tests_won| | + | | label9 = Result |
| − | {{ | + | | data9 = {{ #ifeq: {{ #expr: {{ #if: {{{team1_tests_won|}}} |{{{team1_tests_won|}}} |0 }} > {{ #if: {{{team2_tests_won|}}} |{{{team2_tests_won|}}} |0 }} }} |1 | {{#if: {{{team1_tests_won|}}} | {{{team1_name}}} won the {{{no_of_tests}}}-match series {{{team1_tests_won}}}–{{{team2_tests_won}}}}}}}{{ #ifeq: {{ #expr: {{ #if: {{{team2_tests_won|}}} |{{{team2_tests_won|}}} |0 }} > {{ #if: {{{team1_tests_won|}}} |{{{team1_tests_won|}}} |0 }} }} |1 | {{#if: {{{team1_tests_won|}}} | {{{team2_name}}} won the {{{no_of_tests}}}-match series {{{team2_tests_won}}}–{{{team1_tests_won}}}}}}}{{ #ifeq: {{ #expr: {{ #if: {{{team1_tests_won|}}} |{{{team1_tests_won|}}} |0 }} = {{ #if: {{{team2_tests_won|}}} |{{{team2_tests_won|}}} |0 }} }} |1 | {{#if: {{{team1_tests_won|}}} | {{{no_of_tests}}}-match series drawn {{{team1_tests_won}}}–{{{team2_tests_won}}}}}}} |
| − | {{ | + | | label10 = Most runs |
| − | {{ | + | | data10a = {{{team1_tests_most_runs|}}} |
| − | }} | + | | data10b = {{{team2_tests_most_runs|}}} |
| − | + | | label11 = Most wickets | |
| − | {{ | + | | data11a = {{{team1_tests_most_wickets|}}} |
| − | {{#if: {{{ | + | | data11b = {{{team2_tests_most_wickets|}}} |
| − | {{ | + | | label12 = Player of the series |
| − | + | | data12 = {{{player_of_test_series|}}} | |
| − | {{ | + | |
| − | }} | + | | header13 ={{#if:{{{no_of_ODIs|}}}|One Day International series}} |
| − | }} | + | | label14 = Results |
| − | {{#if:{{{ | + | | data14 = {{ #ifeq: {{ #expr: {{ #if: {{{team1_ODIs_won|}}} |{{{team1_ODIs_won|}}} |0 }} > {{ #if: {{{team2_ODIs_won|}}} |{{{team2_ODIs_won|}}} |0 }} }} |1 | {{#if: {{{team1_ODIs_won|}}} | {{{team1_name}}} won the {{{no_of_ODIs}}}-match series {{{team1_ODIs_won}}}–{{{team2_ODIs_won}}}}}}}{{ #ifeq: {{ #expr: {{ #if: {{{team2_ODIs_won|}}} |{{{team2_ODIs_won|}}} |0 }} > {{ #if: {{{team1_ODIs_won|}}} |{{{team1_ODIs_won|}}} |0 }} }} |1 | {{#if: {{{team1_ODIs_won|}}} | {{{team2_name}}} won the {{{no_of_ODIs}}}-match series {{{team2_ODIs_won}}}–{{{team1_ODIs_won}}}}}}}{{ #ifeq: {{ #expr: {{ #if: {{{team1_ODIs_won|}}} |{{{team1_ODIs_won|}}} |0 }} = {{ #if: {{{team2_ODIs_won|}}} |{{{team2_ODIs_won|}}} |0 }} }} |1 | {{#if: {{{team1_ODIs_won|}}} | {{{no_of_ODIs}}}-match series drawn {{{team1_ODIs_won}}}–{{{team2_ODIs_won}}}}}}} |
| − | {{ | + | | label15= Most runs |
| − | {{ | + | | data15a = {{{team1_ODIs_most_runs |}}} |
| − | + | | data15b = {{{team2_ODIs_most_runs |}}} | |
| − | {{ | + | | label16 = Most wickets |
| − | } | + | | data16a = {{{team1_ODIs_most_wickets |}}} |
| − | + | | data16b = {{{team2_ODIs_most_wickets |}}} | |
| − | {{ | + | | label17 = Player of the series |
| − | + | | data17 = {{{player_of_ODI_series |}}} | |
| − | {{ | + | |
| − | {{ | + | | header18 = {{#if:{{{no_of_twenty20s|}}}|Twenty20 International series}} |
| − | }} | + | | label19 = Results |
| − | {{#if:{{{ | + | | data19 = {{ #ifeq: {{ #expr: {{ #if: {{{team1_twenty20s_won|}}} |{{{team1_twenty20s_won|}}} |0 }} > {{ #if: {{{team2_twenty20s_won|}}} |{{{team2_twenty20s_won|}}} |0 }} }} |1 | {{#if: {{{team1_twenty20s_won|}}} | {{{team1_name}}} won the {{{no_of_twenty20s}}}-match series {{{team1_twenty20s_won}}}–{{{team2_twenty20s_won}}}}}}}{{ #ifeq: {{ #expr: {{ #if: {{{team2_twenty20s_won|}}} |{{{team2_twenty20s_won|}}} |0 }} > {{ #if: {{{team1_twenty20s_won|}}} |{{{team1_twenty20s_won|}}} |0 }} }} |1 | {{#if: {{{team1_twenty20s_won|}}} | {{{team2_name}}} won the {{{no_of_twenty20s}}}-match series {{{team2_twenty20s_won}}}–{{{team1_twenty20s_won}}}}}}}{{ #ifeq: {{ #expr: {{ #if: {{{team1_twenty20s_won|}}} |{{{team1_twenty20s_won|}}} |0 }} = {{ #if: {{{team2_twenty20s_won|}}} |{{{team2_twenty20s_won|}}} |0 }} }} |1 | {{#if: {{{team1_twenty20s_won|}}} | {{{no_of_twenty20s}}}-match series drawn {{{team1_twenty20s_won}}}–{{{team2_twenty20s_won}}}}}}} |
| − | {{ | + | | label20 = Most runs |
| − | + | | data20a = {{{team1_twenty20s_most_runs |}}} | |
| − | {{ | + | | data20b = {{{team2_twenty20s_most_runs |}}} |
| − | } | + | | label21 = Most wickets |
| − | + | | data21a = {{{team1_twenty20s_most_wickets |}}} | |
| − | {{ | + | | data21b = {{{team2_twenty20s_most_wickets |}}} |
| − | {{ | + | | label22 = Player of the series |
| − | }} | + | | data22 = {{{player_of_twenty20_series |}}} |
| − | {{ | + | |
| − | {{#if: {{{ | + | | header23 = {{#if:{{{no_of_FCs|}}}|FC series}} |
| − | {{ | + | | label24 = Result |
| − | + | | data24 = {{ #ifeq: {{ #expr: {{ #if: {{{team1_FCs_won|}}} |{{{team1_FCs_won|}}} |0 }} > {{ #if: {{{team2_FCs_won|}}} |{{{team2_FCs_won|}}} |0 }} }} |1 | {{#if: {{{team1_FCs_won|}}} | {{{team1_name}}} won the {{{no_of_FCs}}}-match series {{{team1_FCs_won}}}–{{{team2_FCs_won}}}}}}}{{ #ifeq: {{ #expr: {{ #if: {{{team2_FCs_won|}}} |{{{team2_FCs_won|}}} |0 }} > {{ #if: {{{team1_FCs_won|}}} |{{{team1_FCs_won|}}} |0 }} }} |1 | {{#if: {{{team1_FCs_won|}}} | {{{team2_name}}} won the {{{no_of_FCs}}}-match series {{{team2_FCs_won}}}–{{{team1_FCs_won}}}}}}}{{ #ifeq: {{ #expr: {{ #if: {{{team1_FCs_won|}}} |{{{team1_FCs_won|}}} |0 }} = {{ #if: {{{team2_FCs_won|}}} |{{{team2_FCs_won|}}} |0 }} }} |1 | {{#if: {{{team1_FCs_won|}}} | {{{no_of_FCs}}}-match series drawn {{{team1_FCs_won}}}–{{{team2_FCs_won}}}}}}} | |
| − | + | | label25 = Most runs | |
| − | + | | data25a = {{{team1_FCs_most_runs|}}} | |
| − | }} | + | | data25b = {{{team2_FCs_most_runs|}}} |
| − | {{ #ifeq: {{ #expr: {{ #if: {{{ | + | | label26 = Most wickets |
| − | {{#if: {{{ | + | | data26a = {{{team1_FCs_most_wickets|}}} |
| − | + | | data26b = {{{team2_FCs_most_wickets|}}} | |
| − | + | | label27 = Player of the series | |
| − | + | | data27 = {{{player_of_FC_series|}}} | |
| − | }} | + | |
| − | + | | header28 = {{#if:{{{no_of_LAs|}}}|LA series}} | |
| − | + | | label29 = Result | |
| − | {{#if: {{{ | + | | data29 = {{ #ifeq: {{ #expr: {{ #if: {{{team1_LAs_won|}}} |{{{team1_LAs_won|}}} |0 }} > {{ #if: {{{team2_LAs_won|}}} |{{{team2_LAs_won|}}} |0 }} }} |1 | {{#if: {{{team1_LAs_won|}}} | {{{team1_name}}} won the {{{no_of_LAs}}}-match series {{{team1_LAs_won}}}–{{{team2_LAs_won}}}}}}}{{ #ifeq: {{ #expr: {{ #if: {{{team2_LAs_won|}}} |{{{team2_LAs_won|}}} |0 }} > {{ #if: {{{team1_LAs_won|}}} |{{{team1_LAs_won|}}} |0 }} }} |1 | {{#if: {{{team1_LAs_won|}}} | {{{team2_name}}} won the {{{no_of_LAs}}}-match series {{{team2_LAs_won}}}–{{{team1_LAs_won}}}}}}}{{ #ifeq: {{ #expr: {{ #if: {{{team1_LAs_won|}}} |{{{team1_LAs_won|}}} |0 }} = {{ #if: {{{team2_LAs_won|}}} |{{{team2_LAs_won|}}} |0 }} }} |1 | {{#if: {{{team1_LAs_won|}}} | {{{no_of_LAs}}}-match series drawn {{{team1_LAs_won}}}–{{{team2_LAs_won}}}}}}} |
| − | + | | label30 = Most runs | |
| − | + | | data30a = {{{team1_LAs_most_runs|}}} | |
| − | + | | data30b = {{{team2_LAs_most_runs|}}} | |
| − | }} | + | | label31 = Most wickets |
| − | + | | data31a = {{{team1_LAs_most_wickets|}}} | |
| − | {{ | + | | data31b = {{{team2_LAs_most_wickets|}}} |
| − | {{ | + | | label32 = Player of the series |
| − | {{ | + | | data32 = {{{player_of_LA_series|}}} |
| − | {{ | + | |
| − | {{ | + | |
| − | + | | header33 = {{#if:{{{team1_points|}}}|{{{points_header|Points total}}}}} | |
| − | {{#if:{{{ | + | | data34 = {{#if:{{{team1_points|}}}|{{{team1_name}}} {{{team1_points}}}, {{{team2_name}}} {{{team2_points}}}}} |
| − | {{ | + | }}</includeonly><noinclude> |
| − | |||
| − | {{ | ||
| − | |||
| − | |||
| − | {{#if:{{{ | ||
| − | {{ | ||
| − | {{ | ||
| − | |||
| − | }} | ||
| − | {{# | ||
| − | {{ | ||
| − | {{ | ||
| − | }} | ||
| − | |||
| − | {{#if: {{{ | ||
| − | {{ | ||
| − | |||
| − | {{ | ||
| − | }} | ||
| − | } | ||
| − | {{ | ||
| − | {{#if: {{{ | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | {{ | ||
| − | |||
| − | {{ | ||
| − | }} | ||
| − | } | ||
| − | {{#if:{{{ | ||
| − | {{ | ||
| − | |||
| − | {{ | ||
| − | {{ | ||
| − | }} | ||
| − | {{#if:{{{ | ||
| − | {{ | ||
| − | |||
| − | {{ | ||
| − | |||
| − | |||
| − | {{#if:{{{ | ||
| − | {{ | ||
| − | {{ | ||
| − | {{ | ||
| − | }} | ||
| − | {{#if:{{{team1_points| | ||
| − | |||
| − | |||
| − | {{ | ||
| − | |||
| − | }} | ||
| − | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 18:28, 3 May 2019
| This template uses Lua: |
Usage
{{Infobox cricket tour
| series_name =
| team1_image =
| team1_name =
| team2_image =
| team2_name =
| from_date =
| to_date =
| team1_captain =
| team2_captain =
| player_of_series = <!-- To be used in case of multi-format series decided on a points system (i.e. The Women's Ashes) -->
| team1_series_most_runs = <!-- To be used in case of multi-format series where run from all matches can be added (i.e. The Women's Ashes) -->
| team2_series_most_runs = <!-- To be used in case of multi-format series where run from all matches can be added (i.e. The Women's Ashes) -->
| team1_series_most_wickets = <!-- To be used in case of multi-format series where wickets from all matches can be added (i.e. The Women's Ashes) -->
| team2_series_most_wickets = <!-- To be used in case of multi-format series where wickets from all matches can be added (i.e. The Women's Ashes) -->
| no_of_tests =
| team1_tests_won =
| team2_tests_won =
| team1_tests_most_runs =
| team2_tests_most_runs =
| team1_tests_most_wickets =
| team2_tests_most_wickets =
| player_of_test_series =
| no_of_ODIs =
| team1_ODIs_won =
| team2_ODIs_won =
| team1_ODIs_most_runs =
| team2_ODIs_most_runs =
| team1_ODIs_most_wickets =
| team2_ODIs_most_wickets =
| player_of_ODI_series =
| no_of_twenty20s =
| team1_twenty20s_won =
| team2_twenty20s_won =
| team1_twenty20s_most_runs =
| team2_twenty20s_most_runs =
| team1_twenty20s_most_wickets =
| team2_twenty20s_most_wickets =
| player_of_twenty20_series =
| no_of_FCs =
| team1_FCs_won =
| team2_FCs_won =
| team1_FCs_most_runs =
| team2_FCs_most_runs =
| team1_FCs_most_wickets =
| team2_FCs_most_wickets =
| player_of_FC_series =
| no_of_LAs =
| team1_LAs_won =
| team2_LAs_won =
| team1_LAs_most_runs =
| team2_LAs_most_runs =
| team1_LAs_most_wickets =
| team2_LAs_most_wickets =
| player_of_LA_series =
| team1_points =
| team2_points =
| points_header =
}}
| The above documentation is transcluded from Template:Infobox cricket tour/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |