Template:Event: Difference between revisions

From Technologia Incognita
Jump to navigation Jump to search
Make date and time optional to display
Use {{!}} to replace | in if condition
Line 24: Line 24:
|-
|-
{{#if:{{{Date|}}}|
{{#if:{{{Date|}}}|
! style="background-color:#DDDDDD;" | Date
! style="background-color:#DDDDDD;" {{!}} Date
| [[Date::{{{Date|}}}]]
{{!}} [[Date::{{{Date{{!}}}}}]]
|-
{{!}}-
|}}
|}}
{{#if:{{{Time|}}}|
{{#if:{{{Time|}}}|
! style="background-color:#DDDDDD;" | Time
! style="background-color:#DDDDDD;" {{!}} Time
| [[Time::{{{Time|}}}]]
{{!}} [[Time::{{{Time{{!}}}}}]]
|-
{{!}}-
|}}
|}}
! style="background-color:#DDDDDD;" | Location
! style="background-color:#DDDDDD;" | Location

Revision as of 16:42, 12 February 2025

This is the "Event" template. It should be called in the following format:

{{Event
|Start=
|End=
|Location=
|EventType=
|Contact=
}}

Edit the page to see the template text.