Anonymous

Template:PageGroup: Difference between revisions

From OER in Education
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
The page group template assigns two page properties: A "PageGroup" and a weight within that group, allowing the ordering of pages.  
The page group template assigns two page properties: A "PageGroup" and a weight within that group, allowing the ordering of pages. It also defines the corresponding array.


For instance, OER4S pages use  
A typical use would be
  <nowiki>{{PageGroup|MyPageGroupName|...}}</nowiki>
  <nowiki>{{PageGroupPrev|MyPageGroupName}}</nowiki>
  <nowiki>{{PageGroupNext|MyPageGroupName}}</nowiki>
  <nowiki>{{PageGroupShow|MyPageGroupName}}</nowiki>
 
However, the page groups are just semantic properties, and can be accesses as such. For instance, OER4S pages use  
  <nowiki>{{PageGroup|OER4S|...}}</nowiki>
  <nowiki>{{PageGroup|OER4S|...}}</nowiki>
which creates the PageGroup OER4S, and an associated weight, so that  
which creates the PageGroup OER4S, and an associated weight, so that