Timeline: Difference between revisions

From Freephile Wiki
No edit summary
No edit summary
Line 27: Line 27:
  |limit=50
  |limit=50
  |default=no recent edits
  |default=no recent edits
|template=Timeline
}}
}}
</pre>
</pre>
Line 48: Line 49:
  |limit=50
  |limit=50
  |default=no recent edits
  |default=no recent edits
|template=Timeline
}}
}}


==Debugging==
==Debugging==
This code works to show the thumbnail, <nowiki>{{#show: Timeless|?Has image#100px;x100px;thumb}}</nowiki> so I don't know why I can't get modern timeline to show the thumbnail.
This code works to show the thumbnail, <nowiki>{{#show: Svg|?Has image#100px;x100px;thumb}}</nowiki> so I don't know why I can't get modern timeline to show the thumbnail. I tried formatting the ask query output with a template, to no avail.


==Parameters==
==Parameters==
The parser function for showing the documentation of supported functionality:
The parser function for showing the documentation of supported functionality:
<nowiki>{{#smwdoc: moderntimeline}}</nowiki>
<nowiki>{{#smwdoc: moderntimeline}}</nowiki>

Revision as of 14:33, 12 September 2025


Timeline
calendar timeline
calendar timeline
Image shows: calendar timeline
Summary
Title: Timeline
Description: Produce timelines from data
More
Notes: There are also the legacy 'timeline' and 'eventline' formats.

The Extension:ModernTimeline provides the SemanticMediaWiki result format of moderntimeline which outputs your query data into a timeline as shown below.

The query

{{#ask:
<!--  [[Modification date::+]] -->
<!-- [[Modification date::>={{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}]] -->
 [[Modification date::>={{CURRENTYEAR}}-{{CURRENTMONTH}}]]
 [[Has_image::+]]
 |format=moderntimeline 
<!--  | format=timeline
 | format=eventline -->
 |image property=Has_image
 |?Has_image#100px;x100px;thumb
 |?Modification date
 |sort=Modification date
 |order=asc
 |start at end=on
 |width=75%
 |height=500px
 |limit=50
 |default=no recent edits
 |template=Timeline
}}

results in the following

Debugging

This code works to show the thumbnail, {{#show: Svg|?Has image#100px;x100px;thumb}} so I don't know why I can't get modern timeline to show the thumbnail. I tried formatting the ask query output with a template, to no avail.

Parameters

The parser function for showing the documentation of supported functionality: {{#smwdoc: moderntimeline}}