User:KTucker/My Sandbox/Samples

Aim: design a set of templates to make it easy for educators to contribute Activities, Resources, etc. and be able to edit sections easily ....

=Page Templates=

These will be useful for generating whole pages for courses/modules with predefined sections such as Preparation, Orientation, Anticipated Learning Outcomes etc.. The effort here starts with the


 * Introductory and
 * Activity pages in the Student Social Entrepreneurship Curriculum.

The generator can also have the resulting page create links to sub-pages such as /Activities and /Resources.


 * Introduction - the introductory page (which will include anticipated learning outcomes).
 * Activities - learning activities effecting the outcomes.


 * Test Subst created this page to test subst: in the main namespace (it can be deleted after the test).

Themes

 * SSE Current Theme is a template which returns attributes for each standard box. Changing it will change all the pages using this template.

For example:


 * returns ,
 * returns ,
 * returns ,
 * returns ,
 * returns ,
 * returns ,
 * returns.

Add to this to get themes for other page sections.

Page Generators
Under development:


 * SSE Module Introductory Page Generator template (wip)
 * Template:SSE Module Navigator Preload
 * ?? Need a subst: or a way to fix the content (a 'template:' prefix is inserted before the links to the edit pages included in the boxes).
 * Template:SSE Activities Preload
 * Template:SSE Tips Preload
 * Template:SSE Guidance Preload
 * Template:SSE Go Preload
 * Template:SSE Resources Preload
 * Template:SSE Community Preload
 * Template:SSE Links Preload

Problems:


 * '../' link does not work if we are at the top of the hierarchy - i.e. will not link higher than top level resource (probably en.wikiversity.org ).
 * need to understand when template name space will be used automatically e.g. does '{{' imply Template: ?

Current approach using subst for an entire template page seems to avoid some of these these problems.

{{SSE Module Page Generator}}

Simple Earlier Example
Based on WikiEducator's "Template:Otago Page Generator":



=Look and Feel=

For a consistent look across the pages it will be useful to have a set of images and themes.

Similarly, it might be useful to have key terminology substitutions for some of the headings. For example. we might want to change "Preparation" to "Orientation", or "Learning Objectives" to "Anticipated Learning Outcomes", etc. ... this suggests an entire "localisation" framework which I do not intend to build at this time.

Image Selector

 * Image selector template substitutes images associated with a name (e.g. orientation, preparation, tips, tools, solutions, etc.). Changing an entry in the template changes the image for all pages in this collection (well, for those pages which actually use this template that is).
 * list of SSE image names included so far.

Theme Selector
First, a few tests around themes: =  :   :   : X  :

Not sure if this is the best way to do this but ...

sandy border colour = returns
 * sandy border colour =

gaia background colour = returns
 * gaia background colour =

returns

unknown theme output = returns
 * unknown theme output =

unknown property output = returns
 * unknown property output =

See:


 * SSE Themes
 * Template:Box Theme Attribute
 * Template:SSE Current Theme

=Section Template Samples=

Latest (preferred and supercede the ones below):


 * Template:Tbwes - Themed box with width parameter and edit section
 * Template:Tbwes2 - Themed box with width parameter and 2 edit sections
 * Template:Tbwes3 - Themed box with width parameter and 3 edit sections

Many of these use Rounded Boxes.

A page will generally start with a navigation template (see below).

Then there will be other things which may require a different structure such as one or more of the following sections:


 * One Box Section
 * One Box Section with editable items
 * (this one removes Edit links from sections and has a fixed theme)

Being able to edit items in this way is ok (since default edit links nolonger appear) - now add theme parameters:


 * Themed box with edit section


 * More themed boxes

Variable Width Version

 * Two Box Section Themed Variable Width

Another Three Box Section
To show different themes (which come from here):

Refactor to Use Themable
Single template with parameters to theme each of the three boxes independently.


 * Three Box Section T
 * Three Box Section TL - left side longer

Variable Width Version

 * Three Box Section TW - variable width

Also existing :


 * Template:Tbwes - Themed box with width parameter and edit section
 * Template:Tbwes2 - Themed box with width parameter and 2 edit sections
 * Template:Tbwes3 - Themed box with width parameter and 3 edit sections

Tbwes Tests.

=Navigation Templates=

Aim: create templates for navigation.

First make a simple one which users specify what pages are in the collection - "Module Navigation". Based on this we could make a course navigation template (i.e. at a higher level - maybe with a different colour scheme).

Then, make one which pre-prepares sub-pages for objectives, activities, resources, community and links.

Module Navigation
Inspired by WikiEducator's Project Nav template.

Template:Module Nav

Example:

Pages and Templates Using Template:Module Nav
Most of the SSE templates use it:

e.g. Template:SSE Intro Nav:

These were inspired by Leigh's proposed structure for wiki learning pages. All have sections: Introduction, learning Activities, Resources, Community, Links.


 * Introduction to Social Entrepreneurship - Template:SSE Intro Nav
 * Understanding Developing Communities and navigator
 * Social Innovation and navigator
 * Collaboration and Partnerships and navigator
 * Developing a Social Entrepreneurial Idea and navigator
 * Sharing Ideas and navigator
 * Resources and Processes for Social Entrepreneurship and navigator
 * Valuation and navigator
 * Valuation and navigator
 * Sustainability and navigator
 * Putting it all Together and navigator.

OARCL-NAV
Main page with subpages for objectives, activities, resources, community and links. This one is less flexible, but may save some typing by automatically creating links to sub-pages which may be created by clicking on them.

Template:OARCL-NAV - WIP

Example:

ToDo:

 * Find a way round the fact that the Home/Back link does not work at the top of a hierarchy where Home would presumably point to Wikiversity.org.

List of Templates

 * Template:Module Nav - navigator template.
 * Template:SSE Current Theme - given box-type, returns theme name.
 * Template:Project Current Theme - possible successor.
 * Template:Box Theme Attribute - given the theme, box and required attribute, it returns a colour (usually - except for roundedbox-theme).
 * was Template:SSE Theme - find and rename references to this.
 * Template:Tbwes, Template:Tbwes2, Template:Tbwes3, ...
 * these probably supercede Template:Two Box Section TW and Template:Three Box Section TW but check. The latter use Tbwes and may have some advantages as sections with edit links. They also take parameters for box theme attributes, rather than just a theme name.
 * Similarly, check: Template:Two Box Section,Template:Three Box Section, Template:Three Box Section L.
 * Template:SSE Activity
 * Template:Activity Detail <-- remove SSE Theme refs inside.

=To Do=