Template: Meeting

No edit summary
No edit summary
Line 7: Line 7:
</noinclude><includeonly>
</noinclude><includeonly>
{{#cargo_store: _table=meetings
{{#cargo_store: _table=meetings
| type = {{#if: {{{type|}}} | {{{type}}} | {{#explode:{{PAGENAME}}| |0}} }}
| type           = {{{type|}}}
| date = {{#if: {{{date|}}} | {{{date}}} | {{#sub:{{#explode:{{PAGENAME}}| |1}}|1|10}} }}
| date           = {{{date|}}}
| public_version = {{{public_version|0}}}
| public_version = {{{public_version|0}}}
}}
}}
Line 14: Line 14:
|prev = {{#cargo_query:
|prev = {{#cargo_query:
   | tables            = meetings
   | tables            = meetings
   | fields            = CONCAT('[[Meeting:',type,' (',date,')|',DATE_FORMAT(date, '%e %M %Y'),']]')=prev_date |where=date IS NOT NULL AND date < '{{{date|{{#sub:{{#explode:{{PAGENAME}}| |1}}|1|10}}}}}'
   | fields            = CONCAT('[[Meeting:',type,' (',date,')|',DATE_FORMAT(date, '%e %M %Y'),']]')=prev_date
  | where             = date IS NOT NULL AND date < '{{{date}}}'
   | limit            = 1
   | limit            = 1
   | default          =
   | default          =
Line 21: Line 22:
|next = {{#cargo_query:
|next = {{#cargo_query:
   | tables            = meetings
   | tables            = meetings
   | fields            = CONCAT('[[Meeting:',type,' (',date,')|',DATE_FORMAT(date, '%e %M %Y'),']]')=prev_date |where=date IS NOT NULL AND date > '{{{date|{{#sub:{{#explode:{{PAGENAME}}| |1}}|1|10}}}}}'
   | fields            = CONCAT('[[Meeting:',type,' (',date,')|',DATE_FORMAT(date, '%e %M %Y'),']]')=prev_date
  | where             = date IS NOT NULL AND date > '{{{date|}}}'
   | limit            = 1
   | limit            = 1
   | default          =
   | default          =

Revision as of 07:05, 6 October 2018

This template defines the table "meetings". View table.


Usage of this template

All meeting pages must be of the form Meeting:[type] ([date]), e.g. Meeting:Committee (2017-09-28)

{{meeting
| type = <!-- one of: committee, public, agm, sgm
| date = <!-- date of the meeting in yyyy-mm-dd format
}}


Discuss this page