Template:ChapterOrder

From Baka-Tsuki
Jump to navigation Jump to search

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.