Digital skills for collaborative OER development/Digital skill challenges/Pedagogical templates
Start here
The Mediawiki software has a powerful feature called templates which enables more advanced features to assist with managing the layout and structure of elements more consistently in the wiki. So for example, a template can be created to manage the display of a feature on a particular page in the wiki. Every time the template is used on any page in the wiki, it will replicate the layout features defined in the original template without the need to code the wiki text on the page where it is used.
Don't worry, in this course you are not required to code new templates. We will show you how to use a number of popular templates in WikiEducator. They are very easy to use once you know how. It's a simple process of:
- Copy the wiki text for the template.
- Paste this on the page you would like to use it.
- Edit and customise the content of the template in the wiki.
Step 1: Copy the wiki text for the template
In wiki text, the beginning of a template is indicated by two curly braces like this {{
and is closed using two curly braces like this }}
. These curly braces instruct the wiki software to apply the specified template's formatting, in our case the template called IDevice.
All you need to do is to copy the wiki text for the template highlighted below:
{{IDevice |theme= |type= |title= |body= }}
Step 2: Paste the wiki text for the template on your page
Note: You must use wiki text for this to work (not the VisualEditor). Click on the "Edit source" link (not the "Edit" link which is used to launch the VisualEditor).
Paste the copied template syntax (from above) to your personal Sandbox page in WikiEducator. If you have done this correctly, you should see the following example after you save the page:
Step 3: Edit and customise the template
Theme, type, title, and body are parameters you can use for editing and customising your template. The parameter labels are case sensitive and will not function properly if, for example, you use "Theme=". The list below provides a summary of the parameters and options.
Parameter | Purpose and options |
---|---|
theme | The user can specify a theme which manages how templates are displayed in WikiEducator. The display of templates in the published course site will use the theme of the target website.
Type the name of the theme next to the theme parameter (for example :
|
type | Type specifies the associated icon for a predetermined list of iDevices. Consult the list of options in the Quickstart guide. |
title | The title parameter enables the user to specify an alternate title associated with the designated icon for the corresponding type. So for example, the author could use "title=Next steps " to be associated with the icon for "type=Key point ".
|
body | This parameter is used to display the body text of the iDevice. It will accept any standard wiki text and formatting, including bold, italics, lists, images, etc. |