Différences entre les versions de « Example for dataype record and results format eventcalendar »
m (→all data queried as table : made collapsable for brevity) Balise : Éditeur de wikicode 2017 |
Balise : Éditeur de wikicode 2017 |
||
Ligne 27 : | Ligne 27 : | ||
== all data queried as eventcalendar == | == all data queried as eventcalendar == | ||
− | |||
{{#ask: | {{#ask: | ||
− | [[ERE_ScheduleEvent.ERE_Name:: | + | [[ERE_ScheduleEvent.ERE_Name::{{PAGENAME}}]] |
− | |mainlabel= | + | |mainlabel=event |
− | |?ERE_ScheduleEvent.ERE_Day=date | + | |?ERE_ScheduleEvent.ERE_Day=start date |
+ | |?ERE_ScheduleEvent.ERE_Day=end date | ||
|?ERE_ScheduleEvent.ERE_Name=title | |?ERE_ScheduleEvent.ERE_Name=title | ||
|format=eventcalendar | |format=eventcalendar |
Version du 31 janvier 2019 à 04:08
This is an example of using semantic-mw:Help:Type_Record datatype record and semantic-mw:Help:Eventcalendar format
Caveat
for now this likely doesnt' work - that's why I am setting it up, I can't get it to work ;-)
Background
I want to have multiple "shift" pages (e.g. ERE_shift1, ERE_shift2) where multiple calls to a template (e.g. Template:ERE_encode) encode data as record-type property:ERE ScheduleEvent with sub-properties Property:ERE_Day and Property:ERE_Name. I then want to show shift schedules for people (e.g ERE_person1, ERE_person2). For now my problem is that when I try to use the record that way all calls together generate a giant gob of data that the queries then don't pull apart right. I want to figure out how to do this right. That would also give an example for type record, I could not find one on here.
Test cases
all data queried as table
This is kind of tall so expand to see | |||||||||
|
all data queried as eventcalendar
No scheduled shifts found.