Template:NearbyPagesToc

From Cosmoteer Wiki
Jump to navigation Jump to search

Examples

See the blocks on the right - they are defined in that order:

  • Modding/Components sibling pages. Uses anonymous params.
  • Modding/Components sibling pages, block's title is overridden to "Sibling pages". Uses anonymous params.
  • Modding/Components sibling pages, block's title is overridden to "Sibling pages here too". Uses named params.
  • Modding/Components sibling pages with reversed sorting order. Uses anonymous params.
  • Modding/Components immediate subpages. Uses anonymous params.
  • Modding/Components immediate subpages, block's title is overridden to "Subpages". Uses anonymous params.
  • Modding/Components immediate subpages, block's title is overridden to "Subpages here". Uses named params.
  • Modding/Components immediate subpages with reversed sorting order. Uses anonymous params.




Creates a TOC-like block that lists the current page sibling pages (including the page itself). The page can be overriden.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Type1

The type of pages to fetch. "sibling pages" is for pages on the same level with the same parent (including the given page); "subpages" is for subpages on the next level of depth (so no subpages of subpages).

Suggested values
sibling pages subpages
Linerequired
Page overridepage

Allows to override the page for which are the nearby pages are listed.

Example
Modding/Components
Page nameoptional
Title overridetitle

Allows to override the title of the pages TOC-like block.

Lineoptional
Order overrideorder

Override of links' sorting order. Default order is "asc".

Suggested values
asc desc
Lineoptional