Template:Infobox event: Difference between revisions

From AnOtherWiki, the free encyclopedia written by, for, and about the Otherkin community.
No edit summary
No edit summary
Line 30: Line 30:
{{#if:{{{nextdate|}}}|
{{#if:{{{nextdate|}}}|
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}}{{#set:Eventstartdate={{#time: Y-m-d | {{{nextdate}}}}}}} Next held on
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}}{{#set:Eventstartdate={{#time: Y-m-d | {{{nextdate}}}}}}} Next held on
{{!}} {{#if:{{{nextends|}}}|{{{nextdate|}}}|[[Eventdate::{{{nextdate|}}}]]}} {{#if:{{{nextends|}}}|to [[Eventends::{{{nextends|}}}]]}}
{{!}} {{#if:{{{nextends|}}}|{{#time: F j, Y |{{{nextdate|}}}}}|[[Eventdate::{{#time: F j, Y |{{{nextdate|}}}}}]]}} {{#if:{{{nextends|}}}|to [[Eventends::{{#time: F j, Y |{{{nextends|}}}]}}]}}
}}
}}
{{#switch: {{{nextdate|}}}
{{#switch: {{{nextdate|}}}
Line 39: Line 39:
{{#if:{{{began|}}}|
{{#if:{{{began|}}}|
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}} First held on
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}} First held on
{{!}} [[Begandate::{{{began|}}}]]
{{!}} [[Begandate::{{#time: F j, Y |{{{began|}}}}}]]
}}
}}
|-
|-
{{#if:{{{lastheld|}}}|
{{#if:{{{lastheld|}}}|
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}} Last held on
! style="font-weight:bold;background-color: #ddddff; white-space: nowrap;" {{!}} Last held on
{{!}} [[Lastdate::{{{lastheld|}}}]]
{{!}} [[Lastdate::{{#time: F j, Y |{{{lastheld|}}}}}]]
}}
}}
|-
|-

Revision as of 22:44, 15 September 2013

{{#if:|
{{{title}}}
Organizer(s) {{{organizer}}}
Website
"Error: Invalid time." contains an extrinsic dash or other characters that are invalid for a date interpretation. Next held on to [[Eventends::Error: Invalid time.]}}

}}


Usage

{{Infobox event 
| title = 
| image = 
| caption = 
| organizer = 
| url = 
| country =
| state =
| city =
| status = 
| attendees =
| nextdate =
| nextends =
| began = 
| lastheld = 
| setting = 
}}