Vorlage:Nächstes Plenum: Unterschied zwischen den Versionen

Aus CCC Bremen
KKeine Bearbeitungszusammenfassung
KKeine Bearbeitungszusammenfassung
Markierung: Zurückgesetzt
Zeile 1: Zeile 1:
{{#time: {{{1|d.m.Y}}}| {{#switch: {{#time: m}} | 11 = {{#ifexpr: {{#time: d}} > {{#time: d| {{#ifexpr: {{#time: d|third tuesday of this month}} < 20 | fourth tuesday of this month | third tuesday of this month}}}} | {{#ifexpr: {{#time: d|third tuesday of second month}} < 20 | fourth tuesday of second month | third tuesday of second month}} | {{#ifexpr: {{#time: d|third tuesday of this month}} < 20 | fourth tuesday of this month | third tuesday of this month}}}} | 12 = {{#ifexpr: {{#time: d|third tuesday of first month}} < 20 | fourth tuesday of first month | third tuesday of first month}} | {{#ifexpr: {{#time: d}} > {{#time: d| {{#ifexpr: {{#time: d|third tuesday of this month}} < 20 | fourth tuesday of this month | third tuesday of this month}}}} | {{#ifexpr: {{#time: d|third tuesday of first month}} < 20 | fourth tuesday of first month | third tuesday of first month}} | {{#ifexpr: {{#time: d|third tuesday of this month}} < 20 | fourth tuesday of this month | third tuesday of this month}}}} }}}}<noinclude><pre>
{{#time: {{{1|d.m.Y}}} | {{#switch: {{#time: m}} | 11 = {{#ifexpr: {{#time: d}} > {{#time: d| {{#ifexpr: {{#time: d|third tuesday of this month}} < 20 | fourth tuesday of this month 20:30 Europe/Berlin| third tuesday of this month 20:30 Europe/Berlin}}}} | {{#ifexpr: {{#time: d|third tuesday of second month}} < 20 | fourth tuesday of second month 20:30 Europe/Berlin| third tuesday of second month 20:30 Europe/Berlin}} | {{#ifexpr: {{#time: d|third tuesday of this month}} < 20 | fourth tuesday of this month 20:30 Europe/Berlin| third tuesday of this month 20:30 Europe/Berlin}}}} | 12 = {{#ifexpr: {{#time: d|third tuesday of first month}} < 20 | fourth tuesday of first month 20:30 Europe/Berlin| third tuesday of first month 20:30 Europe/Berlin}} | {{#ifexpr: {{#time: d}} > {{#time: d| {{#ifexpr: {{#time: d|third tuesday of this month}} < 20 | fourth tuesday of this month 20:30 Europe/Berlin| third tuesday of this month 20:30 Europe/Berlin}}}} | {{#ifexpr: {{#time: d|third tuesday of first month}} < 20 | fourth tuesday of first month 20:30 Europe/Berlin| third tuesday of first month 20:30 Europe/Berlin}} | {{#ifexpr: {{#time: d|third tuesday of this month}} < 20 | fourth tuesday of this month 20:30 Europe/Berlin| third tuesday of this month 20:30 Europe/Berlin}}}} }}}}
<noinclude><pre>
$ cpp | grep -v '^#' | tr -s '@\n' '# ' ; echo
$ cpp | grep -v '^#' | tr -s '@\n' '# ' ; echo



Version vom 30. April 2022, 22:30 Uhr

21.05.2024

$ cpp | grep -v '^#' | tr -s '@\n' '# ' ; echo

#define TUE(m) {{@ifexpr: \
  {{@time: d|third tuesday of m}} < 20 | \
  fourth tuesday of m | \
  third tuesday of m}}

#define THIS_OR(o) {{@ifexpr: \
  {{@time: d}} > {{@time: d| TUE(this month)}} | \
  TUE(o) | \
  TUE(this month)}}

{{@time: {{{1|d.m.Y}}} | {{@switch: {{@time: m}}
  | 11 = THIS_OR(second month)
  | 12 = TUE(first month) 
  | THIS_OR(first month)
}}}}