Schedule

Forfatter Jan Stovicek
Versjon 2007-04-18
DokuWiki-versjon 2006-11-06
Avhengigheter -
Last ned schedule.zip

Beskrivelse

Lager en timeplan vha egen syntaks.

Syntaks

Se utfyllende beskrivelse på Teknostart-siden, eller kortversjonen under.

<schedule caption>
  <daytitles>pipe-separated list of column titles for days</daytitles>
  <timeslots>pipe-separated list of row titles for time slots</timeslots>
  <entry day:name_of_day start:time_slot end:time_slot color:color_code justify:left>
  <entry day:name_of_day start:time_slot end:time_slot color:color_code justify:left>
  <entry day:name_of_day start:time_slot end:time_slot color:color_code justify:left>
    ...
</schedule>
caption (optional) the text displayed in the upper left corner of the table with the schedule
name_of_day One of the following: Mo, Tu, We, Th, Fr
time_slot time slot number (starting from 0), the ending time slot is optional
(use just in case the event is longer than just one time slot)
color_code (optional) one of the following: blue, ntnu1, ntnu2, ntnu3, innsida1, innsida2, innsida3, black, darkgrey, lightgrey
justify:left (optional) forces content of the table cell to be left-alligned instead of centered
  • if <daytitles> tag is not present, it defaults to
    <daytitles>Mo|Tu|We|Th|Fr</daytitles>
  • no Wiki/HTML markup allowed inside
    <schedule> ... </schedule>
  • double backslash (\\) followed by a whitespace character stands for linebreak inside
    <entry> ... </entry>

Eksempel

<schedule UKE 33>
  <daytitles>Mandag 13/8 | Tirsdag 14/8 | Onsdag 15/8 | Torsdag 16/8 | Fredag 17/8</daytitles>
  <timeslots>08:15 - 09:45 | 10:00 - 11:30 | 11:30 - 12:30 | 12:30 - 14:00 | 14:15 - 16:00</timeslots>

  <entry day:Mo start:0 end:4>Fakultetsdag (med gruppeinndeling)</entry>
  <entry day:Tu start:0 end:4>Immatrikulering</entry>
  <entry day:Th start:0 color:ntnu1>Matte</entry>
  <entry day:Fr start:0 color:ntnu1>Matte</entry>
  <entry day:Th start:1 color:ntnu2>Prosjekt</entry>
  <entry day:Fr start:1 color:ntnu2>Prosjekt</entry>
  <entry day:We start:3 end:4 color:innsida2>AiT</entry>
  <entry day:Th start:3 end:4 color:innsida2>AiT</entry>
  <entry day:Fr start:3 end:4 color:innsida2>AiT</entry>
</schedule>

gir resultatet:

UKE 33Mandag 13/8Tirsdag 14/8Onsdag 15/8Torsdag 16/8Fredag 17/8
08:15 - 09:45Fakultetsdag (med gruppeinndeling)Immatrikulering MatteMatte
10:00 - 11:30 ProsjektProsjekt
11:30 - 12:30   
12:30 - 14:00AiTAiTAiT
14:15 - 16:00



31.05.2007 08:09, Rune Andersen
NTNU, 7491 Trondheim, tlf. 73 59 50 00. Kontakt oss
Ansvarlig redaktør: Informasjonsdirektør Christian Fossen