Difference between revisions of "Template:Timeline"
(fix param explanation) |
(test) |
||
Line 14: | Line 14: | ||
|{{NAVY|timelineend}} =The latest point on the timeline | |{{NAVY|timelineend}} =The latest point on the timeline | ||
''OPTIONAL SUBSECTIONS:'' | ''OPTIONAL SUBSECTIONS:'' | ||
− | | | + | |expression = semantic web query to choose items. Defaults to "<nowiki>[[Display at::{{FULLPAGENAME}}]]</nowiki>" |
|timelinebands = selection from {HOUR,DAY,WEEK,MONTH,YEAR}. Defaults to "DAY,MONTH,YEAR" | |timelinebands = selection from {HOUR,DAY,WEEK,MONTH,YEAR}. Defaults to "DAY,MONTH,YEAR" | ||
|timelinesize = Timeline height. (Defaults to 350px) | |timelinesize = Timeline height. (Defaults to 350px) | ||
Line 26: | Line 26: | ||
__NOCACHE__ | __NOCACHE__ | ||
{{#if: {{{wikipedia|}}}|[[Has wikipediaPage::{{{wikipedia}}}| ]]}}{{#if: {{{WP|}}}|[[Has wikipediaPage::{{{WP}}}| ]]}}{{#if: {{{timelineposition|}}}|{{#if: {{{key_events|}}}|Key events:{{#arraymap: {{{key_events|}}}|,|@@@|[[@@@]]}}}} | {{#if: {{{wikipedia|}}}|[[Has wikipediaPage::{{{wikipedia}}}| ]]}}{{#if: {{{WP|}}}|[[Has wikipediaPage::{{{WP}}}| ]]}}{{#if: {{{timelineposition|}}}|{{#if: {{{key_events|}}}|Key events:{{#arraymap: {{{key_events|}}}|,|@@@|[[@@@]]}}}} | ||
− | {{#ask: {{ | + | {{#ask: {{{expression|}}} |
|?start | |?start | ||
|?end | |?end |
Revision as of 11:44, 29 June 2016
Concept • Document • Employment • Event • Group • Person • Publication • Website |
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 parameterswere 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
Recommended parameters:
|timelinestart =The earliest point on the timeline
|timelineend =The latest point on the timeline
OPTIONAL SUBSECTIONS:
|expression = semantic web query to choose items. Defaults to "[[Display at::{{FULLPAGENAME}}]]"
|timelinebands = selection from {HOUR,DAY,WEEK,MONTH,YEAR}. Defaults to "DAY,MONTH,YEAR"
|timelinesize = Timeline height. (Defaults to 350px)
|key_events =Name of important events, which provide the images at the top
|image =Image to show in the sidebox
|wikipedia = URL of the document's Wikipedia page, if any (Property:Has wikipediaPage)
|wikipedia_protection = Set to 1 if the wikipedia page is edit protected, 0 or empty otherwise (Property:Has wikipediaProtection)
}}