Timeline: Difference between revisions

No edit summary
No edit summary
Line 5: Line 5:


The [https://github.com/ProfessionalWiki/ModernTimeline Extension:ModernTimeline] provides the [[SemanticMediaWiki]] result format of '''[https://www.semantic-mediawiki.org/wiki/Help:Moderntimeline_format moderntimeline]''' which outputs your query data into a timeline as shown below.
The [https://github.com/ProfessionalWiki/ModernTimeline Extension:ModernTimeline] provides the [[SemanticMediaWiki]] result format of '''[https://www.semantic-mediawiki.org/wiki/Help:Moderntimeline_format moderntimeline]''' which outputs your query data into a timeline as shown below.
The query
<pre>
{{#ask:
{{#ask:
<!--  [[Modification date::+]] -->
<!--  [[Modification date::+]] -->
<!-- [[Modification date::>={{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}]] -->
<!-- [[Modification date::>={{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY2}}]] -->
  [[Modification date::>={{CURRENTYEAR}}-{{CURRENTMONTH}}]]
  [[Modification date::>={{CURRENTYEAR}}-{{CURRENTMONTH}}]]
  [[Has image::+]]
  [[Has_image::+]]
  |format=moderntimeline
  |format=moderntimeline  
  |?Has image#100px;x100px;thumb
<!--  | format=timeline
| format=eventline -->
|image property=Has_image
  |?Has_image#100px;x100px;thumb
  |?Modification date
  |?Modification date
  |sort=Modification date
  |sort=Modification date
Line 18: Line 24:
  |width=75%
  |width=75%
  |height=500px
  |height=500px
  |image property=Has image
  |limite=50
|default=no recent edits
}}
}}
</pre>
results in the following
{{#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
|limite=50
|default=no recent edits
}}
==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.
==Parameters==
The parser function for showing the documentation of supported functionality:
<nowiki>{{#smwdoc: moderntimeline}}</nowiki>