Difference between revisions of "Template:Infobox MLB rivalry"

From blackwiki
Jump to navigation Jump to search
imported>Danlaycock
(add parameter for defunct series (ie Pearson Cup))
imported>Izkala
Line 1: Line 1:
{| class="toccolours" style="float: right; clear: right; margin: 0 0 1em 1em; width: 26em;"
+
{{Infobox sports rivalry
|- style="text-align:center;"
+
| name          = {{{team1}}} – {{{team2}}}
! colspan="2" style="text-align:center; background-color: {{{Color|LightSteelBlue}}};" | {{{team1}}} {{{team2}}}
+
| image          = {{{team1logo|}}} {{{team2logo|}}}
|-
+
| caption        =
{{ #if: {{{team1logo|{{{team2logo<includeonly>|</includeonly>}}}}}} | {{!}} colspan="2" style="text-align:center" {{!}} {{{team1logo|}}}&nbsp;&nbsp;{{{team2logo|}}} }}
+
| team1          = {{{team1}}}
|-
+
| team2          = {{{team2}}}
! style="background: #E0E7EF;" colspan="2" | History
+
| city or region =
|-
+
| firstmeeting  = {{{{{|safesubst:}}}Br separated entries|{{{first_meeting|}}}|{{{first_location|}}}}}
| style="vertical-align: top;" | '''First meeting''' || {{{first_meeting}}}
+
| mostrecent    = {{{{{|safesubst:}}}Br separated entries|{{{last_meeting|}}}|{{{last_location|}}}}}
|-
+
| nextmeeting    = {{{{{|safesubst:}}}Br separated entries|{{{next_meeting|}}}|{{{next_location|}}}}}
| style="vertical-align: top;" | '''Location''' || {{{first_location}}}
+
| total          = {{{meetings|}}}
|-
+
| most wins      =
| style="vertical-align: top;" | '''Last meeting''' || {{{last_meeting}}}
+
| regularseason  = {{{regularseason|}}}
|-
+
| longeststreak  = {{Plainlist|
| style="vertical-align: top;" | '''Location''' || {{{last_location}}}
+
* {{{team1abr}}}: {{{longeststreak_team1}}}
|-
+
* {{{team2abr}}}: {{{longeststreak_team2}}}
{{#ifeq: {{{defunct|}}} | yes | | {{!}} style="vertical-align: top;" {{!}} '''Next meeting''' {{!}}{{!}} {{{next_meeting}}}
+
}}
{{!}}-
+
| largestvictory = {{{largest_victory|}}}
{{!}} style="vertical-align: top;" {{!}} '''Location''' {{!}}{{!}} {{{next_location}}}
+
| currentstreak  = {{{current_streak|}}}
{{!}}-}}
+
| section_header = Post-season history
| style="vertical-align: top;" | '''Number of meetings''' || {{{meetings}}}
+
| section_info  = {{{{{|safesubst:}}}#if:{{{postseason1|}}}|{{Plainlist|class=nowrap|
|-
+
* {{{{{|safesubst:}}}Separated entries|separator=<nowiki/>
| style="vertical-align: top;" | '''Regular season series''' || {{{regularseason}}}
+
* <nowiki/>
|-
+
| {{{postseason1}}}: {{{postseason1result}}}
| style="vertical-align: middle;" | '''Largest victory''' || {{{largest_victory}}}
+
| {{{{{|safesubst:}}}#if:{{{postseason2|}}}|{{{postseason2}}}: {{{postseason2result}}}}}
|-
+
| {{{{{|safesubst:}}}#if:{{{postseason3|}}}|{{{postseason3}}}: {{{postseason3result}}}}}
| style="vertical-align: top;" | '''Current streak''' || {{{current_streak}}}
+
| {{{{{|safesubst:}}}#if:{{{postseason4|}}}|{{{postseason4}}}: {{{postseason4result}}}}}
|-
+
| {{{{{|safesubst:}}}#if:{{{postseason5|}}}|{{{postseason5}}}: {{{postseason5result}}}}}
| style="vertical-align: top;" | '''Longest {{{team1abr}}} win streak''' || {{{longeststreak_team1}}}
+
| {{{{{|safesubst:}}}#if:{{{postseason6|}}}|{{{postseason6}}}: {{{postseason6result}}}}}
|-
+
| {{{{{|safesubst:}}}#if:{{{postseason7|}}}|{{{postseason7}}}: {{{postseason7result}}}}}
| style="vertical-align: top;" | '''Longest {{{team2abr}}} win streak''' || {{{longeststreak_team2}}}
+
| {{{{{|safesubst:}}}#if:{{{postseason8|}}}|{{{postseason8}}}: {{{postseason8result}}}}}
|-
+
| {{{{{|safesubst:}}}#if:{{{postseason9|}}}|{{{postseason9}}}: {{{postseason9result}}}}}
{{#if:{{{postseason1|<noinclude>x</noinclude>}}}|
+
| {{{{{|safesubst:}}}#if:{{{postseason10|}}}|{{{postseason10}}}: {{{postseason10result}}}}}
<tr><th colspan="2" style="text-align:center; background: #E0E7EF;">Post-season history</th></tr>
+
| {{{{{|safesubst:}}}#if:{{{postseason11|}}}|{{{postseason11}}}: {{{postseason11result}}}}}
 +
}}
 +
}}}}
 +
}}<noinclude>
 +
{{Documentation}}
  
}}{{#if:{{{postseason1<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right"; width=40%>{{{postseason1}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{postseason1result}}}</td></tr>
 
}}{{#if:{{{postseason2<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right"; width=40%>{{{postseason2}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{postseason2result}}}</td></tr>
 
}}{{#if:{{{postseason3<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right"; width=40%>{{{postseason3}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{postseason3result}}}</td></tr>
 
}}{{#if:{{{postseason4<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right"; width=40%>{{{postseason4}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{postseason4result}}}</td></tr>
 
}}{{#if:{{{postseason5<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right"; width=40%>{{{postseason5}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{postseason5result}}}</td></tr>
 
}}{{#if:{{{postseason6<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right"; width=40%>{{{postseason6}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{postseason6result}}}</td></tr>
 
}}{{#if:{{{postseason7<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right"; width=40%>{{{postseason7}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{postseason7result}}}</td></tr>
 
}}{{#if:{{{postseason8<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right"; width=40%>{{{postseason8}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{postseason8result}}}</td></tr>
 
}}{{#if:{{{postseason9<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right"; width=40%>{{{postseason9}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{postseason9result}}}</td></tr>
 
}}{{#if:{{{postseason10<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right"; width=40%>{{{postseason10}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{postseason10result}}}</td></tr>
 
}}{{#if:{{{postseason11<includeonly>|</includeonly>}}}|
 
<tr><th style="text-align:right"; width=40%>{{{postseason11}}}&nbsp;&nbsp;</th><td>&nbsp;&nbsp;{{{postseason11result}}}</td></tr>
 
}}
 
|}<noinclude>
 
{{documentation}}
 
 
[[Category:Major League Baseball rivalry templates]]
 
[[Category:Major League Baseball rivalry templates]]
 
[[Category:Baseball infobox templates|Rivalry]]
 
[[Category:Baseball infobox templates|Rivalry]]
 
</noinclude>
 
</noinclude>

Revision as of 19:17, 27 June 2015

Template:Infobox sports rivalry

Template documentation[create]