Template:EventTemp: Difference between revisions
From Karteria DWRP Wiki
Jump to navigationJump to search
No edit summary |
|||
| (95 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | |||
{{ | |||
#template_params: | |||
EventLink (label=Event Page URL) | |||
|EventType (label=Event Type) | |||
|EventDate (label=Event Date) | |||
|EventNumber (label=Event Number) | |||
|EventNumOfType (label=Event Number of Event Type) | |||
|EventOverflowLink (label=Overflow Link) | |||
|FAQs (label=FAQ (wiki page)) | |||
|PreviousEvent (label=Previous Event Page Name) | |||
|NextEvent (label=Next Event Page Name) | |||
|EventSections (label=Event Sections) | |||
}} | |||
{{#cargo_declare:_table=Events | |||
|EventLink=URL | |||
|EventType=Page (allowed values=Category:Test Drive Meme,Category:Main Event) | |||
|EventDate=Date | |||
|EventNumber=Integer | |||
|EventNumOfType=Integer | |||
|EventOverflowLink=URL | |||
|PreviousEvent=Page | |||
|NextEvent=Page | |||
|FAQs=List (,) of Page | |||
|EventSections=List (,) of Page}} | |||
</noinclude><includeonly>{{#cargo_store:_table=Events}}{{#if: {{{PreviousEvent|}}} | '''Previous event:''' [[{{{PreviousEvent}}}]]. |}}{{#if: {{{PreviousEvent|}}}|{{#if:{{{NextEvent|}}}|<nowiki> </nowiki>|}}|}}{{#if: {{{NextEvent|}}} | '''Next event:''' {{#formredlink:form=Event|target={{{NextEvent}}}|}}.}} | |||
{{# | The {{CategoryLink|{{{EventType}}}}} event on {{#dateformat:{{{EventDate}}}|ymd}} posted [{{{EventLink}}} here]{{#if: {{{EventOverflowLink}}} |<nowiki> </nowiki>([{{{EventOverflowLink}}} overflow])|}}. This was the event for {{#time:F Y|{{{EventDate}}}}}. | ||
{{#if: {{{ | |||
==FAQ== | ==[[FAQ]] Pages== | ||
{{# | {{#arraymap:{{{FAQs|}}}|,|tk|{{#formredlink:form=FAQ_Page|link text=tk|existing page link text={{GetSubpage|tk}}|target=tk}}}} | ||
{{# | |||
Full questions [[#FAQ Questions| here]] | |||
==Event headings== | |||
<div class="mw-collapsible" style="display:inline-block"> | |||
{{#arraymap:{{{EventSections|}}}|,|pg|{{#ifexist:{{PAGENAME}}/pg|{{/pg}}|{{#formredlink:form=EventSection|target={{PAGENAME}}/pg}}}}|\n\n\n}} | |||
</div> | |||
==FAQ Questions== | |||
{{ | |||
{{QuestionQuery|FAQ Page| {{{FAQs|}}} |Collapsible=True}} | |||
[[Category:Event]] | |||
[[{{{EventType}}}]]{{#default_form:Event}}</includeonly><noinclude>{{Documentation}}</noinclude> | |||
Latest revision as of 10:30, 9 July 2026
This is the "EventTemp" template.
It should be called in the following format:
{{EventTemp
|EventLink=
|EventType=
|EventDate=
|EventNumber=
|EventNumOfType=
|EventOverflowLink=
|FAQs=
|PreviousEvent=
|NextEvent=
|EventSections=
}}
Edit the page to see the template text.
This template defines the table "Events". View table.
A template for creating events
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Event ID | EventID | A unique ID for this event
| String | required |
| Event Name | EventName | The name of the event
| String | required |
| Event Type | EventType | The type of the event
| String | required |
| EventDate | EventDate | The date of the event in ISO format eg: 2014-05-09 | Date | suggested |
| EventLink | EventLink | The link where the event can be found | URL | required |
| Section Titles | EventSections | The sections of the event | String | optional |
| PreviousEvent | PreviousEvent | no description | Page name | optional |
| NextEvent | NextEvent | no description | Page name | optional |
| EventOverflowLink | EventOverflowLink | no description | Unknown | optional |
| FAQs | FAQs | no description | Unknown | optional |