Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Ordinal_Category/doc to edit this documentation. (How does this work?)
Description
This template is used by infoboxes to automatically add a category with a three-digit zero-padded ordinal sort key.
Syntax
{{Ordinal Category|<category name>|<number>}}
The first parameter should be the category name without its Category: prefix.
The second parameter, if numeric, becomes the basis for the sort key. If this parameter is missing or not numeric, no category is added. A plus-delimited non-numeric suffix is permitted.
Examples
{{Ordinal Category|Chapters|49.5}} generates the wikitext:
[[Category:Chapters|049.5]]
{{Ordinal Category|Illegals Chapters|6+α}} generates the wikitext:
[[Category:Illegals Chapters|006+α]]
{{Ordinal Category|Episodes|30}} generates the wikitext:
[[Category:Episodes|030]]
{{Ordinal Category|Foo|Bar}} generates nothing.
*Disclosure: Some of the links above are affiliate links, meaning, at no additional cost to you, Fandom will earn a commission if you click through and make a purchase. Community content is available under CC-BY-SA unless otherwise noted.