Template:MeetingSidebar: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
mNo edit summary
m (regex for time)
Line 1: Line 1:
<includeonly>{| style="width: 300px; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; position:relative; text-align:left;"
<includeonly>{{#vardefine: time | {{TimeRegex | {{{time|}}} }} }}{| style="width: 300px; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; position:relative; text-align:left;"
! style="text-align: center; background-color: #692D89; color:white;padding:0.3em; font-size:medium;" colspan="2" |[[Has title::{{{meetingname|Pirate Meeting}}}]]
! style="text-align: center; background-color: #692D89; color:white;padding:0.3em; font-size:medium;" colspan="2" |[[Has title::{{{meetingname|Pirate Meeting}}}]]
|-
|-
Line 14: Line 14:
   | Date  
   | Date  
   }}
   }}
| {{#if: {{{date|}}} | [[Has date::{{#time:Y/m/d H:i|{{{date}}} {{{time|}}} }}|{{#time:D j F Y|{{{date}}}|{{{lang|en}}} }}]] | ? }}  
| {{#if: {{{date|}}} | [[Has date::{{#time:Y/m/d H:i|{{{date}}} {{#var: time}}|{{#time:D j F Y|{{{date}}}|{{{lang|en}}} }}]] | ? }}  
|-
|-
! style="vertical-align: top;" | {{#switch: {{{lang|}}}  
! style="vertical-align: top;" | {{#switch: {{{lang|}}}  
Line 21: Line 21:
   | Time  
   | Time  
   }}
   }}
| {{#if: {{{time|}}} | [[Has time::{{{time}}}]] | ? }}
| {{#if: {{{time|}}} | [[Has time::{{#var: time}}|{{{time}}}]] | ? }}
|-
|-
{{#if: {{{venue|}}} |  
{{#if: {{{venue|}}} |  
Line 71: Line 71:
| style="width:50%" | {{#if: {{{date|}}}  
| style="width:50%" | {{#if: {{{date|}}}  
   | {{#vardefine: prev  
   | {{#vardefine: prev  
     | {{#ask: [[Category:Meeting]] [[Organized by::{{{workgroup|}}}]] [[Has date::<<{{#time:Y/m/d H:i|{{{date}}} {{{time|}}} }}]]  
     | {{#ask: [[Category:Meeting]] [[Organized by::{{{workgroup|}}}]] [[Has date::<<{{#time:Y/m/d H:i|{{{date}}} {{#var:time}} }}]]  
       | limit=1  
       | limit=1  
       | searchlabel=
       | searchlabel=
Line 89: Line 89:
| style="width:50%" | {{#if: {{{date|}}}  
| style="width:50%" | {{#if: {{{date|}}}  
   | {{#vardefine: next  
   | {{#vardefine: next  
     | {{#ask: [[Category:Meeting]] [[Organized by::{{{workgroup|}}}]] [[Has date::>>{{#time:Y/m/d H:i|{{{date}}} {{{time|}}} }}]]  
     | {{#ask: [[Category:Meeting]] [[Organized by::{{{workgroup|}}}]] [[Has date::>>{{#time:Y/m/d H:i|{{{date}}} {{#var:time}} }}]]  
       | limit=1  
       | limit=1  
       | searchlabel=
       | searchlabel=

Revision as of 12:48, 11 February 2017

Our awesome meeting
Workgroup An awesome team
Date [[Has date::2016/11/14 01:00
Time 12:00am
Venue Flying Dutchman
Address
Treasure Island 666
9000 Atlantica
City
Attendees Jack, Mary, Jurgen
Absentees Paul, Eve
Loading map...

Usage

{{MeetingSidebar
|lang = en
|meetingname = Our awesome meeting
|workgroup = An awesome team
|date = 14 nov 2016
|time = 12:00am
|venue = Flying Dutchman
|address = Treasure Island 666
|postalcode = 9000
|city = Atlantica
|attendees = Jack, Mary, Jurgen
|absentees = Paul, Eve
|agenda = #Agenda
|minutes = #Minutes
}}