Template: Event
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
| description = Wikitext | | description = Wikitext | ||
| link = URL | | link = URL | ||
| | | attendee_count = Number | ||
| wmau_cost = Number | |||
}}</noinclude><includeonly>{{#cargo_store: _table = events | }}</noinclude><includeonly>{{#cargo_store: _table = events | ||
| start_date = {{{start_date|}}} | | start_date = {{{start_date|}}} | ||
Line 18: | Line 19: | ||
| description = {{{description|}}} | | description = {{{description|}}} | ||
| link = {{{link|}}} | | link = {{{link|}}} | ||
| | | attendee_count = {{{attendee_count|}}} | ||
| wmau_cost = {{{wmau_cost|}}} | |||
}}</includeonly>{{#default_form:event}}<!-- | }}</includeonly>{{#default_form:event}}<!-- | ||
Supress the page title so we can redisplay it within the header box. | Supress the page title so we can redisplay it within the header box. | ||
-->{{DISPLAYTITLE:<span style="font-size:12pt; font-weight:lighter">{{FULLPAGENAME}}</span>}}<!-- | -->{{DISPLAYTITLE:<span style="font-size:12pt; font-weight:lighter">{{FULLPAGENAME}}</span>}}<!-- | ||
Add region nav bar | |||
-->{{navigation header | title = | |||
|prev = {{#cargo_query: | |||
| tables = events | |||
| fields = CONCAT('[[',_pageName,']], ',DATE_FORMAT(start_date, '%e %M %Y'),'')=prev_event | |||
| where = _pageID != {{PAGEID}} AND region = '{{{region|{{{state|}}}}}}' AND start_date IS NOT NULL AND start_date < '{{{start_date}}}' | |||
| order by = start_date DESC | |||
| limit = 1 | |||
| default = | |||
| more results text = | |||
}} | |||
|next = {{#cargo_query: | |||
| tables = events | |||
| fields = CONCAT('[[',_pageName,']], ',DATE_FORMAT(start_date, '%e %M %Y'),'')=next_event | |||
| where = _pageID != {{PAGEID}} AND region = '{{{region|{{{state|}}}}}}' AND start_date IS NOT NULL AND start_date > '{{{start_date}}}' | |||
| order by = start_date ASC | |||
| limit = 1 | |||
| default = | |||
| more results text = | |||
}} | |||
}} | |||
<br /> | |||
<!-- | |||
Start the box. | Start the box. | ||
Line 56: | Line 82: | ||
Coordinates map: | Coordinates map: | ||
-->{{#if: {{{coordinates|}}} <!-- | -->{{#if: {{{coordinates|}}} <!-- | ||
--> | <div style="text-align:center; margin:1em;">{{#cargo_display_map: | point = {{{coordinates}}} | zoom | --> | <div style="text-align:center; margin:1em;">{{#cargo_display_map: | point = {{{coordinates}}} | zoom = 14 | height = 200px | width = 100% }}</div> <!-- | ||
-->}}<!-- | -->}}<!-- | ||
--></div><!-- | --></div><!-- | ||
Report: | |||
-->{{#if: {{{report|}}} | | |||
<h2>Report</h2> | |||
{{{report}}} | |||
* Attendee count: '''{{{attendee_count|unknown}}}''' | |||
* Cost to Wikimedia Australia: '''{{{wmau_cost|no cost}}}''' | |||
}}<!-- | |||
Metrics: | |||
-->{{#if: {{{event_metrics|}}} | <h2>Event Metrics</h2><div>{{{event_metrics}}}</div> }}<!-- | |||
Categories: | Categories: |
Revision as of 05:18, 15 October 2019
This template defines the table "events". View table.
Event