Template:TOC numbers
Jump to navigation
Jump to search
| {{#ifexpr: {{{1}}} > 00 |{{#ifexpr: {{{1}}} > 01 |{{#ifexpr: {{{1}}} > 02 |{{#ifexpr: {{{1}}} > 03 |{{#ifexpr: {{{1}}} > 04 |{{#ifexpr: {{{1}}} > 05 |{{#ifexpr: {{{1}}} > 06 |{{#ifexpr: {{{1}}} > 07 |{{#ifexpr: {{{1}}} > 08 |{{#ifexpr: {{{1}}} > 09 |{{#ifexpr: {{{1}}} > 10 |{{#ifexpr: {{{1}}} > 11 |{{#ifexpr: {{{1}}} > 12 |{{#ifexpr: {{{1}}} > 13 |{{#ifexpr: {{{1}}} > 14 |{{#ifexpr: {{{1}}} > 15 |{{#ifexpr: {{{1}}} > 16 |{{#ifexpr: {{{1}}} > 17 |{{#ifexpr: {{{1}}} > 18 |{{#ifexpr: {{{1}}} > 19 |{{#ifexpr: {{{1}}} > 20 |{{#ifexpr: {{{1}}} > 21 |{{#ifexpr: {{{1}}} > 22 |{{#ifexpr: {{{1}}} > 23 |{{#ifexpr: {{{1}}} > 24 | 1 |}} |, 2 |}} |, 3 |}} |, 4 |}} |, 5 |}} |, 6 |}} |, 7 |}} |, 8 |}} |, 9 |}} |, 10 |}} |, 11 |}} |, 12 |}} |, 13 |}} |, 14 |}} |, 15 |}} |, 16 |}} |, 17 |}} |, 18 |}} |, 19 |}} |, 20 |}} |, 21 |}} |, 22 |}} |, 23 |}} |, 24 |}} |, 25 |}} | }} |
Note: This template isn't working right yet, don't use it at this point.
This replaces the auto-generated TOC with a simple numbered table of contents for use in stories where parts are numbered but not named.
It takes one optional named parameter, "type", that defaults to "Chapter". It also has one required unnamed parameter, a number from 1 to 25, that sets the number of parts.
So for example:
{{TOC numbers|12}} for a story with 12 chapters
{{TOC numbers|type=Part|15}} for a story with 15 parts.