Template:Applicant: Difference between revisions

From Tsadra Foundation Advanced Contemplative Scholarships
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 99: Line 99:
|-  
|-  
! Retreat dates:
! Retreat dates:
| From [[startdate::{{#show:{{{application}}}|?startdate}}]]<br>To [[enddate::{{#show:{{{application}}}|?enddate}}]]{{#ifeq: {{#expr: {{#time: U | {{#show:{{{application}}}|?startdate}} }} < {{#time: U | {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }} }}
| From [[startdate::{{#show:{{{application}}}|?startdate}}]]<br>To [[enddate::{{#show:{{{application}}}|?enddate}}]]{{#set:
|0
|[[RetreatStatus::Upcoming| ]]
|{{#ifeq: {{#expr: {{#time: U | {{#show:{{{application}}}|?enddate}} }} > {{#time: U | {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }} }}
|0
|[[RetreatStatus::Finished| ]]
|[[RetreatStatus::Ongoing| ]]
}}
}}{{#set:
|InRetreatDuring={{#time: Y | {{#show:{{{application}}}|?startdate}} }}{{#ifexpr: ({{#time: Y | {{#show:{{{application}}}|?startdate}} }}+1)<({{#time: Y | {{#show:{{{application}}}|?enddate}} }}+1)
|InRetreatDuring={{#time: Y | {{#show:{{{application}}}|?startdate}} }}{{#ifexpr: ({{#time: Y | {{#show:{{{application}}}|?startdate}} }}+1)<({{#time: Y | {{#show:{{{application}}}|?enddate}} }}+1)
|,{{#expr:{{#time: Y | {{#show:{{{application}}}|?startdate}} }}+1}}
|,{{#expr:{{#time: Y | {{#show:{{{application}}}|?startdate}} }}+1}}
Line 123: Line 115:
|,{{#expr:{{#time: Y | {{#show:{{{application}}}|?startdate}} }}+5}}
|,{{#expr:{{#time: Y | {{#show:{{{application}}}|?startdate}} }}+5}}
|
|
}}
|RetreatStatus={{#ifeq: {{#expr: {{#time: U | {{#show:{{{application}}}|?startdate}} }} < {{#time: U | {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }} }}
|0
|Upcoming
|{{#ifeq: {{#expr: {{#time: U | {{#show:{{{application}}}|?enddate}} }} > {{#time: U | {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} }} }}
|0
|Finished
|Ongoing
}}
}}
}}
}}
}}

Revision as of 17:49, 2 December 2021