Template: Meeting

No edit summary
(Move docs to subpage and clean up category list.)
(6 intermediate revisions by the same user not shown)
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}}}
}}
}}</includeonly>
{{navigation header
{{navigation header
|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('[[',_pageName,'|',DATE_FORMAT(date, '%e %M %Y'),']]')=prev_date
  | where             = date IS NOT NULL AND date < '{{{date}}}'
  | order by          = date DESC
   | limit            = 1
   | limit            = 1
   | default          =
   | default          =
Line 21: Line 23:
|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('[[',_pageName,'|',DATE_FORMAT(date, '%e %M %Y'),']]')=prev_date
  | where             = date IS NOT NULL AND date > '{{{date|}}}'
  | order by          = date ASC
   | limit            = 1
   | limit            = 1
   | default          =
   | default          =
   | more results text =
   | more results text =
}}
}}
|title = '''{{#if: {{{type|}}} | {{{type}}} | {{#explode:{{PAGENAME}}| |0}} }} meeting'''
|title = '''{{ucfirst:{{{type}}}}} meeting'''
<p>{{#time: j F Y | {{{date|{{#sub:{{#explode:{{PAGENAME}}| |1}}|1|10}}}}}</p>
<p>{{#time: j F Y | {{{date|}}} }}</p>
}}
}}
''Related pages:'' {{#ifexist:{{FULLPAGENAME}}/Agenda| &middot; [[/Agenda/]] }}<!--
''This meeting has two pages: one [[CommWiki:{{FULLPAGENAME}}|restricted-access page]] (only for members of the current [[Committee]]) and one [[officialwiki:{{FULLPAGENAME}}|public-access page]] (which may have sensitive information redacted).''
-->{{#ifexist:{{FULLPAGENAME}}/Transcript| &middot; [[/Transcript/]] }}<!--
-->{{#ifexist:{{FULLPAGENAME}}/Minutes| &middot; [[/Minutes/]] }}<!--
-->&middot; [[CommWiki:{{FULLPAGENAME}}|Restricted-access minutes]]
 
<includeonly>{{#ifexpr: {{#time: U | {{#sub:{{#explode:{{PAGENAME}}| |1}}|1|10}} }} > {{#time: U }} |[[Category:Future meetings]]|[[Category:Past meetings]]}}
[[Category:{{#sub:{{#explode:{{PAGENAME}}| |1}}|1|4}} {{#explode:{{PAGENAME}}| |0}} meetings]]</includeonly><noinclude>
 
== Usage of this template ==
 
All meeting pages must be of the form <code>Meeting:<span style="color:green">[type]</span> (<span style="color:green">[date]</span>)</code>, e.g. <code>Meeting:Committee (2017-09-28)</code>
 
<pre><nowiki>
{{meeting
| type = <!-- one of: committee, public, agm, sgm
| date = <!-- date of the meeting in yyyy-mm-dd format
}}</nowiki></pre>


<includeonly>[[Category:All meetings]]</includeonly>
<includeonly>
{{#ifexpr: {{#time: U | {{{date|}}} }} > {{#time: U }} |[[Category:Future meetings]]|[[Category:Past meetings]]}}
[[Category:{{#time: Y | {{{date|}}} }} meetings]]
[[Category:All meetings]]
</includeonly><noinclude>{{documentation}}</noinclude>

Revision as of 01:55, 1 August 2019

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

{{{type}}} meeting

16 April 2024

This meeting has two pages: one restricted-access page (only for members of the current Committee) and one public-access page (which may have sensitive information redacted).

[edit] Template documentation

Usage of this template

{{meeting
| type           = <!-- one of: committee, public, agm, sgm -->
| date           = <!-- date of the meeting in yyyy-mm-dd format -->
| public_version = <!-- whether or not there is a page on the public wiki for this meeting; 'yes' or empty -->
}}
Discuss this page