Difference between revisions of "Template:Timeline"

From Wikispooks
Jump to navigation Jump to search
(Another object template)
 
(Required parameter)
Line 6: Line 6:
 
}}
 
}}
 
'''Usage:'''
 
'''Usage:'''
''All sections are optional.''
 
 
<poem>
 
<poem>
 
{{Timeline
 
{{Timeline
 +
''Required parameter:''
 
|position      =When the timeline is centered
 
|position      =When the timeline is centered
 +
''All other parameters are optional.''
 
|image        =Image to show in the sidebox
 
|image        =Image to show in the sidebox
 
|category      =Name of the unique category and form (deprecated)
 
|category      =Name of the unique category and form (deprecated)
Line 17: Line 18:
 
</noinclude><includeonly>{{SMWObjectHeader|Timeline}}
 
</noinclude><includeonly>{{SMWObjectHeader|Timeline}}
 
__NOCACHE__
 
__NOCACHE__
{| width="100%"
+
{{#if: {{{position|}}}|{{#ask: [[Category:{{{category|}}}]]
| valign="bottom"| <big><big>'''Timeline'''</big></big> (N.B.: All times are [http://en.wikipedia.org/wiki/Coordinated_Universal_Time UTC]) || width=20% rowspan="3" align="right" | {{Ukraine coup 2014 badge}}
 
|-
 
| valign="bottom" | [[File:Euro-maidan1.jpg|x80px]] [[File:Ukraine-protest-600x300.jpg|x80px]] [[File:SvobodaRally.jpeg|x80px]] [[File:Nuland-Pyatt-Kiev.jpg|x80px]] [[File:JoeHunterBiden.jpg|x80px]] [[File:UNA-UNSO.jpg|x80px]] [[File:Convoy_locals.jpg|x80px]] [[File:Saur_Mogila_recaptured.jpg|x80px]]
 
|-
 
|
 
{| width="100%"
 
|-
 
| width="20%"|[[Form:{{{category|}}}|Add an event]] || width=20% |[[{{{events|}}}|Browse all events]] || width="20%" | [[Ukraine coup 2014/Chap-Timeline|Alt-Display]] || width=20% |[[WikiSpooks:Timelines on Wikispooks|Help/information]]
 
|}
 
|}
 
{{#ask: [[Category:Ukraine coup 2014 timeline event]]
 
 
|?start
 
|?start
 
|?end
 
|?end
Line 41: Line 31:
 
|Xend=
 
|Xend=
 
|limit=200
 
|limit=200
}}[[Category:Timelines]]{{SMWDocs}}
+
}}|{{RED|Missing required parameter: {{t|position}}}}}}[[Category:Timelines]]{{SMWDocs}}
 
</includeonly>
 
</includeonly>

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