Template: Event list

m Removed protection from "Template:Event list"
improved to ignore sub pages
 
Line 2: Line 2:
  | tables  = events
  | tables  = events
  | format  = ul
  | format  = ul
  | fields = CONCAT('<strong>[[',_pageName,']]</strong> — ',DATE_FORMAT(DATE_ADD(start_date, INTERVAL timezone HOUR), '%W %e %M %Y'), '<br /><small>', IFNULL(short_description, '<em>No description</em>'), '</small>' )=foo
  | fields = CONCAT('<strong>[[',_pageName,']]</strong> — ',
  | where    = {{{where|end_date > CURRENT_DATE}}}
                  DATE_FORMAT(DATE_ADD(start_date, INTERVAL timezone HOUR), '%W %e %M %Y'),
                  '<br /><small>',
                  IFNULL(short_description, '<em>No description</em>'),
                  '</small>' )=foo
  | where    = {{{where|end_date > CURRENT_DATE AND _pageName NOT LIKE '%/%'}}}
  | order by = {{{order by|start_date}}}
  | order by = {{{order by|start_date}}}
  | group by = _pageID
  | group by = _pageID
Line 9: Line 13:
  | more results text =
  | more results text =
  | default  = {{{default|No events found.}}}
  | default  = {{{default|No events found.}}}
}}<noinclude>{{documentation}}</noinclude>
}}
<noinclude>{{documentation}}</noinclude>

Latest revision as of 13:28, 11 November 2025

[create] Template documentation