Template:BasePageGroup: Difference between revisions
From OER in Education
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>[[PageGroup::{{BASEPAGENAME}}| ]][[PageGroupWeight_{{BASEPAGENAME}}::{{{1| | <includeonly>[[PageGroup::{{BASEPAGENAME}}| ]][[PageGroupWeight_{{BASEPAGENAME}}::{{{1|{{PAGENAME}}}}}| ]]{{BasePageGroupArray}}</includeonly><noinclude> | ||
This template creates a "page group" with the name of the base page, optionally assigning a weight: | This template creates a "page group" with the name of the base page, optionally assigning a weight: | ||
<nowiki>{{BasePageGroup}}</nowiki> | <nowiki>{{BasePageGroup}}</nowiki> | ||
<nowiki>{{BasePageGroup|weight}}</nowiki> | <nowiki>{{BasePageGroup|weight}}</nowiki> | ||
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}}
