Template:Event

From syn2cat - HackerSpace.lu
(Difference between revisions)
Jump to: navigation, search
m (do not copypast, use form!)
m (trying to use an if parser function to test for set dates.)
Line 91: Line 91:
 
{{#ifeq: {{{recurring|}}} | no | {{#arraymap: {{#dates: | StartDate={{{from}}} | EndDate={{{till}}} }}|,|x|[[Has date::x| ]] | }} | [[Category:RecurringEvent]] }}
 
{{#ifeq: {{{recurring|}}} | no | {{#arraymap: {{#dates: | StartDate={{{from}}} | EndDate={{{till}}} }}|,|x|[[Has date::x| ]] | }} | [[Category:RecurringEvent]] }}
 
<!-- Set recurring data using a switch -->
 
<!-- Set recurring data using a switch -->
{{#switch: {{{recurring}}}
+
{{#if: {{{from|}}} |
| daily = {{#set_recurring_event: property=Has date |start={{{from}}} | end={{{till}}} |unit=day |period=1 }}
+
{{#switch: {{{recurring}}}
| weekly = {{#set_recurring_event: property=Has date |start={{{from}}} | end={{{till}}} |unit=week |period=1 }}
+
| daily = {{#set_recurring_event: property=Has date |start={{{from}}} | end={{{till}}} |unit=day |period=1 }}
| bi-weekly = {{#set_recurring_event: property=Has date |start={{{from}}} | end={{{till}}} |unit=week |period=2 }}
+
| weekly = {{#set_recurring_event: property=Has date |start={{{from}}} | end={{{till}}} |unit=week |period=1 }}
| monthly = {{#set_recurring_event: property=Has date |start={{{from}}} | end={{{till}}} |unit=month |period=1 }}
+
| bi-weekly = {{#set_recurring_event: property=Has date |start={{{from}}} | end={{{till}}} |unit=week |period=2 }}
| dayofweekinmonth = {{#set_recurring_event: property=Has date |start={{{from}}} | end={{{till}}} |unit=dayofweekinmonth |period=1 }}
+
| monthly = {{#set_recurring_event: property=Has date |start={{{from}}} | end={{{till}}} |unit=month |period=1 }}
| bi-monthly = {{#set_recurring_event: property=Has date |start={{{from}}} | end={{{till}}} |unit=month |period=2 }}
+
| dayofweekinmonth = {{#set_recurring_event: property=Has date |start={{{from}}} | end={{{till}}} |unit=dayofweekinmonth |period=1 }}
| yearly = {{#set_recurring_event: property=Has date |start={{{from}}} | end={{{till}}} |unit=year |period=1 }}
+
| bi-monthly = {{#set_recurring_event: property=Has date |start={{{from}}} | end={{{till}}} |unit=month |period=2 }}
 +
| yearly = {{#set_recurring_event: property=Has date |start={{{from}}} | end={{{till}}} |unit=year |period=1 }}
 +
}}
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Revision as of 19:38, 5 September 2011


Usage

Please use the event form to add your event. It will validate your input.

Personal tools
Namespaces

Variants
Actions
Navigation
syn2cat
Hackerspace
Activities
Initiatives
Community
Tools
Tools