Template:EventTemp: Difference between revisions

From Karteria DWRP Wiki
Jump to navigationJump to search
Icie (talk | contribs)
No edit summary
Icie (talk | contribs)
No edit summary
 
(26 intermediate revisions by the same user not shown)
Line 6: Line 6:
     |EventDate (label=Event Date)
     |EventDate (label=Event Date)
     |EventNumber (label=Event Number)
     |EventNumber (label=Event Number)
    |EventNumOfType (label=Event Number of Event Type)
     |EventOverflowLink (label=Overflow Link)
     |EventOverflowLink (label=Overflow Link)
     |FAQs (label=FAQ (wiki page))
     |FAQs (label=FAQ (wiki page))
Line 17: Line 18:
|EventDate=Date
|EventDate=Date
|EventNumber=Integer
|EventNumber=Integer
|EventNumOfType=Integer
|EventOverflowLink=URL
|EventOverflowLink=URL
|PreviousEvent=Page
|PreviousEvent=Page
Line 22: Line 24:
|FAQs=List (,) of Page
|FAQs=List (,) of Page
|EventSections=List (,) of Page}}
|EventSections=List (,) of Page}}
</noinclude><includeonly>{{#cargo_store:_table=Events}}{{#if: {{{PreviousEvent|}}} | '''Previous event:''' [[{{{PreviousEvent}}}]]. |}}{{#if: {{{PreviousEvent|}}}|{{#if:{{{NextEvent|}}}|&nbsp;|}}|}}{{#if: {{{NextEvent|}}} | '''Next event:''' [[{{{NextEvent}}}]].|}}
</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 {{{EventType}}} event on {{#dateformat:{{{EventDate}}}|ymd}} posted [{{{EventLink}}} here]{{#if: {{{EventOverflowLink}}} | &nbsp;([{{{EventOverflowLink}}} overflow])|}}. This was the event for {{#time:F Y|{{{EventDate}}}}}.
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}}}}}.


==[[FAQ]] Pages==
==[[FAQ]] Pages==
{{#arraymap:{{{FAQs|}}}|,|tk|{{#formredlink:form=FAQ_Page|link text=tk|existing page link text={{#invoke:String{{!}}sub{{!}}tk{{!}}{{#invoke{{!}}String{{!}}len{{!}}{{{PAGENAME}}}}}+1}}|target=tk}} }}
{{#arraymap:{{{FAQs|}}}|,|tk|{{#formredlink:form=FAQ_Page|link text=tk|existing page link text={{GetSubpage|tk}}|target=tk}}}}


Full questions [[#FAQ Questions| here]]
Full questions [[#FAQ Questions| here]]


<div class="mw-collapsible">
==Event headings==
==Event headings==


{{#arraymap:{{{EventSections|}}}|,|pg|{{#ifexist:{{PAGENAME}}/pg|{{/pg}}|{{#formredlink:form=EventSection|target={{PAGENAME}}/pg}}}}|\n\n}}
<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>
 


</div>
==FAQ Questions==
==FAQ Questions==
<div class="mw-collapsible mw-collapsed">


{{QuestionQuery|FAQ Page| {{#arraymap: {{{FAQs|}}} |,|xx|{{PAGENAME}}/xx}}}}
{{QuestionQuery|FAQ Page| {{{FAQs|}}} |Collapsible=True}}


</div>


[[Category:Event]]  
[[Category:Event]]  
[[Category:{{{EventType}}}]]</includeonly><noinclude>{{/doc}}</noinclude>
[[{{{EventType}}}]]{{#default_form:Event}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 04:32, 18 January 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.

Template documentation

A template for creating events

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Event IDEventID

A unique ID for this event

Example
Event_May2025
Stringrequired
Event NameEventName

The name of the event

Example
Test Drive Meme #1
Stringrequired
Event TypeEventType

The type of the event

Suggested values
Test Drive Meme Main Event
Example
Test Drive Meme/Main Event
Auto value
Main Event
Stringrequired
EventDateEventDate

The date of the event in ISO format eg: 2014-05-09

Datesuggested
EventLinkEventLink

The link where the event can be found

URLrequired
Section TitlesEventSections

The sections of the event

Stringoptional
PreviousEventPreviousEvent

no description

Page nameoptional
NextEventNextEvent

no description

Page nameoptional
EventOverflowLinkEventOverflowLink

no description

Unknownoptional
FAQsFAQs

no description

Unknownoptional