Difference between revisions of "Template:Timeline"

From Wikispooks
Jump to navigation Jump to search
(t)
(regularize parameters)
Line 9: Line 9:
 
{{Timeline
 
{{Timeline
 
''Required parameters:''
 
''Required parameters:''
|{{NAVY|position}}      =When the timeline is centered
+
|{{NAVY|timelineposition}}      =When the timeline is centered
|{{NAVY|Xstart}}        =The earliest point on the timeline
+
|{{NAVY|timelinestart}}        =The earliest point on the timeline
|{{NAVY|Xend}}          =The latest point on the timeline
+
|{{NAVY|timelineend}}          =The latest point on the timeline
 
''The other parameters are optional.''
 
''The other parameters are optional.''
|image        =Image to show in the sidebox
+
<s>|{{GREEN|key_events}}    =Name of important events, which provide the images at the top</s>
|{{GREEN|key_events}}    =Name of important events, which provide the images at the top
+
<s>|image        =Image to show in the sidebox</s>
|timelinebands          =HOUR,DAY,YEAR or WEEK,MONTH,YEAR etc.
+
|timelinebands          = selection from {HOUR,DAY,WEEK,MONTH,YEAR}. Defaults to "DAY,MONTH,YEAR"
|timelinesize            = (Defaults to 350px)
+
|timelinesize            = Timeline height. (Defaults to 350px)
 
}}
 
}}
 
</poem>
 
</poem>
 
</noinclude><includeonly>{{SMWObjectHeader|Timeline}}
 
</noinclude><includeonly>{{SMWObjectHeader|Timeline}}
 
__NOCACHE__
 
__NOCACHE__
{{#if: {{{position|}}}|{{#if: {{{Xstart|}}}|{{#if: {{{Xend|}}}|{{#if: {{{key_events|}}}|Key events:{{#arraymap: {{{key_events|}}}|,|@@@|[[@@@]]}}}}{{#ask: [[Display at::{{FULLPAGENAME}}]]
+
{{#if: {{{timelineposition|}}}|{{#if: {{{timelinestart|}}}|{{#if: {{{timelineend|}}}|{{#if: {{{key_events|}}}|Key events:{{#arraymap: {{{key_events|}}}|,|@@@|[[@@@]]}}}}{{#ask: [[Display at::{{FULLPAGENAME}}]]
 
|?start
 
|?start
 
|?end
 
|?end
Line 29: Line 29:
 
|format=timeline
 
|format=timeline
 
|timelinesize={{#if: {{{timelinesize|}}}|{{{timelinesize}}}|350px}}
 
|timelinesize={{#if: {{{timelinesize|}}}|{{{timelinesize}}}|350px}}
|timelineposition= {{{position|}}}
+
|timelineposition= {{{timelineposition|}}}
|timelinebands={{#if: {{{timelinebands|}}}|{{{timelinebands}}}|WEEK,MONTH,YEAR}}
+
|timelinebands={{#if: {{{timelinebands|}}}|{{{timelinebands}}}|DAY,MONTH,YEAR}}
|Xstart={{{Xstart}}}
+
|Xstart={{{timelinestart}}}
|Xend={{{Xend}}}
+
|Xend={{{timelineend}}}
 
|limit=200
 
|limit=200
}}|{{RED|Missing required parameter: {{t|Xend}}}}|{{RED|Missing required parameter: {{t|Xstart}}}}|{{RED|Missing required parameter: {{t|position}}}}}}}}}}[[Category:Timelines]]
+
}}|{{RED|Missing required parameter: {{t|timelineend}}}}|{{RED|Missing required parameter: {{t|timelinestart}}}}|{{RED|Missing required parameter: {{t|timelineposition}}}}}}}}}}[[Category:Timelines]]
 
</includeonly>
 
</includeonly>

Revision as of 15:31, 3 July 2015

SMWObjects
Semantic Object Templates:        DecadePlaceTimelineYearDisambiguation
ConceptDocumentEmploymentEventGroupPersonPublicationWebsite

This template is for timelines.

It should be included at the top of all timeline pages.

Blue parameters are for a single Wikispooks page name (If no suitable page exists, then pick a title for a future page)
Brown parameters are for numbers
Green parameters are for comma-separated lists of page names (Or planned page names).
Navy parameters are for dates
Orange parameters are for booleans. (Usually, either "Yes" or just leave blank).
Purple parameters are URLs.
Violet parameters are slash-separated lists.
Pink parameters are for coordinates.
Crossed out parameters were formerly available, but have been upgraded. Some may still work, but do not use these.

See timeline for a list of pages that use this template.

Usage:

{{Timeline
Required parameters:
|timelineposition =When the timeline is centered
|timelinestart =The earliest point on the timeline
|timelineend =The latest point on the timeline
The other parameters are optional.
|key_events =Name of important events, which provide the images at the top
|image =Image to show in the sidebox
|timelinebands = selection from {HOUR,DAY,WEEK,MONTH,YEAR}. Defaults to "DAY,MONTH,YEAR"
|timelinesize = Timeline height. (Defaults to 350px)
}}