Difference between revisions of "Template:Infobox major league soccer"

From blackwiki
Jump to navigation Jump to search
imported>Grant.Alpaugh
imported>Thumperward
(get rid of mandatories, split cats to doc page. first step in converting this to an infobox)
Line 2: Line 2:
 
| colspan="2" style="text-align: center; font-size: 130%; font-weight: bold;" | {{{name|{{PAGENAME}}}}}
 
| colspan="2" style="text-align: center; font-size: 130%; font-weight: bold;" | {{{name|{{PAGENAME}}}}}
 
|-  
 
|-  
{{#if:{{{current|<noinclude>X</noinclude>}}} |
+
{{#if:{{{current|}}} |
 
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:Soccerball current event.svg|33px|]] ''{{{current}}}''
 
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:Soccerball current event.svg|33px|]] ''{{{current}}}''
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{{logo|<noinclude>X</noinclude>}}} |
+
{{#if: {{{logo|}}} |
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{logo|<noinclude>Placeholder.png</noinclude>}}}|{{#if:{{{pixels|}}}|{{{pixels}}}px|200px}}|{{{name|{{PAGENAME}}}}}]]
+
{{!}} colspan="2" style="text-align: center;" {{!}} [[Image:{{{logo|}}}|{{#if:{{{pixels|}}}|{{{pixels}}}px|200px}}|{{{name|{{PAGENAME}}}}}]]
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 +
{{#if: {{{country|}}} |
 
! Countries
 
! Countries
 
{{!}} {{#ifexist:Template:Country data {{{country}}} | {{flag|{{{country}}}}} | {{{country}}} }}
 
{{!}} {{#ifexist:Template:Country data {{{country}}} | {{flag|{{{country}}}}} | {{{country}}} }}
|-
+
{{!}}-
{{#if:{{{confed|<noinclude>X</noinclude>}}} |
+
}}
 +
{{#if:{{{confed|}}} |
 
! Confederation
 
! Confederation
 
{{!}} {{#ifexist:{{{confed}}} | [[{{{confed}}}]] | {{{confed}}} }}
 
{{!}} {{#ifexist:{{{confed}}} | [[{{{confed}}}]] | {{{confed}}} }}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{founded|<noinclude>X</noinclude>}}} |
+
{{#if:{{{founded|}}} |
 
! Founded
 
! Founded
 
{{!}} {{#ifexist:{{{founded}}} | [[{{{founded}}}]] | {{{founded}}} }}
 
{{!}} {{#ifexist:{{{founded}}} | [[{{{founded}}}]] | {{{founded}}} }}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{first|<noinclude>X</noinclude>}}} |
+
{{#if:{{{first|}}} |
 
! First season
 
! First season
 
{{!}} {{#ifexist:{{{first}}} | [[{{{first}}}]] | {{{first}}} }}
 
{{!}} {{#ifexist:{{{first}}} | [[{{{first}}}]] | {{{first}}} }}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{folded|<noinclude>X</noinclude>}}} |
+
{{#if:{{{folded|}}} |
 
! Folded
 
! Folded
 
{{!}} {{{folded}}}
 
{{!}} {{{folded}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{divisions|<noinclude>X</noinclude>}}} |
+
{{#if:{{{divisions|}}} |
 
! Conferences
 
! Conferences
 
{{!}} {{{divisions}}}
 
{{!}} {{{divisions}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 +
{{#if:{{{teams|}}} |
 
! Number of teams
 
! Number of teams
 
{{!}} {{{teams}}}
 
{{!}} {{{teams}}}
|-
+
{{!}}-
{{#if:{{{feeds|<noinclude>X</noinclude>}}} |
+
}}
 +
{{#if:{{{feeds|}}} |
 
! Feeder to
 
! Feeder to
 
{{!}} {{{feeds}}}
 
{{!}} {{{feeds}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{promotion|<noinclude>X</noinclude>}}} |
+
{{#if:{{{promotion|}}} |
 
! [[Promotion and relegation|Promotion]] to
 
! [[Promotion and relegation|Promotion]] to
 
{{!}} {{{promotion}}}
 
{{!}} {{{promotion}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{relegation|<noinclude>X</noinclude>}}} |
+
{{#if:{{{relegation|}}} |
 
! [[Promotion and relegation|Relegation]] to
 
! [[Promotion and relegation|Relegation]] to
 
{{!}} {{{relegation}}}
 
{{!}} {{{relegation}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{levels|<noinclude>X</noinclude>}}} |
+
{{#if:{{{levels|}}} |
 
! {{#ifeq:{{{levels|}}}|1|Level|Levels}} on pyramid
 
! {{#ifeq:{{{levels|}}}|1|Level|Levels}} on pyramid
 
{{!}} [[English football league system|Level {{{levels}}}]]
 
{{!}} [[English football league system|Level {{{levels}}}]]
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{domest_cup|<noinclude>X</noinclude>}}} |
+
{{#if:{{{domest_cup|}}} |
 
! Domestic cup
 
! Domestic cup
 
{{!}} {{{domest_cup}}}
 
{{!}} {{{domest_cup}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{confed_cup|<noinclude>X</noinclude>}}} |
+
{{#if:{{{confed_cup|}}} |
 
! International cups
 
! International cups
 
{{!}} {{{confed_cup}}}
 
{{!}} {{{confed_cup}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{champions|<noinclude>X</noinclude>}}} |
+
{{#if:{{{champions|}}} |
 
! Current [[MLS Cup|MLS<br>Cup]] holder
 
! Current [[MLS Cup|MLS<br>Cup]] holder
 
{{!}} {{{champions}}}<br>({{{season1}}})
 
{{!}} {{{champions}}}<br>({{{season1}}})
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{shield|<noinclude>X</noinclude>}}} |
+
{{#if:{{{shield|}}} |
 
! Current [[MLS Supporters' Shield|Supporters'<br>Shield]] holder
 
! Current [[MLS Supporters' Shield|Supporters'<br>Shield]] holder
 
{{!}} {{{shield}}}<br>({{{season2}}})
 
{{!}} {{{shield}}}<br>({{{season2}}})
Line 82: Line 86:
 
}}
 
}}
 
{{!}}-
 
{{!}}-
{{#if:{{{most_champs<includeonly>|</includeonly>}}} |
+
{{#if:{{{most_champs|}}} |
 
{{!}} '''Most MLS Cups'''
 
{{!}} '''Most MLS Cups'''
 
{{!}} {{{most_champs}}}
 
{{!}} {{{most_champs}}}
Line 88: Line 92:
 
}}
 
}}
 
{{!}}-
 
{{!}}-
{{#if:{{{most_shields<includeonly>|</includeonly>}}} |
+
{{#if:{{{most_shields|}}} |
 
{{!}} '''Most Supporters'<br>Shields'''
 
{{!}} '''Most Supporters'<br>Shields'''
 
{{!}} {{{most_shields}}}
 
{{!}} {{{most_shields}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{tv|<noinclude>X</noinclude>}}} |
+
{{#if:{{{tv|}}} |
 
! TV partners
 
! TV partners
 
{{!}} {{{tv}}}
 
{{!}} {{{tv}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if:{{{website|<noinclude>X</noinclude>}}} |
+
{{#if:{{{website|}}} |
 
! Website
 
! Website
 
{{!}} {{{website}}}
 
{{!}} {{{website}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
|}<noinclude><br clear="both">{{documentation}}
+
|}<noinclude>{{documentation}}</noinclude>
[[Category:Football (soccer) infobox templates|Football league]]
 
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
 
</noinclude>
 

Revision as of 11:52, 3 July 2008

Infobox major league soccer
Template documentation[create]