Template:Navigation page/sandbox
![]() | This is the template sandbox page for Template:Navigation page (diff). See also the companion subpage for test cases. |
This is the {{Navigation page}} template.
It can be used to mark a page as a navigation page.
Usage
[edit]{{Navigation page}}
{{Navigation page|y/n|PAGENAME|noquote=y|nostart=y}}
Parameters
[edit]Two positional (unnamed) and four named params; all optional:
|1=yes
– shows optional navigation links; default: no optional links|2=PAGENAME of article
– only needed if different than current pagename; default:{{PAGENAME}}
|nocat=yes
– suppresses § Categorization; default: categorized|noquote=yes
– performs unquoted search (many more results); default: quoted (exact match search; few results, better precision)|nostart=yes
– suppresses the start link if|1=yes
, so that only two links are emitted|demospace=
– set the value to any namespace name to test § Categorization; possible values: see the namespace table.
Categorization
[edit]This template automatically adds articles to Category:Navigation pages. Its behavior can be altered by two parameters:
- Use param
|nocat=
to suppress categorization. - Use param
|demospace=
to test categorization by acting as if the page (param|2=
or current PAGENAME) were in the given namespace.
Examples
[edit]1.
{{Navigation page}} |
---|
{{Navigation page|nocat=true}} →
|
2.
{{Navigation page|no|Glove and Boots}} |
---|
{{Navigation page|no|Glove and Boots|nocat=true}} →
|
3.
{{Navigation page|yes|Glove and Boots}} |
---|
{{Navigation page|yes|Glove and Boots|nocat=true}} → You can also:
|
4.
{{Navigation page|yes|Glove and Boots|noquote=yes}} |
---|
{{Navigation page|yes|Glove and Boots|noquote=yes|nocat=true}} → You can also:
|
5.
{{Navigation page|yes|Amari McCoy|nostart=yes}} |
---|
{{Navigation page|yes|Amari McCoy|nostart=yes|nocat=true}} → You can also:
|
Notes
[edit]If a navigation page contains a Notes or References section and/or a navbox and you wish to place navigation links above such content whilst still keeping the main notice on the bottom, you can insert {{navlinks}}
at the desired location within the page. To hide the invite to start an article, you can insert {{navlinks|nostart}}
instead.
TemplateData
[edit]TemplateData for Navigation page
This templates provides a footer for navigation pages, and allows optional navigation links.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Navigation links | 1 | If set to true, shows optional navigation links. See also param "Nostart" to refine the list.
| String | optional |
Page name | 2 | The title of the navigation page, if different from the current page title.
| String | optional |
Nocat | 3 | If set to true, suppresses categorization.
| Boolean | optional |
Noquote | 4 | If set to non-empty, enables unquoted search link.
| Boolean | optional |
Nostart | 5 | If set to true, suppresses the Start page link if Nav links are enabled.
| Boolean | optional |
Demospace | 6 | Name of the desired namespace if testing template categorization behavior.
| String | optional |
See also
[edit]- {{Navlinks}} for placing navlinks separately from message boxes in cases where such separation is needed
- {{Set index article}} – The generic set index article message box
- {{Disambiguation}} – The generic disambiguation message box
- Wikipedia:Navigation pages
- Wikipedia:Set index articles
- Wikipedia:Disambiguation