Template:Chapter: Difference between revisions
Jump to navigation
Jump to search
(forgot to catch level 0 in switch stmt) |
(+docs) |
||
Line 26: | Line 26: | ||
|} | |} | ||
|} | |} | ||
<noinclude> | <noinclude>This handy template is used for navigation on the [[Chapters|Chapter summary pages]]. The syntax is simply <nowiki>{{Chapter|x}}</nowiki>, where x is the chapter number (0-14). Internally, the template uses the [[Template:Chapters|Chapters]] template, which creates the box with the chapter numbers using the [[Template:C|C template]]. The C template and this Chapter template itself use the templates [[Template:C0|C0]]—[[Template:C14|C14]] to obtain the actual level names used to generate the wiki links in the navigation box. | ||
[[Category:General table templates]]</noinclude> | [[Category:General table templates]]</noinclude> |
Revision as of 17:15, 21 March 2012
|
This handy template is used for navigation on the Chapter summary pages. The syntax is simply {{Chapter|x}}, where x is the chapter number (0-14). Internally, the template uses the Chapters template, which creates the box with the chapter numbers using the C template. The C template and this Chapter template itself use the templates C0—C14 to obtain the actual level names used to generate the wiki links in the navigation box.