Difference between revisions of "Template:Calendar Event List"

From Open Energy Information

m (Reverted edits by Avimont (talk) to last revision by Tomking)
(Adding min and max to view all output)
Line 40: Line 40:
 
}}
 
}}
 
|}}
 
|}}
{{#if: {{{viewall|}}} | <div class="text-center">[[:{{{viewall|}}}|View All Events]]</div>}}
+
{{#if: {{{viewall|}}} | <div class="text-center">Showing {{#time: M j, Y | {{#var:datemin}} }} - {{#time: M j, Y | {{#var:datemax}} }} [[:{{{viewall|}}}|View All Events]]</div>}}
 
}}
 
}}
 
</div>
 
</div>
 
</includeonly>
 
</includeonly>

Revision as of 13:10, 21 March 2019

This is the Calendar Event List template. It is designed for use by Events.

Parameters
  • tags - The tags to search for.
  • datemin - The min date to display (in php strtotime format, e.g. "-2 days", "-1 week").
  • datemax - The max date to display (in php strtotime format).
  • limit - The limit of items to show
  • viewall - Name of view all page
  • title - Title to display
Dependencies
  • Designed for use in a parent form, such as Form:Event.
Usage

It should be invoked using a parent form.