Template:BasePageGroup: Difference between revisions

From OER in Education
No edit summary
No edit summary
 
Line 3: Line 3:
  <nowiki>{{BasePageGroup}}</nowiki>
  <nowiki>{{BasePageGroup}}</nowiki>
  <nowiki>{{BasePageGroup|weight}}</nowiki>
  <nowiki>{{BasePageGroup|weight}}</nowiki>
It also defines the "page group array", needed for menus / prev / next.
This also defines the "page group array", needed for menus / prev / next, and which can be used as follows:
<nowiki>{{BasePageGroupShow}}</nowiki>
<nowiki>{{BasePageGroupPrev}}</nowiki>
<nowiki>{{BasePageGroupNext}}</nowiki>
[[Category:PageGroupTemplate]]
[[Category:PageGroupTemplate]]
</noinclude>
</noinclude>

Latest revision as of 14:01, 11 May 2012

This template creates a "page group" with the name of the base page, optionally assigning a weight:

{{BasePageGroup}}
{{BasePageGroup|weight}}

This also defines the "page group array", needed for menus / prev / next, and which can be used as follows:

{{BasePageGroupShow}}
{{BasePageGroupPrev}}
{{BasePageGroupNext}}