Difference between revisions of "Template:Infobox college sports team season/succession"
Jump to navigation
Jump to search
Template documentation
imported>Frietjes |
imported>Frietjes |
||
Line 7: | Line 7: | ||
|{{{prev}}} | |{{{prev}}} | ||
|{{safesubst:#if:{{{py|}}} | |{{safesubst:#if:{{{py|}}} | ||
− | |{{Infobox college sports team season/link|pre=|year={{{py}}}|team_link={{{ | + | |{{Infobox college sports team season/link|pre=|year={{{py}}}|team_link={{{prev_team|{{{team}}}}}}|team={{{team}}}|sport={{{sport}}}|sex={{{sex|}}}|text=year}} |
|{{safesubst:#if:{{{year|}}} | |{{safesubst:#if:{{{year|}}} | ||
|{{safesubst:#if:{{safesubst:#invoke:string|match|nomatch=|{{{year}}}|^%d%d%d%d$|plain=false}} | |{{safesubst:#if:{{safesubst:#invoke:string|match|nomatch=|{{{year}}}|^%d%d%d%d$|plain=false}} | ||
− | |{{Infobox college sports team season/link|pre=|year={{safesubst:#expr:{{{year}}} - 1}}|team_link={{{ | + | |{{Infobox college sports team season/link|pre=|year={{safesubst:#expr:{{{year}}} - 1}}|team_link={{{prev_team|{{{team}}}}}}|team={{{team}}}|sport={{{sport}}}|sex={{{sex|}}}|text=year|noredlink=yes}} |
|{{safesubst:#if:{{safesubst:#invoke:string|match|nomatch=|{{{year}}}|^%d%d%d%d–%d%d%d*$|plain=false}} | |{{safesubst:#if:{{safesubst:#invoke:string|match|nomatch=|{{{year}}}|^%d%d%d%d–%d%d%d*$|plain=false}} | ||
− | |{{Infobox college sports team season/link|pre=|year={{safesubst:#invoke:string|replace|{{safesubst:#expr:{{safesubst:#invoke:string|replace|{{{year}}}|–.*|plain=false}} - 1}}–{{safesubst:#invoke:string|replace|{{{year}}}|–.*|plain=false}}|^(%d%d)(%d%d)–%1(%d%d)|%1%2–%3|plain=false}}|team_link={{{ | + | |{{Infobox college sports team season/link|pre=|year={{safesubst:#invoke:string|replace|{{safesubst:#expr:{{safesubst:#invoke:string|replace|{{{year}}}|–.*|plain=false}} - 1}}–{{safesubst:#invoke:string|replace|{{{year}}}|–.*|plain=false}}|^(%d%d)(%d%d)–%1(%d%d)|%1%2–%3|plain=false}}|team_link={{{prev_team|{{{team}}}}}}|team={{{team}}}|sport={{{sport}}}|sex={{{sex|}}}|text=year|noredlink=yes}} |
}} | }} | ||
}} | }} | ||
Line 24: | Line 24: | ||
|{{{next}}} | |{{{next}}} | ||
|{{safesubst:#if:{{{ny|}}} | |{{safesubst:#if:{{{ny|}}} | ||
− | |{{Infobox college sports team season/link|post=|year={{{ny}}}|team_link={{{ | + | |{{Infobox college sports team season/link|post=|year={{{ny}}}|team_link={{{next_team|{{{team}}}}}}|team={{{team}}}|sport={{{sport}}}|sex={{{sex|}}}|text=year}} |
|{{safesubst:#if:{{{year|}}} | |{{safesubst:#if:{{{year|}}} | ||
|{{safesubst:#if:{{safesubst:#invoke:string|match|nomatch=|{{{year}}}|^%d%d%d%d$|plain=false}} | |{{safesubst:#if:{{safesubst:#invoke:string|match|nomatch=|{{{year}}}|^%d%d%d%d$|plain=false}} | ||
− | |{{Infobox college sports team season/link|pre=|year={{safesubst:#expr:{{{year}}} + 1}}|team_link={{{ | + | |{{Infobox college sports team season/link|pre=|year={{safesubst:#expr:{{{year}}} + 1}}|team_link={{{next_team|{{{team}}}}}}|team={{{team}}}|sport={{{sport}}}|sex={{{sex|}}}|text=year|noredlink=yes}} |
|{{safesubst:#if:{{safesubst:#invoke:string|match|nomatch=|{{{year}}}|^%d%d%d%d–%d%d%d*$|plain=false}} | |{{safesubst:#if:{{safesubst:#invoke:string|match|nomatch=|{{{year}}}|^%d%d%d%d–%d%d%d*$|plain=false}} | ||
− | |{{Infobox college sports team season/link|pre=|year={{safesubst:#invoke:string|replace|{{safesubst:#expr:{{safesubst:#invoke:string|replace|{{{year}}}|–.*|plain=false}} + 1}}–{{safesubst:#expr:{{safesubst:#invoke:string|replace|{{{year}}}|–.*|plain=false}} + 2}}|^(%d%d)(%d%d)–%1(%d%d)|%1%2–%3|plain=false}}|team_link={{{ | + | |{{Infobox college sports team season/link|pre=|year={{safesubst:#invoke:string|replace|{{safesubst:#expr:{{safesubst:#invoke:string|replace|{{{year}}}|–.*|plain=false}} + 1}}–{{safesubst:#expr:{{safesubst:#invoke:string|replace|{{{year}}}|–.*|plain=false}} + 2}}|^(%d%d)(%d%d)–%1(%d%d)|%1%2–%3|plain=false}}|team_link={{{next_team|{{{team}}}}}}|team={{{team}}}|sport={{{sport}}}|sex={{{sex|}}}|text=year|noredlink=yes}} |
}} | }} | ||
}} | }} |
Latest revision as of 14:12, 8 September 2020

This subtemplate is used by {{Infobox college sports team season}} to generate the succession links, it should not be used directly.
Usage
{{Infobox college sports team season/succession | prev = | next = | py = | ny = | year = | sport = | sex = | team = | prev_team = | next_team = }}
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Subpages of this template. |