Template:New wiki pages/doc

This template creates a special-purpose form of navigation template, used for listing a set of newly created wiki pages.

Usage
Invoke with

Parameters may also be supplied by position, in the order shown above. FY indicates the fiscal year, for example FY 2011, and should be supplied, but if not supplied it is left blank. The value of state is passed to the underlying Navbox; it is optional, and if not supplied its default value is collapsed.

Page list is required, and is typically a numbered list. If this list starts with, or is punctuated by, anything other than a numbered list entry, the underlying Navbox can default to rendering the list as bulletted rather than numbered. Leaving a blank line between any non-list elements and list entries avoids this problem.

For example, insert a blank line after the text and before the first #.

Example
Using:

Results in:

Special case when transcluded from "new pages" articles
As a special case, if this template is transcluded from an article whose page name indicates that it is a simple list of new wiki pages, the template renders the page list as plain article text, rather than inside a Navbox. This allows articles that list new pages to display lists as normal page text. (In this case, any state parameter is ignored.)

For this to occur, the value of must match the pattern ^ *%d%d%d%d *[-] *%d%d%d%d *new *pages *$. Where there is a match, the example above results in:

For a working instance, see: 2022 - 2023 new pages.

There is also a test page for this template, to ensure that transclusion from pages that do not meet this special case generates Navbox lists, as expected. See: Bogleheads:New wiki pages test.