Difference between revisions of "Template:Getting started tracker"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) m |
m (<br> in link text instead of 2 split links) |
||
Line 1: | Line 1: | ||
{{#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;"> | {{#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; flex-grow:0 !important;|parentstyle=flex-grow: 0!important;|bgcolor=#ffc}} | {{Tracker kite|style=border-left: 0 !important; border-radius:20px 0 0 20px; flex-grow:0 !important;|parentstyle=flex-grow: 0!important;|bgcolor=#ffc}} | ||
− | {{Tracker kite|'''[[How to start a team|Start | + | {{Tracker kite|'''[[How to start a team|Start<br/>a team]]'''|lines=2|bgcolor=#ffc}} |
− | {{Tracker kite|'''[[How to run a practice|Run a | + | {{Tracker kite|'''[[How to run a practice|Run a<br/>practice]]'''|lines=2|bgcolor=#fc8}} |
− | {{Tracker kite|'''[[How to study|Study for a | + | {{Tracker kite|'''[[How to study|Study for a<br/>tournament]]'''|lines=2|bgcolor=#f84}} |
{{#ifexpr:{{#var:acfindex}}=0|{{Tracker kite|narrow=yes|bgcolor=#f84}}}} | {{#ifexpr:{{#var:acfindex}}=0|{{Tracker kite|narrow=yes|bgcolor=#f84}}}} | ||
{{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|'''[[{{#var:fallpage}}|ACF Fall]]'''<br/>{{{falldatetext|{{{falldate|Unannounced}}}}}}|lines=2|light={{#ifexpr:{{#var:acfindex}}<1|y}}|active={{#ifexpr:{{#var:acfindex}}>=1|y}}}} |
Latest revision as of 12:35, 20 July 2024
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 or is otherwise "not pretty". 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. |