Difference between revisions of "Template:Timeline"

From Wikispooks
Jump to navigation Jump to search
(Required parameter)
(Chap timeline)
Line 18: Line 18:
 
</noinclude><includeonly>{{SMWObjectHeader|Timeline}}
 
</noinclude><includeonly>{{SMWObjectHeader|Timeline}}
 
__NOCACHE__
 
__NOCACHE__
{{#if: {{{position|}}}|{{#ask: [[Category:{{{category|}}}]]
+
{{#if: {{{position|}}}|
 +
=Timeline=
 +
{{#ask: [[Category:{{{category|}}}]]
 
|?start
 
|?start
 
|?end
 
|?end
Line 31: Line 33:
 
|Xend=
 
|Xend=
 
|limit=200
 
|limit=200
}}|{{RED|Missing required parameter: {{t|position}}}}}}[[Category:Timelines]]{{SMWDocs}}
+
}}
 +
=Chap-Timeline=
 +
{{#ask: [[Category:{{{category|}}}]]
 +
|?Start
 +
|?End
 +
|sort=Start
 +
|order=ascending
 +
|height=300px
 +
|format=chap-timeline
 +
|template=ChapTLBox
 +
|startproperty=Start
 +
|endproperty=End
 +
|cluster=true
 +
|limit=150
 +
}}
 +
|{{RED|Missing required parameter: {{t|position}}}}}}[[Category:Timelines]]{{SMWDocs}}
 
</includeonly>
 
</includeonly>

Revision as of 15:40, 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)
}}