Difference between revisions of "Template:ShowEvent"

From Pirate Party Belgium
Jump to: navigation, search
m (fix time bug)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ask: [[-Has subobject::{{{1}}}]]
+
<includeonly>{{#if: {{{1|}}}
| ?Has page
+
| {{#ask: [[Has page::{{#arraymap:{{{1}}}|,|x|x|{{#if: x | {{!}}{{!}} }}}}]] [[Has event type::+]]
| ?Has title  
+
  | ?Has page
| ?Has date  
+
  | ?Has title  
| ?Has location  
+
  | ?Has date  
| ?Organized by  
+
  | ?Has time
| ?Has time
+
  | ?Has location  
| format = list
+
  | ?Organized by  
| template = Event popup
+
  | format = ul
| link = none
+
  | template = Event popup
| mainlabel=-
+
  | link = none
| sep = {{#if: {{{sep|}}}  
+
  | mainlabel=-
   | {{{sep}}}  
+
  | sort = {{#if: {{{sort|}}} | Has date, }}Has title
   | <nowiki />
+
   | order = {{#if: {{{sort|}}} | {{{order|asc}}}, }}asc
* }}
+
   }}
}}</includeonly>
+
}}</includeonly><noinclude>
 +
== Usage ==
 +
 
 +
<nowiki>{{ShowEvent|page1, page2|sort=false|order=asc}}</nowiki>
 +
 
 +
== Example ==
 +
 
 +
=== Events sorted by title only ===
 +
 
 +
<nowiki>{{ShowEvent|Crew BW/Event/04 09 2017/1, Pirate Lab/Meeting/26 08 2017}}</nowiki>
 +
 
 +
{{ShowEvent|Crew BW/Event/04 09 2017/1, Pirate Lab/Meeting/26 08 2017}}
 +
 
 +
=== Events sorted by date and title ===
 +
 
 +
<nowiki>{{ShowEvent|Crew BW/Event/04 09 2017/1, Pirate Lab/Meeting/26 08 2017|sort=true}}</nowiki>
 +
 
 +
{{ShowEvent|Crew BW/Event/04 09 2017/1, Pirate Lab/Meeting/26 08 2017|sort=true}}
 +
</noinclude>

Latest revision as of 22:34, 4 November 2017

Usage

{{ShowEvent|page1, page2|sort=false|order=asc}}

Example

Events sorted by title only

{{ShowEvent|Crew BW/Event/04 09 2017/1, Pirate Lab/Meeting/26 08 2017}}

Events sorted by date and title

{{ShowEvent|Crew BW/Event/04 09 2017/1, Pirate Lab/Meeting/26 08 2017|sort=true}}