Difference between revisions of "Template:ChapterOrder"
m |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>[[Category:BT{{{series}}}|{{{sortkey}}}]]</includeonly><noinclude> |
+ | <includeonly>[[Category:BT-{{#lst:{{{series}}}|id}}|{{{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. |
Latest revision as of 18:21, 25 April 2014
What's This Template For?[edit]
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[edit]
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.