Difference between revisions of "Template:Infobox Test team"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
(splitting multi-part param into three params for ease of use)
imported>Primefac
(merge complete)
 
Line 1: Line 1:
{{Infobox
+
#REDIRECT [[Template:Infobox cricket team]]
| labelstyle = background:inherit
 
| headerstyle = background:lavender
 
  
| title  = {{{team_name}}}
+
{{r from merge}}
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|alt={{{alt|}}}|suppressplaceholder=yes}}
 
| caption = {{{image_caption}}}
 
 
 
| label1  = [[Test cricket|Test]] status acquired
 
| data1  = {{{test status year}}}
 
 
 
<!-- Captaincy logic:  if only {{{current captain}}} set, then "Captain" appears
 
    Otherwise tries to work out title based on what is set
 
    If {{{odi captain}}} set and {{{t20i captain}}} not set assume one captain covers both
 
    To Do : Work out if captains are the same and display appropriately?
 
-->
 
 
 
| label3  = {{#if:{{{odi captain|}}}{{{t20i captain|}}}|{{#if:{{{odi captain|}}}|Test&nbsp;Captain|Test&nbsp;and&nbsp;ODI Captain}}|Captain}}
 
| data3  = {{{current captain}}}
 
 
 
| label4  = {{#if:{{{t20i captain|}}}|ODI&nbsp;Captain|ODI&nbsp;and&nbsp;T20I Captain}}
 
| data4  = {{{odi captain|}}}
 
 
 
| label5  = {{#if:{{{t20i captain|}}}|T20I&nbsp;Captain}}
 
| data5  = {{{t20i captain|}}}
 
 
 
| label6  = Coach
 
| data6  = {{{current coach}}}
 
 
 
| data10 =
 
  {{infobox3cols | child = yes
 
    | label1=ICC&nbsp;Rankings
 
    | data1a='''Current''' <includeonly><ref name="ICC Rankings">{{cite web|title=ICC Rankings|url=http://www.icc-cricket.com/team-rankings/test|website=icc-cricket.com}}</ref></includeonly>
 
    | data1b='''Best-ever'''
 
    | label2 = [[ICC Test Championship|Test]]
 
    | data2a = {{{test current official rank}}}
 
    | data2b = {{{test all-time best official rank}}}
 
    | label3 = [[ICC ODI Championship|ODI]]
 
    | data3a = {{{odi current official rank}}}
 
    | data3b = {{{odi all-time best official rank}}}
 
    | label4 = [[ICC T20I Championship|T20I]]
 
    | data4a = {{{t20i current official rank}}}
 
    | data4b = {{{t20i all-time best official rank}}}
 
  }}
 
 
 
| header20 = Test Matches
 
| label21 = First Test
 
| data21  = {{small|{{{first test match}}}}}
 
 
 
| data23 =
 
  {{infobox3cols | child = yes
 
    | label24=Tests
 
    | data24a='''Played'''
 
    | data24b='''Won/Lost'''
 
    | label25 = Total <includeonly><ref name="Cricinfo Test Records">{{cite web|title=Test matches - Team records|url=http://stats.espncricinfo.com/ci/content/records/283877.html|website=ESPNcricinfo.com}}</ref></includeonly>
 
    | data25a = {{{number of tests}}}
 
    | data25b = {{{win/loss record}}}
 
    | label26 = {{#if:{{{test matches this year|}}}{{{win/loss record this year|}}}|This year}} <includeonly><ref name="Cricinfo 2017 Test Records">{{cite web|title=Test matches - 2017 Team records|url=http://stats.espncricinfo.com/ci/engine/records/team/results_summary.html?class=1;id=2017;type=year|website=ESPNcricinfo.com}}</ref></includeonly>
 
    | data26a = {{{test matches this year|}}}
 
    | data26b = {{{win/loss record this year|}}}
 
  }}
 
 
 
| label27  = Last Test
 
| data27  = {{small|{{{most recent test match}}}}}
 
 
 
| header30 = One-Day Internationals
 
 
 
| label31  = {{#if:{{{first odi match|}}}|First ODI}}
 
| data31  = {{small|1={{{first odi match|}}}}}
 
 
 
| data32 = {{#if:{{{number of odis|}}}{{{odi win/loss record|}}}
 
|{{infobox3cols | child = yes
 
    | label33={{#if:{{{number of odis|}}}{{{odi win/loss record|}}}  |ODIs}}
 
    | data33a='''Played'''
 
    | data33b='''Won/Lost'''
 
    | label34 = Total <includeonly><ref name="Cricinfo ODI Records">{{cite web|title=ODI matches - Team records|url=http://stats.espncricinfo.com/ci/content/records/283878.html|website=ESPNcricinfo.com}}</ref></includeonly>
 
    | data34a = {{{number of odis|}}}
 
    | data34b = {{{odi win/loss record|}}}
 
    | label35 = {{#if:{{{odi matches this year|}}}|This year}} <includeonly><ref name="Cricinfo 2017 ODI Records">{{cite web|title=ODI matches - 2017 Team records|url=http://stats.espncricinfo.com/ci/engine/records/team/results_summary.html?class=2;id=2017;type=year|website=ESPNcricinfo.com}}</ref></includeonly>
 
    | data35a = {{{odi matches this year|}}}
 
    | data35b = {{{odi win/loss record this year|}}}
 
  }}
 
}}
 
 
 
| label36  =  {{#if:{{{most recent odi match|}}}|Last ODI}}
 
| data36  = {{#if:{{{most recent odi match|}}}|{{small|{{{most recent odi match|}}}}}}}
 
 
 
| label37  = [[Cricket World Cup|World Cup]] Appearances
 
| data37    = {{{cricket world cup apps|}}} {{#if:{{{cricket world cup first|}}}|(''first in {{{cricket world cup first|}}}'')}}
 
| label38    = {{#if:{{{cricket world cup best|}}}|Best result}}
 
| data38    = {{{cricket world cup best|}}}
 
 
 
| header40 = T20 Internationals
 
 
 
| label41  = {{#if:{{{first t20i match|}}}|First T20I}}
 
| data41  = {{small|{{{first t20i match|}}}}}
 
 
 
| data42 = {{#if:{{{number of t20is|}}}{{{t20i win/loss record|}}}{{{t20i matches this year|}}}{{{t20i win/loss record this year|}}}
 
| {{infobox3cols | child = yes
 
    | label43={{#if:{{{number of t20is|}}}{{{t20i win/loss record|}}}  |T20Is}}
 
    | data43a='''Played'''
 
    | data43b='''Won/Lost'''
 
    | label44 = {{#if:{{{number of t20is|}}}{{{t20i win/loss record|}}}
 
        | Total <includeonly><ref name="Cricinfo T20I Records">{{cite web|title=T20I matches - Team records|url=http://stats.espncricinfo.com/ci/content/records/283307.html|website=ESPNcricinfo.com}}</ref></includeonly> }}
 
    | data44a = {{{number of t20is|}}}
 
    | data44b = {{{t20i win/loss record|}}}
 
    | label45 = {{#if:{{{t20i matches this year|}}}|This year}} <includeonly><ref name="Cricinfo 2017 T20I Records">{{cite web|title=T20I matches - 2017 Team records|url=http://stats.espncricinfo.com/ci/engine/records/team/results_summary.html?class=3;id=2017;type=year|website=ESPNcricinfo.com}}</ref></includeonly>
 
    | data45a = {{{t20i matches this year|}}}
 
    | data45b = {{{t20i win/loss record this year|}}}
 
  }}
 
}}
 
 
 
| label46  = {{#if:{{{most recent t20i match|}}}|Last T20I}}
 
| data46  = {{#if:{{{most recent t20i match|}}}|{{small|{{{most recent t20i match|}}}}}}}
 
 
 
| label47  = {{#if:{{{worldt20 apps|}}}{{{worldt20 best|}}}|[[ICC World Twenty20|World&nbsp;Twenty20]] Appearances}}
 
| data47    = {{{worldt20 apps|}}} {{#if:{{{worldt20 first|}}}|(''first in {{{worldt20 first|}}}'')}}
 
| label48    = {{#if:{{{worldt20 best|}}}|Best result}}
 
| data48    = {{{worldt20 best|}}}
 
 
 
| data51 = {{#if:{{{h_leftarm|}}}{{{h_pattern_la|}}}{{{h_body|}}}{{{h_pattern_b|}}}{{{h_rightarm|}}}{{{h_pattern_ra|}}}{{{h_pants|}}}{{{h_pattern_pants|}}}{{{a_leftarm|}}}{{{a_pattern_la|}}}{{{a_body|}}}{{{a_pattern_b|}}}{{{a_rightarm|}}}{{{a_pattern_ra|}}}{{{a_pants|}}}{{{a_pattern_pants|}}}{{{t_leftarm|}}}{{{t_pattern_la|}}}{{{t_body|}}}{{{t_pattern_b|}}}{{{t_rightarm|}}}{{{t_pattern_ra|}}}{{{t_pants|}}}{{{t_pattern_pants|}}}
 
|<tr><td class="toccolours" style="padding: 0; background: #ffffff; text-align: center;" colspan="2">
 
<table style="width:100%; text-align:center;">
 
<tr>
 
{{#if:{{{h_leftarm|}}}{{{h_pattern_la|}}}{{{h_body|}}}{{{h_pattern_b|}}}{{{h_rightarm|}}}{{{h_pattern_ra|}}}{{{h_pants|}}}{{{h_pattern_pants|}}}|
 
<td>{{Cricket uniform
 
|  leftarm      ={{{h_leftarm|}}}
 
|  pattern_la  ={{{h_pattern_la|}}}
 
|  body        ={{{h_body|}}}
 
|  pattern_b    ={{{h_pattern_b|_unknown}}}
 
|  rightarm    ={{{h_rightarm|}}}
 
|  pattern_ra  ={{{h_pattern_ra|}}}
 
|  pants        ={{{h_pants|}}}
 
|  pattern_pants={{{h_pattern_pants|}}}
 
|  title        ={{ifempty|{{{h_title|}}}|1st [[Cricket clothing and equipment|kit]]}}
 
}}</td>
 
}}{{#if:{{{a_leftarm|}}}{{{a_pattern_la|}}}{{{a_body|}}}{{{a_pattern_b|}}}{{{a_rightarm|}}}{{{a_pattern_ra|}}}{{{a_pants|}}}{{{a_pattern_pants|}}}|
 
<td>{{Cricket uniform
 
|  leftarm      ={{{a_leftarm|c0c0c0}}}
 
|  pattern_la  ={{{a_pattern_la|}}}
 
|  body        ={{{a_body|c0c0c0}}}
 
|  pattern_b    ={{{a_pattern_b|_unknown}}}
 
|  rightarm    ={{{a_rightarm|c0c0c0}}}
 
|  pattern_ra  ={{{a_pattern_ra|}}}
 
|  pants        ={{{a_pants|c0c0c0}}}
 
|  pattern_pants={{{a_pattern_pants|}}}
 
|  title        ={{ifempty|{{{h_title|}}}|2nd [[Cricket clothing and equipment|kit]]}}
 
}}</td>
 
}}{{#if:{{{t_leftarm|}}}{{{t_pattern_la|}}}{{{t_body|}}}{{{t_pattern_b|}}}{{{t_rightarm|}}}{{{t_pattern_ra|}}}{{{t_pants|}}}{{{t_pattern_pants|}}}|
 
<td>{{Cricket uniform
 
|  leftarm      ={{{t_leftarm|c0c0c0}}}
 
|  pattern_la  ={{{t_pattern_la|}}}
 
|  body        ={{{t_body|c0c0c0}}}
 
|  pattern_b    ={{{t_pattern_b|_unknown}}}
 
|  rightarm    ={{{t_rightarm|c0c0c0}}}
 
|  pattern_ra  ={{{t_pattern_ra|}}}
 
|  pants        ={{{t_pants|c0c0c0}}}
 
|  pattern_pants={{{t_pattern_pants|}}}
 
|  title        ={{ifempty|{{{h_title|}}}|3rd [[Cricket clothing and equipment|kit]]}}
 
}}</td>
 
}}</tr>
 
</table></td></tr>}}
 
 
 
| below  = As of {{{asofdate}}}
 
| belowstyle = font-size: smaller;
 
}}<noinclude>
 
{{Documentation}}
 
</noinclude>
 

Latest revision as of 02:51, 29 May 2017

  • From a merge: This is a redirect from a page that was merged into another page. This redirect was kept in order to preserve this page's edit history after its content was merged into the target page's content. Please do not remove the tag that generates this text (unless the need to recreate content on this page has been demonstrated) or delete this page.