Difference between revisions of "Template:ExternalEventSidebar"
(use css class pirate-sidebar + topics support + icon) |
(link to next and previous events) |
||
Line 7: | Line 7: | ||
|- | |- | ||
! {{int:sidebar-date}} | ! {{int:sidebar-date}} | ||
− | | {{#if: {{{date|}}} | {{#arraymap:{{{date}}}|,|x|{{#time:D j F Y|x|{{int:language-code}} }}|<br />}} | ? }} | + | | {{#if: {{{date|}}} |
+ | | {{#arraymap:{{{date}}}|,|x|{{#time:D j F Y|x|{{int:language-code}} }}|<br />}}{{#vardefine: next | ||
+ | | {{NextEventLink | ||
+ | | workgroup = {{{workgroup|}}} | ||
+ | | topics = {{{topics|}}} | ||
+ | | type = External | ||
+ | | date = {{{date}}} {{#var:time}} | ||
+ | }} | ||
+ | }}{{#vardefine: prev | ||
+ | | {{PrevEventLink | ||
+ | | workgroup = {{{workgroup|}}} | ||
+ | | topics = {{{topics|}}} | ||
+ | | type = External | ||
+ | | date = {{{date}}} {{#var:time}} | ||
+ | }} | ||
+ | }} | ||
+ | | ? }} | ||
|- | |- | ||
! {{int:sidebar-time}} | ! {{int:sidebar-time}} | ||
Line 39: | Line 55: | ||
! {{int:sidebar-url}} | ! {{int:sidebar-url}} | ||
{{!}} {{#arraymap:{{{url}}}|,|x|[x]}} | {{!}} {{#arraymap:{{{url}}}|,|x|[x]}} | ||
+ | {{!}}- }} | ||
+ | {{#if: {{#var:prev|}}{{#var:next|}} | ||
+ | | | ||
+ | {{!}} colspan=2 {{!}} | ||
+ | {{{!}} style="width:100%; text-align:center;" | ||
+ | {{!}} style="width:50%" {{!}} {{#if: {{#var:prev|}} | ||
+ | | [[{{#var: prev}} | {{int:sidebar-previous-event}}]] | ||
+ | }} | ||
+ | {{!}} style="width:50%" {{!}} {{#if: {{#var:next|}} | ||
+ | | [[{{#var: next}} | {{int:sidebar-next-event}}]] | ||
+ | }} | ||
+ | {{!}}} | ||
{{!}}- }} | {{!}}- }} | ||
{{#if: {{{topics|}}} | | {{#if: {{{topics|}}} | |
Revision as of 09:37, 26 September 2017
| |||
Date | Mon 14 November 2016 | ||
---|---|---|---|
Time | 12:00am | ||
Venue | Flying Dutchman | ||
Address |
| ||
City | |||
Price | Free | ||
Website | [1] | ||
Topics | Some good topic | ||
Loading map...
| |||
Find routes on OpenStreetMap | |||
Export | iCalendar | ||
Clone this event |
Usage
{{ExternalEventSidebar |title = An awesome event |workgroup = An awesome crew |topics = Some good topic |date = 14 nov 2016 |time = 12am |venue = Flying Dutchman |linkvenue = http://www.the-flying-dutchman.nl/ |address = Treasure Island 666 |postalcode = 9000 |city = Atlantica |url = https://pirateparty.be |price = free }}