Jump to content

Template:Navigation page/doc

From Wikipedia, the free encyclopedia

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]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Navigation page in articles based on its TemplateData.

TemplateData for Navigation page

This templates provides a footer for navigation pages, and allows optional navigation links.
Navigation links1
If set to true, shows optional navigation links. See also param "Nostart" to refine the list.
Default
false
Page name2
The title of the navigation page, if different from the current page title.
Default
{{FULLPAGENAME}}
Nocat3
If set to true, suppresses categorization.
Default
false
Noquote4
If set to non-empty, enables unquoted search link.
Nostart5
If set to true, suppresses the Start page link if Nav links are enabled.
Default
false
Demospace6
Name of the desired namespace if testing template categorization behavior.
Default
{{NAMESPACE}}

See also

[edit]