Difference between revisions of "Template:Timeline"

From Wikispooks
Jump to navigation Jump to search
(update query to use semantics)
(tidy)
Line 8: Line 8:
 
<poem>
 
<poem>
 
{{Timeline
 
{{Timeline
''Required parameter:''
+
''Required parameters:''
 
|position      =When the timeline is centered
 
|position      =When the timeline is centered
 +
|Xstart        =The earliest point on the timeline
 +
|Xend          =The latest point on the timeline
 
''All other parameters are optional.''
 
''All other parameters are optional.''
 
|image        =Image to show in the sidebox
 
|image        =Image to show in the sidebox
<s>|category      =Name of the unique category and form (deprecated)</s>
 
|events        =Name of the unique category and form (deprecated)
 
 
|key_events    =Name of important events, which provide the images at the top
 
|key_events    =Name of important events, which provide the images at the top
 
}}
 
}}
Line 46: Line 46:
 
|timelineposition= {{{position|}}}
 
|timelineposition= {{{position|}}}
 
|timelinebands=WEEK,MONTH,YEAR
 
|timelinebands=WEEK,MONTH,YEAR
|Xstart=
+
|Xstart={{{Xstart}}}
|Xend=
+
|Xend={{{Xend}}}
 
|limit=200
 
|limit=200
 
}}|{{RED|Missing required parameter: {{t|position}}}}}}[[Category:Timelines]]{{SMWDocs}}
 
}}|{{RED|Missing required parameter: {{t|position}}}}}}[[Category:Timelines]]{{SMWDocs}}
 
</includeonly>
 
</includeonly>

Revision as of 14:24, 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:
|position =When the timeline is centered
|Xstart =The earliest point on the timeline
|Xend =The latest point on the timeline
All other parameters are optional.
|image =Image to show in the sidebox
|key_events =Name of important events, which provide the images at the top
}}