Difference between revisions of "Template:ChapterOrder"
(Created page with "<includeonly>[[Category:BT{{#lst:{{{series}}}|id}}|{{{sortkey}}}]]</includeonly><noinclude> ==What's This Template For?== This template is a hypothetical system we could use t...") |
m |
||
Line 1: | Line 1: | ||
− | <includeonly>[[Category:BT |
+ | <includeonly>[[Category:BT{{{series}}}|{{{sortkey}}}]]</includeonly><noinclude> |
==What's This Template For?== |
==What's This Template For?== |
||
This template is a hypothetical system we could use to make it easier for API developers to access a list of chapters that are sorted in order. It depends on a human manual implementation of a sortkey on every chapter of the series. |
This template is a hypothetical system we could use to make it easier for API developers to access a list of chapters that are sorted in order. It depends on a human manual implementation of a sortkey on every chapter of the series. |
Revision as of 18:19, 25 April 2014
What's This Template For?
This template is a hypothetical system we could use to make it easier for API developers to access a list of chapters that are sorted in order. It depends on a human manual implementation of a sortkey on every chapter of the series.
Instructions
Copy this code:
{{ChapterOrder series=[the title of your series] sortkey=[the nth chapter of the whole series.] }}
In short, if this were Volume 3 Chapter 1 of a series, it's the 21st chronological chapter of a series. Hence, the sortkey should be 21.
This way, when you list all the pages in a category, (the category being the PageID), all the chapters will be listed in chronological order.
There's a lot of improvements that could be made. For example, the first part of the code (asking for the series name), is probably not necessary if I bothered to try to read AAKira's code for his SimpleNav. Installation is a little different, so contact me if you're thinking about doing anything with it.