Difference between revisions of "Template:Infobox FIBA tourney/World"

From blackwiki
Jump to navigation Jump to search
imported>Parutakupiu
(introduce new code to accomodate name changes to women's competition)
imported>Parutakupiu
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{#switch:{{{1|}}}
 
{{#switch:{{{1|}}}
 
| title = {{{year}}} {{#ifeq:{{{gender}}}|women
 
| title = {{{year}}} {{#ifeq:{{{gender}}}|women
   | {{#ifexpr:{{{year|0}}}<2017|FIBA World Championship<br />for Women|FIBA Women's Basketball World Cup}}
+
   | {{#ifexpr:{{{year|0}}}<2017|FIBA World Championship<br />for Women|FIBA Women's Basketball<br />World Cup}}
 
   | {{#ifexpr:{{{year|0}}}<2013|FIBA World Championship|FIBA Basketball World Cup}}
 
   | {{#ifexpr:{{{year|0}}}<2013|FIBA World Championship|FIBA Basketball World Cup}}
 
   }}
 
   }}
 
| subheading = {{#ifeq:{{{gender}}}|women
 
| subheading = {{#ifeq:{{{gender}}}|women
   | {{#if:{{{year|}}}|{{ordinal|{{#ifexpr:{{{year}}}>1985|{{#expr:({{{year}}}-1946)/4}}|{{#ifexpr:{{{year}}}<1986 and {{{year}}}>1959 and {{{year}}}!=1964|{{#expr:({{{year}}}-1947)/4}}|{{#switch:{{{year}}} |1953=1|1957=2|1964=4}}}}}}}}}}&nbsp;FIBA Basketball World<br />Championship for Women
+
   | {{#if:{{{year|}}}|{{ordinal|{{#ifexpr:{{{year}}}>1985|{{#expr:({{{year}}}-1946)/4}}|{{#ifexpr:{{{year}}}<1986 and {{{year}}}>1959 and {{{year}}}!=1964|{{#expr:({{{year}}}-1947)/4}}|{{#switch:{{{year}}} |1953=1|1957=2|1964=4}}}}}}}}}}&nbsp;{{#ifexpr:{{{year|0}}}<2017|FIBA World Championship for Women|FIBA Women's Basketball World Cup}}
 
   | {{#if:{{{year|}}}|{{ordinal|{{#ifexpr:{{{year}}}>1949 and {{{year}}}<2018 and {{{year}}}!=1959 and {{{year}}}!=1963  and {{{year}}}!=1967|{{#expr:({{{year}}}-1946)/4}}|{{#ifexpr:{{{year}}}>2018|{{#expr:({{{year}}}-1947)/4}}|{{#switch:{{{year}}} |1959=3 |1963=4 |1967=5}}}}}}}}}}&nbsp;{{#ifexpr:{{{year|0}}}<2013|FIBA World Championship|FIBA Basketball World Cup}}
 
   | {{#if:{{{year|}}}|{{ordinal|{{#ifexpr:{{{year}}}>1949 and {{{year}}}<2018 and {{{year}}}!=1959 and {{{year}}}!=1963  and {{{year}}}!=1967|{{#expr:({{{year}}}-1946)/4}}|{{#ifexpr:{{{year}}}>2018|{{#expr:({{{year}}}-1947)/4}}|{{#switch:{{{year}}} |1959=3 |1963=4 |1967=5}}}}}}}}}}&nbsp;{{#ifexpr:{{{year|0}}}<2013|FIBA World Championship|FIBA Basketball World Cup}}
 
   }}
 
   }}
 
}}
 
}}

Latest revision as of 21:35, 27 September 2016