Template:EventHelper/doc: Difference between revisions

From Karteria DWRP Wiki
Jump to navigationJump to search
Icie (talk | contribs)
Created page with " <templatedata> { "params": { "type": {}, "startdate": {}, "number": {}, "link": {}, "overflow_link": {}, "faq_pages": {}, "EventSections": {} } } </templatedata>"
 
Icie (talk | contribs)
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
{
{
"params": {
"params": {
"type": {},
"type": {
"startdate": {},
"label": "Type of Event",
"number": {},
"type": "string",
"link": {},
"suggestedvalues": [
"overflow_link": {},
"Category:Test Drive Meme",
"faq_pages": {},
"Category:Main Event"
"EventSections": {}
],
}
"required": true
},
"startdate": {
"type": "date",
"required": true
},
"number": {
"label": "Event Number",
"type": "number",
"autovalue": "{{subst:#cargo_query: tables=Events |fields=MAX(Events.EventNumber) + 1 }}",
"required": true
},
"link": {
"type": "url",
"label": "Event Page URL",
"description": "URL of the journal page for the event",
"required": true
},
"overflow_link": {
"type": "url",
"label": "Overflow URL",
"description": "URL for the journal page of the overflow entry if one exists"
},
"faq_pages": {
"label": "FAQ Pages",
"type": "string",
"suggestedvalues": [
"{{subst:PAGENAME}}/Event FAQ, {{subst:PAGENAME}}/Pre Event FAQ",
"{{subst:PAGENAME}}/Event FAQ"
],
"required": true
},
"EventSections": {
"label": "Event Sections",
"description": "The titles of the main sections of the event",
"example": "I. INITIATION",
"type": "string",
"required": true
}
},
"paramOrder": [
"type",
"startdate",
"number",
"link",
"overflow_link",
"faq_pages",
"EventSections"
],
"description": "A template used to define an event."
}
}
</templatedata>
</templatedata>

Latest revision as of 02:12, 10 January 2026

A template used to define an event.

Template parameters

ParameterDescriptionTypeStatus
Type of Eventtype

no description

Suggested values
Category:Test Drive Meme Category:Main Event
Stringrequired
startdatestartdate

no description

Daterequired
Event Numbernumber

no description

Auto value
{{subst:#cargo_query: tables=Events |fields=MAX(Events.EventNumber) + 1 }}
Numberrequired
Event Page URLlink

URL of the journal page for the event

URLrequired
Overflow URLoverflow_link

URL for the journal page of the overflow entry if one exists

URLoptional
FAQ Pagesfaq_pages

no description

Suggested values
{{subst:PAGENAME}}/Event FAQ, {{subst:PAGENAME}}/Pre Event FAQ {{subst:PAGENAME}}/Event FAQ
Stringrequired
Event SectionsEventSections

The titles of the main sections of the event

Example
I. INITIATION
Stringrequired