Jump to content

User:Mitchelln

From mediawiki.org
[edit]

I have posted a fix for [1] but I guess you didn't get notified as you didn't star the issue ;-) Jean-Lou Dupont 12:36, 13 July 2008 (UTC)


Mitchelln, I saw your question on the HeaderTabs extension page about SMW Timlines. ...which leads me to believe that you got them to work. I copied a bunch of event pages from the ontoworld site and built a page with the same query as is on the ontoworld site and get absolutely nothing in return. Is there a switch in the LocalSettings or another element that I'm missing? I can't find any info about it or help on the Timelines specifically.

Thanks for any help. CWinDC 02:16, 29 May 2008 (UTC)

Hi there.
Here's an example from my mediawiki:
__NOTOC__
= ADP Dates =
<b>Required Dates:</b>
{{ #ask:
[[Category::ADP]]
[[ADP ID::+]][[Status::In Progress||Approved]]
| ?ADP ID| ?Title
| ?Status
| ?Owner
| ?Required Date
| timelinebands=MONTH
| timelinesize=320px
| format=timeline
}}

<br><b>Iteration Dates:</b>
{{ #ask:
[[Category::ADP Iteration]]
[[Iteration Review Outcome::In Progress||Continue]]
| ?ADP ID
| ?Iteration Review Date
| timelinebands=WEEK,MONTH
| timelinesize=480px
| format=timeline
}}

= Active ADPs =
<br><b>Active ADPs:
{{ #ask:
[[Category::ADP]]
[[ADP ID::+]][[Status::In Progress||Approved]]
| format=count
}}</b>

{{ #ask:
[[Category::ADP]]
[[ADP ID::+]][[Status::In Progress || Approved]]
| ?Title
| ?Owner
| ?PTS
| ?Status
| ?Required Date
}}

= New =
<b>New ADPs:
{{ #ask:
[[Category::ADP]][[ADP ID::+]][[Status::New]]
| format=count
}}</b>
{{ #ask:
[[Category::ADP]][[ADP ID::+]][[Status::New]]
| ?Title
| ?Owner
| ?PTS
| ?Status
| ?Required Date
}}
<headertabs/>
This gives a tabbed page with two timelines on the first tab. The limitation I found is that if you put a timeline on any tab other than the first one you just get a blank grey box.
You don't need to add anything into LocalSettings, but you do need version 1.1 of Semantic Mediawiki. Timelines got added with that version. Also, one of your query return fields must be a date property. Required Date is such a field in my example above.
Let me know how you get on!
Mitchelln 09:12, 29 May 2008 (UTC)