Template:Event: Difference between revisions

From Parallel Wiki
Jump to navigation Jump to search
m (Diamondback88 moved page Template:Infobox event to Template:Event)
No edit summary
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly>{{#invoke:infobox|infobox
   | above = {{{ name | {{FULLPAGENAME}}}}}
   | defaultimagesize = 250px
   | image = {{#ifexist: File:{{{image}}} | [[File:{{{image}}}|250px|link=]] | {{#ifexist: File:{{SUBPAGENAME}}.svg | [[File:{{SUBPAGENAME}}.svg|250px|link=]] | {{#ifexist: File:{{SUBPAGENAME}}.png | [[File:{{SUBPAGENAME}}.png|250px|link]] | {{#ifexist: File:{{#titleparts: {{FULLPAGENAME}} | -1 | -2 }}.svg | [[File:{{#titleparts: {{FULLPAGENAME}} | -1 | -2 }}.svg|250px|link=]] | {{#ifexist: File:{{#titleparts: {{FULLPAGENAME}} | -1 | -2 }}.png | [[File:{{#titleparts: {{FULLPAGENAME}} | -1 | -2 }}.png|250px|link=]] | {{#ifexist: File:{{#titleparts: {{FULLPAGENAME}} | -2 | -3 }}.svg | [[File:{{#titleparts: {{FULLPAGENAME}} | -2 | -3 }}.svg|250px|link=]] | {{#ifexist: File:{{#titleparts: {{FULLPAGENAME}} | -2 | -3 }}.png | [[File:{{#titleparts: {{FULLPAGENAME}} | -2 | -3 }}.png|250px|link=]] | [[File:{{#setmainimage: ParallelLogo.png }} |250px|link=]] }} }} }} }} }} }} }}
  | image = ParallelLogo.png
  | caption = {{#if:{{{image_caption|}}} | {{{image_caption}}} }}
   | extratext = {{#if:{{{image_caption|}}} | {{{image_caption}}} }}
  | label1 = Date
  | title = {{{title|{{BASEPAGENAME}}}}}
  | data1 = {{{date|}}}
  | rows =
  | label2 = Location
{{#if: {{{date|}}} | {{infobox row|label=Date|field={{{date|}}} }} }}
  | data2 = {{{location|}}}
{{#if: {{{location|}}} | {{infobox row|label=Location|field={{{location|}}} }} }}
  | label3 = Participants
{{#if: {{{participants|}}} | {{infobox row|label=Participants|field={{{participants|}}} }} }}
  | data3 = {{{participants|}}}
{{#if: {{{type|}}} | {{infobox row|label=Type|field={{{type|}}} }} }}
  | data4 = {{#if:{{{previous|}}}{{{next|}}} | Timeline }}
{{#if:{{{previous|}}}{{{next|}}} | Timeline }}
  | label5 = Preceded by
{{#if: {{{previous|}}} | {{infobox row|label=Preceded by|field={{{previous|}}} }} }}
  | data5 = {{{previous|}}}
{{#if: {{{next|}}} | {{infobox row|label=Followed by|field={{{next|}}} }} }}
  | label6 = Followed by
  | data6 = {{{next|}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{Documentation}}</noinclude>
{{Documentation}}</noinclude>

Revision as of 02:56, 5 November 2023

[view] [edit] [history] [⧼smw purge⧽]Documentation
{{Event
| name =
| image =
| image_caption =
| date =
| location =
| participants =
| previous =
| next =
}}

An infobox to serve as a quick reference on the right side of event pages.

Template parameters

ParameterDescriptionTypeStatus
Event namename

Will automatically enter based on page name

Example
Space Station Mission
Lineoptional
Imageimage

Refers to the image file stored on the wiki.

Default
ParallelLogo.png
Filesuggested
Image captionimage_caption

An optional caption for the image.

Lineoptional
Datedate

The date or period of time during which the event occurred. Try to use MDY format (e.g., April 1, 2022)

Linesuggested
Locationlocation

The location of the event.

Example
Shopping District
Linesuggested
Participantsparticipants

Participants in the event (usually NPCs).

Linesuggested
Preceded byprevious

The previous event.

Linesuggested
Followed bynext

The next event.

Linesuggested

Examples

Everything

Event
Tattered Cloudius 2021-06-04.png: Infobox image for Event the event in Minecraft
Oh boy, he's stinky
Timeline
Date

May 22, 2022

Location

The Sky Kingdom

Participants

Cloudius and everyone else's noses

Preceded by

Cloudius Wears All His Clothes

Followed by

Cloudius Does the Wash

{{Event
| name = The Day Cloudius Forgot to Do the Wash
| image = Tattered Cloudius 2021-06-04.png
| image_caption = Oh boy, he's stinky
| date = May 22, 2022
| location = The Sky Kingdom
| participants = Cloudius and everyone else's noses
| previous = Cloudius Wears All His Clothes
| next = Cloudius Does the Wash
}}
[view] [edit] [history] [⧼smw purge⧽]The above documentation is transcluded from Template:Event/doc.