Template: Meeting

(time format)
(Move docs to subpage and clean up category list.)
(35 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="border:1px solid #ccc; background-color:#efefef; padding:0.3em"><!--
# Previous:
-->{{#if: {{{prev|}}}<!--
  -->| <div style="width:20%; float:left">[[ {{{prev}}} | {{#time: j F Y | {{#sub:{{#explode:{{{prev}}}| |1}}|1|10}} }} ]]</div><!--
-->}}<!--
# Next:
-->{{#if: {{{next|}}}<!--
  -->| <div style="width:20%; float:right">[[ {{{next}}} | {{#time: j F Y | {{#sub:{{#explode:{{{next}}}| |1}}|1|10}} }} ]]</div><!--
-->}}<!--
# Minutes title:
--><div style="text-align:center; margin:0 20%">
'''{{#explode:{{PAGENAME}}| |0}} meeting'''
{{#time: j F Y | {{#sub:{{#explode:{{PAGENAME}}| |1}}|1|10}} }}
</div><!--
--></div><!--
# Related pages:
-->Related pages: {{#ifexist:{{FULLPAGENAME}}/Agenda|&middot; [[/Agenda/]] }}<!--
-->{{#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]]}}</includeonly>
[[Category:{{#sub:{{#explode:{{PAGENAME}}| |1}}|1|4}} meetings]]
<noinclude>
<noinclude>
{{#cargo_declare: _table=meetings
| type = String
| date = Date
| public_version = Boolean
}}
</noinclude><includeonly>
{{#cargo_store: _table=meetings
| type          = {{{type|}}}
| date          = {{{date|}}}
| public_version = {{{public_version|0}}}
}}</includeonly>
{{navigation header
|prev = {{#cargo_query:
  | tables            = meetings
  | 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
  | default          =
  | more results text =
}}
|next = {{#cargo_query:
  | tables            = meetings
  | 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
  | default          =
  | more results text =
}}
|title = '''{{ucfirst:{{{type}}}}} meeting'''
<p>{{#time: j F Y | {{{date|}}} }}</p>
}}
''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).''


== Usage of this template ==
<includeonly>
 
{{#ifexpr: {{#time: U | {{{date|}}} }} > {{#time: U }} |[[Category:Future meetings]]|[[Category:Past meetings]]}}
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>
[[Category:{{#time: Y | {{{date|}}} }} meetings]]
 
[[Category:All meetings]]
<pre><nowiki>
</includeonly><noinclude>{{documentation}}</noinclude>
{{meeting
| prev =
| next =
}}</nowiki>

Revision as of 01:55, 1 August 2019

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

{{{type}}} meeting

29 March 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