Template:CatChapter: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(+ main argument) |
(+ cat and nocat arguments) |
||
Line 1: | Line 1: | ||
<div style="text-align: center"> |
<div style="text-align: center"> |
||
Chapter navigation:<p>{{#if:{{{prev|}}}|[[:Category:{{{prev}}}]] ←}} '''{{FULLPAGENAME}}''' {{#if:{{{next|}}}|→ [[:Category:{{{next}}}]]}}</p> |
Chapter navigation:<p>{{#if:{{{prev|}}}|[[:Category:{{{prev}}}]] ←}} '''{{FULLPAGENAME}}''' {{#if:{{{next|}}}|→ [[:Category:{{{next}}}]]}}</p> |
||
{{Main|{{{main|{{PAGENAME}}}}}}}<includeonly>[[Category:Chapters]]</includeonly> |
{{Main|{{{main|{{PAGENAME}}}}}}}<includeonly>{{{#if:{{{nocat|}}}||[[Category:{{{cat|Chapters}}}]]}}</includeonly> |
||
</div> |
</div> |
||
<noinclude><br>{{Documentation}}</noinclude> |
<noinclude><br>{{Documentation}}</noinclude> |
Revision as of 15:36, 5 July 2024
Chapter navigation:
Template:CatChapter
This template appends the chapter category browser to the page, links to the main page and appends the Chapters category. This template should be used only on category pages containing chapters.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Previous chapter | prev | Enter the name in full
| String | optional |
Next chapter | next | Enter the name in full
| String | optional |
Main article | main | The article used in Main template
| Line | optional |
Category | cat | The category to auto-categorize. Has no effect if nocat is set.
| Line | optional |
nocat | nocat | Check if you don't want to categorize the page. | Boolean | optional |