Jump to content

Module:Program/doc

From Wikimania

This is the documentation page for Module:Program

This module if used to render a conference program as list, to make it easier to view on narrow screens. It has three functions: start, item and end_ (it's called that because end is a keyword in Lua). that are used to display the program. The start and end_ functions don't add any visible elements, but are needed for the layout to render properly.

This module was created for Wikimania 2019 and used on 2019:Program List. Several functions were not implemented fully, such as filtering and colour coded items.

Dependencies

[edit source]

This module relies on CSS to display properly. Add <templatestyles src="Program List.css" /> to any page invoking it. That CSS is also where you should make any modifications to the appearance of the list.

The items are displayed using Template:Program item.

Examples

[edit source]
{{#invoke:Program|start}}
{{#invoke:Program|item|start=13:00|end=13:30|space=multimedia|room=Ebadi (D315)|title=Behind the scenes of the Odia Wikipedia how-to video tutorials|presenters=Subhashish Panigrahi, Soumendra Kumar Sahoo|workshop=yes|link=2019%3AMultimedia_knowledge/Behind_the_scenes_of_the_Odia_Wikipedia_how-to_video_tutorials}}
{{#invoke:Program|item|start=13:00|end=14:00|space=technology|room=Strickland (B315)|title=Building Technical Capacity in Smaller Wikis|presenters=Birgit Müller|discussion=yes|link=2019%3ATechnology_outreach_%26_innovation/Building_Technical_Capacity_in_Smaller_Wikis}}
{{#invoke:Program|end_}}

  1. 13:00 - 13:30 Ebadi (D315)
    Behind the scenes of the Odia Wikipedia how-to video tutorials
    Subhashish Panigrahi, Soumendra Kumar Sahoo
    Workshop 
  2. 13:00 - 14:00 Strickland (B315)
    Building Technical Capacity in Smaller Wikis
    Birgit Müller
    Group discussion 

Filters

[edit source]

The module has been prepared to filter the program by space and identifier. This adds CSS-classes that hide all items that aren't explicitly shown. It has only been implemented for a few spaces and identifiers, more can be added to Template:Program List.css.

{{#invoke:Program|start}}
{{#invoke:Program|item|start=13:00|end=13:30|space=multimedia|room=Ebadi (D315)|title=Behind the scenes of the Odia Wikipedia how-to video tutorials|presenters=Subhashish Panigrahi, Soumendra Kumar Sahoo|workshop=yes|link=2019%3AMultimedia_knowledge/Behind_the_scenes_of_the_Odia_Wikipedia_how-to_video_tutorials}}
{{#invoke:Program|item|start=13:00|end=14:00|space=technology|room=Strickland (B315)|title=Building Technical Capacity in Smaller Wikis|presenters=Birgit Müller|discussion=yes|link=2019%3ATechnology_outreach_%26_innovation/Building_Technical_Capacity_in_Smaller_Wikis}}
{{#invoke:Program|end_}}

  1. 13:00 - 13:30 Ebadi (D315)
    Behind the scenes of the Odia Wikipedia how-to video tutorials
    Subhashish Panigrahi, Soumendra Kumar Sahoo
    Workshop 
  2. 13:00 - 14:00 Strickland (B315)
    Building Technical Capacity in Smaller Wikis
    Birgit Müller
    Group discussion