Différences entre les versions de « Example for dataype record and results format eventcalendar »
Balise : Éditeur de wikicode 2017 |
m (→all data queried as table : made collapsable for brevity) Balise : Éditeur de wikicode 2017 |
||
Ligne 10 : | Ligne 10 : | ||
== Test cases == | == Test cases == | ||
=== all data queried as table === | === all data queried as table === | ||
+ | {| class="wikitable mw-collapsible mw-collapsed" | ||
+ | | This is kind of tall so expand to see | ||
+ | |- | ||
+ | | | ||
{{#ask: | {{#ask: | ||
[[ERE_ScheduleEvent.ERE_Name::+]] | [[ERE_ScheduleEvent.ERE_Name::+]] | ||
Ligne 20 : | Ligne 24 : | ||
|limit=1000 | |limit=1000 | ||
}} | }} | ||
+ | |} | ||
== all data queried as eventcalendar == | == all data queried as eventcalendar == |
Version du 31 janvier 2019 à 04:07
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
This may not even make sense from this page - how would the calendar sensibly list the shift and the name together?