Difference between revisions of "Template:Meeting"

From Hive13 Wiki
Jump to navigation Jump to search
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#set:MeetingDate={{{MeetingDate}}}}}
+
{{#set:MeetingDate={{#if: {{{MeetingDate|}}} | {{{MeetingDate}}} | {{#time:Y/m/d|{{#titleparts: {{FULLPAGENAME}} | | -1 }} }} }} }}
 
{| style="width:100%; border-collapse: collapse; border-width: 1px; border-style: solid; border-color: gray; padding: 0;" border="1"
 
{| style="width:100%; border-collapse: collapse; border-width: 1px; border-style: solid; border-color: gray; padding: 0;" border="1"
 
!style="background:#66cc66;" align="center" colspan="3"| [[:Category:Meetings|Meetings]]
 
!style="background:#66cc66;" align="center" colspan="3"| [[:Category:Meetings|Meetings]]
 
|-
 
|-
|style="width: 33%;" align="left"| Previous Meeting: {{#ask: [[Category:Meetings]] [[<{{FULLPAGENAMEE|}}]]
+
|style="width: 33%;" align="left"| Previous Meeting: {{#if: {{{Previous Meeting|}}} | [[{{{ Previous Meeting }}}]] |
|sort=MeetingDate
+
  {{#ask: [[Category:Meetings]] [[MeetingDate::<{{#if: {{{MeetingDate|}}} | {{{MeetingDate}}} | {{#time:Y/m/d|{{#titleparts: {{FULLPAGENAME}} | | -1 }}}}}}]]
|order=ascending
+
  |sort=MeetingDate
|searchlabel=
+
  |order=ascending
|format=list
+
  |searchlabel=
|limit=1
+
  |format=list
|offset={{#expr: {{#ask: [[Category:Meetings]] [[<{{FULLPAGENAMEE|}}]] |format=count}} -1 }}
+
  |limit=1
 +
  |offset={{#expr: {{#ask: [[Category:Meetings]] [[MeetingDate::<{{#if: {{{MeetingDate|}}} | {{{MeetingDate}}} | {{#time:Y/m/d|{{#titleparts: {{FULLPAGENAME}} | | -1 }}}}}}]] |format=count}} -2 }}
 +
  }}
 +
}}
 +
|style="width: 33%;" align="center"| [[Meeting Procedure]]
 +
|style="width: 33%;" align="right"| Next Meeting: {{#if: {{{Next Meeting|}}} | [[{{{ Next Meeting }}}]] |
 +
  {{#ask: [[Category:Meetings]] [[MeetingDate::>{{#if: {{{MeetingDate|}}} | {{{MeetingDate}}} | {{#time:Y/m/d|{{#titleparts: {{FULLPAGENAME}} | | -1 }}}}}}]]
 +
  |sort=MeetingDate
 +
  |order=ascending
 +
  |searchlabel=
 +
  |format=list
 +
  |limit=1
 +
  |offset=1
 +
  |default='''Latest Meeting'''<br/><small>Candidate: [[{{#time: F j, Y | {{#if: {{{MeetingDate|}}} | {{{MeetingDate}}} | {{#time:Y/m/d|{{#titleparts: {{FULLPAGENAME}} | | -1 }}}}}} + 1 week }}]]</small>
 +
  }}
 
}}
 
}}
|style="width: 33%;" align="center"| [[Meeting Procedure]] [[<{{FULLPAGENAMEE|}}]]
 
|style="width: 33%;" align="right"| Next Meeting: {{#if: {{{Next Meeting|}}} | [[{{{ Next Meeting }}}]] | [[{{#time: F j, Y | {{{MeetingDate}}} + 1 week }}]] }}
 
 
|}
 
|}
 
[[Category:Meetings|Meetings]]
 
[[Category:Meetings|Meetings]]

Latest revision as of 15:20, 4 September 2018

Property "MeetingDate" (as page type) with input value "Error: Invalid time." contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.

Meetings
Previous Meeting: July 27, 2021 Meeting Procedure Next Meeting: Latest Meeting
Candidate: [[Error: Invalid time.]]