Difference between revisions of "Template:NextQuarterMeetingDate"

From Hackerspace ACKspace
Jump to: navigation, search
m (corrected year in calculating the weekday for "next year's" meetings)
(Swapped day and year to create semi-ISO date (it formats wrong on the #ASK unordered list command))
 
Line 9: Line 9:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
[[Category:Workaround templates|{{PAGENAME}}]]
 
[[Category:Workaround templates|{{PAGENAME}}]]
</noinclude><includeonly>{{#ifexpr: {{NextQuarterMonth}} < {{CURRENTMONTH}} | {{#expr: 7 - {{#time: w|1-{{NextQuarterMonth}}-{{#expr:{{CURRENTYEAR}}+1}} }} }}-{{NextQuarterMonth}}-{{#expr:{{CURRENTYEAR}}+1}} | {{#expr: 7 - {{#time: w|1-{{NextQuarterMonth}}-{{CURRENTYEAR}} }} }}-{{NextQuarterMonth}}-{{CURRENTYEAR}} }}</includeonly>
+
</noinclude><includeonly>{{#ifexpr: {{NextQuarterMonth}} < {{CURRENTMONTH}} | {{#expr:{{CURRENTYEAR}}+1}}-{{NextQuarterMonth}}-{{#expr: 7 - {{#time: w|1-{{NextQuarterMonth}}-{{#expr:{{CURRENTYEAR}}+1}} }} }} | {{CURRENTYEAR}} }}-{{NextQuarterMonth}}-{{#expr: 7 - {{#time: w|1-{{NextQuarterMonth}}-{{CURRENTYEAR}} }} }}</includeonly>

Latest revision as of 10:45, 27 February 2023

This is the "NextQuarterMeetingDate" template. It should be called in the following format:

{{NextQuarterMeetingDate}}

Which will create the following text: 2024-7-6

Edit the page to see the template text.