Difference between revisions of "Template:Getting started tracker"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) (Created page with "<div style="display:flex; flex-direction: row; background: #f9f9f9; padding: 12px; border-radius: 20px; overflow-x: scroll;"> {{Tracker kite|style=border-left: 0 !important; b...") |
Kevin Wang (talk | contribs) |
||
Line 1: | Line 1: | ||
− | <div style="display:flex; flex-direction: row; background: #f9f9f9; padding: 12px; border-radius: 20px; overflow-x: | + | {{#vardefine:fallpage|{{{fallpage|2022 ACF Fall}}}}}{{#vardefine:winterpage|{{{winterpage|2022 ACF Winter}}}}}{{#vardefine:regionalspage|{{{regionalspage|2023 ACF Regionals}}}}}{{#vardefine:nationalspage|{{{nationalspage|2023 ACF Nationals}}}}}{{#vardefine:falldate|{{{falldate|xx}}}}}{{#vardefine:winterdate|{{{winterdate|xx}}}}}{{#vardefine:regionalsdate|{{{regionalsdate|xx}}}}}{{#vardefine:nationalsdate|{{{nationalsdate|xx}}}}}{{#vardefine:today|{{#time:Ymd}}}}{{#vardefine:acfindex|{{#iferror:{{#time:Ymd|{{#var:falldate}}}}|0|{{#ifexpr:{{#var:today}}<{{#time:Ymd|{{#var:falldate}}}}|1|{{#iferror:{{#time:Ymd|{{#var:winterdate}}}}|1|{{#ifexpr:{{#var:today}}<{{#time:Ymd|{{#var:winterdate}}}}|2|{{#iferror:{{#time:Ymd|{{#var:regionalsdate}}}}|2|{{#ifexpr:{{#var:today}}<{{#time:Ymd|{{#var:regionalsdate}}}}|3|{{#iferror:{{#time:Ymd|{{#var:nationalsdate}}}}|3|{{#ifexpr:{{#var:today}}<{{#time:Ymd|{{#var:nationalsdate}}}}|4|5}}}}}}}}}}}}}}}}}}<div style="display:flex; flex-direction: row; background: #f9f9f9; padding: 12px; border-radius: 20px; overflow-x: overlay;"> |
{{Tracker kite|style=border-left: 0 !important; border-radius:20px 0 0 20px;}} | {{Tracker kite|style=border-left: 0 !important; border-radius:20px 0 0 20px;}} | ||
{{Tracker kite|[[How to start a team|Start]]<br/>[[How to start a team|a team]]|lines=2}} | {{Tracker kite|[[How to start a team|Start]]<br/>[[How to start a team|a team]]|lines=2}} | ||
{{Tracker kite|[[How to run a practice|Run a]]<br/>[[How to run a practice|practice]]|lines=2}} | {{Tracker kite|[[How to run a practice|Run a]]<br/>[[How to run a practice|practice]]|lines=2}} | ||
{{Tracker kite|[[Studying|Study for a]]<br/>[[Studying|tournament]]|lines=2}} | {{Tracker kite|[[Studying|Study for a]]<br/>[[Studying|tournament]]|lines=2}} | ||
− | {{Tracker kite|[[{{ | + | {{#ifexpr:{{#var:acfindex}}=0|{{Tracker kite|narrow=yes}}}} |
− | {{Tracker kite|[[{{ | + | {{Tracker kite|[[{{#var:fallpage}}|ACF Fall]]<br/>{{{falldatetext|{{{falldate|Unannounced}}}}}}|lines=2|light={{#ifexpr:{{#var:acfindex}}<1|y}}|active={{#ifexpr:{{#var:acfindex}}=1|y}}}} |
− | {{Tracker kite|[[{{ | + | {{#ifexpr:{{#var:acfindex}}=1|{{Tracker kite|narrow=yes|active=yes}}}} |
− | {{Tracker kite|[[{{ | + | {{Tracker kite|[[{{#var:winterpage}}|ACF Winter]]<br/>{{{winterdatetext|{{{winterdate|Unannounced}}}}}}|lines=2|light={{#ifexpr:{{#var:acfindex}}<2|y}}|active={{#ifexpr:{{#var:acfindex}}=2|y}}}} |
+ | {{#ifexpr:{{#var:acfindex}}=2|{{Tracker kite|narrow=yes|active=yes}}}} | ||
+ | {{Tracker kite|[[{{#var:regionalspage}}|ACF Regionals]]<br/>{{{regionalsdatetext|{{{regionalsdate|Unannounced}}}}}}|lines=2|light={{#ifexpr:{{#var:acfindex}}<3|y}}|active={{#ifexpr:{{#var:acfindex}}=3|y}}}} | ||
+ | {{#ifexpr:{{#var:acfindex}}=3|{{Tracker kite|narrow=yes|active=yes}}}} | ||
+ | {{Tracker kite|[[{{#var:nationalspage}}|ACF Nationals]]<br/>{{{nationalsdatetext|Unannounced}}}|lines=2|light=yes}} | ||
{{Tracker kite|narrow=yes|light=yes}} | {{Tracker kite|narrow=yes|light=yes}} | ||
− | { | + | </div><noinclude> |
− | </ | + | {| class="wikitable" |
+ | ! Argument | ||
+ | ! Use | ||
+ | |- | ||
+ | |fallpage | ||
+ | |rowspan=4|Name of page for tournament, e.g. "2022 ACF Fall" | ||
+ | |- | ||
+ | |winterpage | ||
+ | |- | ||
+ | |regionalspage | ||
+ | |- | ||
+ | |nationalspage | ||
+ | |- | ||
+ | |falldate | ||
+ | |rowspan=4|The first or only day the tournament is held in a "pretty" format, e.g. "October 15, 2022". | ||
+ | |- | ||
+ | |winterdate | ||
+ | |- | ||
+ | |regionalsdate | ||
+ | |- | ||
+ | |nationalsdate | ||
+ | |- | ||
+ | |falldatetext | ||
+ | |rowspan=3|Optional text indicating the date of the tournament to be displayed if a tournament spans multiple days. Can also be used if date is unknown, but that complicates the code for coloring. | ||
+ | |- | ||
+ | |winterdatetext | ||
+ | |- | ||
+ | |regionalsdatetext | ||
+ | |- | ||
+ | |nationalsdatetext | ||
+ | |Text indicating the range of dates that the tournament is on. Mandatory because Nationals is always multiple days. | ||
+ | |} | ||
+ | </noinclude> |
Revision as of 00:08, 11 September 2022
Argument | Use |
---|---|
fallpage | Name of page for tournament, e.g. "2022 ACF Fall" |
winterpage | |
regionalspage | |
nationalspage | |
falldate | The first or only day the tournament is held in a "pretty" format, e.g. "October 15, 2022". |
winterdate | |
regionalsdate | |
nationalsdate | |
falldatetext | Optional text indicating the date of the tournament to be displayed if a tournament spans multiple days. Can also be used if date is unknown, but that complicates the code for coloring. |
winterdatetext | |
regionalsdatetext | |
nationalsdatetext | Text indicating the range of dates that the tournament is on. Mandatory because Nationals is always multiple days. |