Difference between revisions of "Template:Timeline"

From Wikispooks
Jump to navigation Jump to search
(no headertabs since only the first tab works)
(link strip on top)
Line 20: Line 20:
 
__NOCACHE__
 
__NOCACHE__
 
{{#if: {{{position|}}}|
 
{{#if: {{{position|}}}|
{{#if: {{{key_events|}}}|{{#arraymap: {{{key_events|}}}|,|@@@|[[@@@]]}}}}
+
{{#if: {{{key_events|}}}|Key events:{{#arraymap: {{{key_events|}}}|,|@@@|[[@@@]]}}}}
 +
{{#if: {{{events|}}}|[[Form:{{{events}}}|Add an event]] - [[Category:{{{events|}}}|Browse all events]] - [[WikiSpooks:Timelines|Help/information]] }}
 
{{#ask: [[Category:{{{category|}}}]]
 
{{#ask: [[Category:{{{category|}}}]]
 
|?Start
 
|?Start

Revision as of 19:42, 16 November 2014

Template:Template Usage:

{{Timeline
Required parameter:
|position =When the timeline is centered
All other parameters are optional.
|image =Image to show in the sidebox
|category =Name of the unique category and form (deprecated)
|events =Name of the unique category and form (deprecated)
|key_events =Name of important events, which provide the images at the top
}}