Template:MapEvents: Difference between revisions

From Pirate Party Belgium
Jump to navigation Jump to search
(Created page with "<includeonly>{{#ask: {{#if: {{{type|}}} | [[Category:{{{type}}}]] | Category:Event }} {{#if: {{{1|}}} | [[Organized by::{{{1}}}]] | Organized by::+ }} Has coor...")
 
mNo edit summary
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ask: {{#if: {{{type|}}}  
<includeonly>{{#ask: {{#if: {{{type|}}}  
| [[Category:{{{type}}}]]  
| [[Has event type::{{#arraymap:{{{type}}}|,|x|x|{{!}}{{!}}}}]]  
| [[Category:Event]]  
| [[Has event type::+]]  
}} {{#if: {{{1|}}}  
}} {{#if: {{{1|}}}  
| [[Organized by::{{{1}}}]]  
| [[Organized by::{{#arraymap:{{{1}}}|,|x|x|{{!}}{{!}}}}]]  
| [[Organized by::+]]  
}} [[Has coordinates::+]] {{#if: {{{start|}}} | [[Has date::>{{#time: Y/m/j|{{{start}}} }}]] }} {{#if: {{{end|}}} | [[Has date::<{{#time: Y/m/j|{{{end}}} }}]] }}
}} [[Has coordinates::+]] {{#if: {{{start|}}} | [[Has date::>{{#time: Y/m/j|{{{start}}} }}]] }}
| ?Has coordinates
| ?Has coordinates
| format = leaflet
| ?Has page=page
| ?Has title=title
| ?Has date#ISO=date
| ?Has time=time
| ?Has location=location
| ?Organized by=workgroup
| format = map
| template = Event popup
| sort = Has date
| sort = Has date
| order = {{{order|desc}}}
| order = {{{order|desc}}}
| limit = {{{limit|20}}}
| limit = {{{limit|20}}}
| showtitle=off
| enablefullscreen = yes
| scrollwheelzoom = no
| markercluster = yes
}}</includeonly><noinclude>
}}</includeonly><noinclude>
== Usage ==
== Usage ==


  <nowiki>{{MapEvents|An awesome team|type=Meeting|start=now|order=desc|limit=20}}</nowiki>
  <nowiki>{{MapEvents|An awesome team|type=Meeting|start=now|end=tomorrow|order=desc|limit=20}}</nowiki>


== Example ==
== Example ==
Line 24: Line 34:
{{MapEvents|start=now|order=asc}}
{{MapEvents|start=now|order=asc}}


=== Map of future meetings ===
=== Map of events from last week to next week ===


  <nowiki>{{MapEvents|type=Meeting|start=now|order=asc}}</nowiki>
  <nowiki>{{MapEvents|start=-1 week|end=+1 week}}</nowiki>


{{MapEvents|type=Meeting|start=now}}
{{MapEvents|start=-1 week|end=+1 week}}


=== Map of 20 most recent events ===
=== Map of 20 most recent events ===
This will a show a map of 20 events ordered by descending date. For instance, if there are 5 incoming events, it will also show 15 past events.


  <nowiki>{{MapEvents}}</nowiki>
  <nowiki>{{MapEvents}}</nowiki>
Line 36: Line 48:
{{MapEvents}}
{{MapEvents}}


=== Map of '''all''' pirate beers by [[Crew BW]] ===
=== Map of '''all''' pirate drinks by [[Crew BW]] ===


  <nowiki>{{MapEvents|Crew BW|type=PirateBeer}}</nowiki>
  <nowiki>{{MapEvents|Crew BW|type=PirateDrink}}</nowiki>


{{MapEvents|Crew BW|type=PirateBeer}}
{{MapEvents|Crew BW|type=PirateDrink}}


</noinclude>
</noinclude>

Latest revision as of 11:52, 31 January 2018

Usage

{{MapEvents|An awesome team|type=Meeting|start=now|end=tomorrow|order=desc|limit=20}}

Example

Map of future events

{{MapEvents|start=now|order=asc}}


Map of events from last week to next week

{{MapEvents|start=-1 week|end=+1 week}}


Map of 20 most recent events

This will a show a map of 20 events ordered by descending date. For instance, if there are 5 incoming events, it will also show 15 past events.

{{MapEvents}}
Loading map...

Map of all pirate drinks by Crew BW

{{MapEvents|Crew BW|type=PirateDrink}}
Loading map...