Difference between revisions of "Template:ShowEvent"
(sort by title) |
m (fix time bug) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#ask: [[Has page::{{#arraymap:{{{1}}}|,|x|x|{{!}}{{!}}}}]] [[Has event type::+]] | + | <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 location | |
− | | format = ul | + | | ?Organized by |
− | | template = Event popup | + | | format = ul |
− | | link = none | + | | template = Event popup |
− | | mainlabel=- | + | | link = none |
− | | sort = {{#if: {{{sort|}}} | Has date, }}Has title | + | | mainlabel=- |
− | | order = {{#if: {{{sort|}}} | {{{order|asc}}}, }}asc | + | | sort = {{#if: {{{sort|}}} | Has date, }}Has title |
− | }}</includeonly> | + | | order = {{#if: {{{sort|}}} | {{{order|asc}}}, }}asc |
+ | }} | ||
+ | }}</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}}
- Débat sans conférence: Manger de la viande ?
Mon 4 September 2017, 8:00pm
Maison du Développement Durable – pl. Agora 2, Louvain-la-Neuve - Pirate Lab August 2017
Sat 26 August 2017, 1:00pm
D'autres mondes – Rue Notre Dame 13, Gembloux
Events sorted by date and title
{{ShowEvent|Crew BW/Event/04 09 2017/1, Pirate Lab/Meeting/26 08 2017|sort=true}}
- Pirate Lab August 2017
Sat 26 August 2017, 1:00pm
D'autres mondes – Rue Notre Dame 13, Gembloux - Débat sans conférence: Manger de la viande ?
Mon 4 September 2017, 8:00pm
Maison du Développement Durable – pl. Agora 2, Louvain-la-Neuve