Information:Navigation template: Difference between revisions
imported>Deadfire creation |
Tungstenchan (talk | contribs) m Text replacement - "BattleTechWiki" to "BattleIntelligence" |
||
| Line 1: | Line 1: | ||
{{hatnote|For the navigation template guideline, see [[ | {{hatnote|For the navigation template guideline, see [[BattleIntelligence:Categories, lists, and navigation templates#Navigation templates|BattleIntelligence:Categories, lists, and navigation templates § Navigation templates]].}} | ||
{{hatnote|For the Navbox template page, see [[Template:Navbox]]}} | {{hatnote|For the Navbox template page, see [[Template:Navbox]]}} | ||
{{Supplement|interprets=[[Guideline:Categories, lists, and navigation templates]]|BTW:NAV}} | {{Supplement|interprets=[[Guideline:Categories, lists, and navigation templates]]|BTW:NAV}} | ||
{{nutshell|A navigation template links between existing articles belonging to the same topic on | {{nutshell|A navigation template links between existing articles belonging to the same topic on BattleIntelligence. There are two types: "navigation boxes" (or navboxes) and "sidebars".}} | ||
A '''navigation template''' is a grouping of links used in multiple related articles to facilitate navigation between those articles. Editing of a navigation template is done in a central place, the template page. | A '''navigation template''' is a grouping of links used in multiple related articles to facilitate navigation between those articles. Editing of a navigation template is done in a central place, the template page. | ||
'''Do not rely solely on navboxes for links to articles highly relevant to a particular article.''' Navboxes are not displayed very well on the mobile version for | '''Do not rely solely on navboxes for links to articles highly relevant to a particular article.''' Navboxes are not displayed very well on the mobile version for BattleIntelligence, which accounts for around half of readers. | ||
Navboxes are categorized under [[:Category:Navigational boxes]]. Some [[ | Navboxes are categorized under [[:Category:Navigational boxes]]. Some [[BattleIntelligence:WikiProject|WikiProjects]] maintain a list of their navigation templates. | ||
== Types == | == Types == | ||
There are two main varieties of navigation template: ''navigation boxes'' (or ''navboxes''), designed to sit at the very bottom of articles, and ''sidebars'', designed to sit at the side of the article text. The two are complementary and either or both may be appropriate in different situations. | There are two main varieties of navigation template: ''navigation boxes'' (or ''navboxes''), designed to sit at the very bottom of articles, and ''sidebars'', designed to sit at the side of the article text. The two are complementary and either or both may be appropriate in different situations. | ||
* ''Navboxes'' are footer templates that sit below the [[ | * ''Navboxes'' are footer templates that sit below the [[BattleIntelligence:Manual of Style/Layout#Standard appendices and footers|standard article appendices]] and are laid out horizontally. They are created using the {{tl|navbox}} template. | ||
* ''Sidebars'' sit alongside content, in the same manner as [[ | * ''Sidebars'' sit alongside content, in the same manner as [[BattleIntelligence:WikiProject Infoboxes|infoboxes]], and are predominantly laid out vertically. They are created using the {{tl|sidebar}} template. An example sidebar is shown to the right: | ||
The two types are used interchangeably, and either or both may be appropriate in different circumstances. The primary differences between the two are: | The two types are used interchangeably, and either or both may be appropriate in different circumstances. The primary differences between the two are: | ||
| Line 23: | Line 23: | ||
The style of any navigation template depends on its articles, how they are most intuitively presented, and previously established convention. | The style of any navigation template depends on its articles, how they are most intuitively presented, and previously established convention. | ||
=== Navigation templates provide navigation ''within'' | === Navigation templates provide navigation ''within'' BattleIntelligence === | ||
* They are intended to link articles to each other. That is, every article listed on a particular navigation template generally has the template placed on its page. | * They are intended to link articles to each other. That is, every article listed on a particular navigation template generally has the template placed on its page. | ||
* The goal is not to cram as many related articles as possible into one space. Ask yourself, does this help the reader in reading up on related topics? Take any two articles in the template. Would a reader really want to go from A to B? | * The goal is not to cram as many related articles as possible into one space. Ask yourself, does this help the reader in reading up on related topics? Take any two articles in the template. Would a reader really want to go from A to B? | ||
* They should be kept small in size as a large template has limited navigation value. For large navigation templates, consider the following: | * They should be kept small in size as a large template has limited navigation value. For large navigation templates, consider the following: | ||
** Splitting them into multiple, smaller templates on each sub-topic, and especially if individual [[Template:Navbox#Parameter list|groups]] within the template are [[ | ** Splitting them into multiple, smaller templates on each sub-topic, and especially if individual [[Template:Navbox#Parameter list|groups]] within the template are [[BattleIntelligence:Manual of Style#Scrolling lists and collapsible content|collapsible]] [[Template:Navbox#Child navboxes|child navboxes]] that have BattleIntelligence articles about their subjects and the smaller navigation templates would still satisfy [[BattleIntelligence:Categories, lists, and navigation templates#Navigation templates|most or all of the guidelines for good navboxes]]. | ||
** Doing the above with only one template using [[mw:Help:Extension:ParserFunctions|ParserFunctions]]. | ** Doing the above with only one template using [[mw:Help:Extension:ParserFunctions|ParserFunctions]]. | ||
** Linking only the immediately related articles while hiding the rest. | ** Linking only the immediately related articles while hiding the rest. | ||
** Avoiding repeating links to the same article within a template. | ** Avoiding repeating links to the same article within a template. | ||
* They should not be too small. A navigation template with fewer than a handful of links can easily be replaced by "See also" sections or relevant {{tl|main article}} and {{tl|see also}} links within the articles' sections, as well as be merged into a larger template. | * They should not be too small. A navigation template with fewer than a handful of links can easily be replaced by "See also" sections or relevant {{tl|main article}} and {{tl|see also}} links within the articles' sections, as well as be merged into a larger template. | ||
* As [[ | * As [[BattleIntelligence:What BattleIntelligence is not#BattleIntelligence is not a mirror or a repository of links, images, or media files|BattleIntelligence is not a repository of links]], navigation templates do not provide [[BattleIntelligence:External links|external links]] to other websites. | ||
=== Navigation templates provide navigation among ''existing'' articles === | === Navigation templates provide navigation among ''existing'' articles === | ||
* ''Red links'' should normally be avoided unless they are very likely to be developed into articles that satisfy the [[ | * ''Red links'' should normally be avoided unless they are very likely to be developed into articles that satisfy the [[BattleIntelligence:Notability|general notability guideline]] or one of the [[BattleIntelligence:Notability#Subject-specific notability guidelines|subject-specific notability guidelines]], and should not be included where [[BattleIntelligence:What BattleIntelligence is not|BattleIntelligence would be serving a non-encyclopedic purpose]] if articles were created from the red links. | ||
* Red links can be retained in navigation templates that represent a well-defined and complete set of data, where deleting red links would leave an incomplete and misleading result. Even then, editors are encouraged to [[ | * Red links can be retained in navigation templates that represent a well-defined and complete set of data, where deleting red links would leave an incomplete and misleading result. Even then, editors are encouraged to [[BattleIntelligence:Write the article first|write the article first]]. | ||
* Likewise, [[ | * Likewise, [[BattleIntelligence:Redirect|redirects]] should also normally be avoided. The general exception to this is when the redirect represents a distinct sub-topic of an article rather than simply being an alternative name. | ||
* Unlinked text should be avoided. | * Unlinked text should be avoided. | ||
=== Navigation templates provide navigation between ''related'' articles === | === Navigation templates provide navigation between ''related'' articles === | ||
* If the articles are not established as related by [[ | * If the articles are not established as related by [[BattleIntelligence:Identifying reliable sources|reliable sources]] in the actual articles, then it is probably not a good idea to interlink them. Additionally, relatedness is a necessary but not a sufficient condition]] for article inclusion in a navigation template. | ||
* Articles included in a navigation template must be more than ''loosely-related''. While [[ | * Articles included in a navigation template must be more than ''loosely-related''. While [[BattleIntelligence:Categories, lists, and navigation templates#Overlapping categories, lists and navigation templates are not considered duplicative|navigation templates that overlap with categories and lists are not considered duplicative]], the subjects of navigation templates need to be narrower and more specific topics than the subjects of many categories or lists. Otherwise, many templates will become oversized or lead to clutter on articles included in templates. | ||
* Navigation templates should only be created for subjects where every article related to the subject will be included because including an arbitrary selection of articles related to the template's subject can [[ | * Navigation templates should only be created for subjects where every article related to the subject will be included because including an arbitrary selection of articles related to the template's subject can [[BattleIntelligence:Neutral point of view|present a point of view]] or give the subjects of the select articles included [[BattleIntelligence:Neutral point of view#Due and undue weight|undue weight]]. | ||
* For complex topics, a navigation box can provide a comprehensive introduction to a topic. Editors who work on the subsidiary articles in isolation may be unaware of this context. The navigation template provides an easy way for the subsidiary articles, even when they begin as stubs, to instantly inherit the conceptual structure of the main article. | * For complex topics, a navigation box can provide a comprehensive introduction to a topic. Editors who work on the subsidiary articles in isolation may be unaware of this context. The navigation template provides an easy way for the subsidiary articles, even when they begin as stubs, to instantly inherit the conceptual structure of the main article. | ||
=== Navigation templates are not arbitrarily decorative === | === Navigation templates are not arbitrarily decorative === | ||
{{See also| | {{See also|BattleIntelligence:Manual of Style/Icons}} | ||
* There should be justification for a template to deviate from the colors and styles contained in [[Module:Navbox/styles.css]] and [[Module:Sidebar/styles.css]]. | * There should be justification for a template to deviate from the colors and styles contained in [[Module:Navbox/styles.css]] and [[Module:Sidebar/styles.css]]. | ||
* There are two basic layouts: | * There are two basic layouts: | ||
** On the right side of page like {{tl|SBSnav}} (For meta-template, see {{tl|sidebar}}) | ** On the right side of page like {{tl|SBSnav}} (For meta-template, see {{tl|sidebar}}) | ||
** Footer boxes—for example {{tl| | ** Footer boxes—for example {{tl|BattleIntelligence templates}}, designed to appear at the bottom of each article, stacked with other similar templates. ''See also: [[BattleIntelligence:Manual of Style/Layout#Standard appendices and footers|BattleIntelligence:Footers]] for information on placement'' | ||
*** For footer boxes, {{tl|Navbox}} is the standard. | *** For footer boxes, {{tl|Navbox}} is the standard. | ||
**** Existing hard-coded collapsible elements should be converted to one of the templates in [[:Category:Collapse templates]]. This standardizes the look and eases future maintenance. | **** Existing hard-coded collapsible elements should be converted to one of the templates in [[:Category:Collapse templates]]. This standardizes the look and eases future maintenance. | ||
| Line 57: | Line 57: | ||
== Advantages == | == Advantages == | ||
{{see also| | {{see also|BattleIntelligence:Categories, lists, and navigation templates#Advantages}} | ||
Advantages of using navigation templates rather than listing all the links under "[[ | Advantages of using navigation templates rather than listing all the links under "[[BattleIntelligence:Manual of Style/Embedded lists#Related topics (navigational lists)|See also]]" sections include: | ||
* reduction of clutter in that [[ | * reduction of clutter in that [[BattleIntelligence:Manual of Style/Layout|area of the article]] before "References" and "External links", | ||
* compactness of the template compared to a standard list or table, in the case of many links, | * compactness of the template compared to a standard list or table, in the case of many links, | ||
* if the most immediately related links are kept under "See also", the reader has a better idea of scope, | * if the most immediately related links are kept under "See also", the reader has a better idea of scope, | ||
| Line 66: | Line 66: | ||
* ease of maintenance in updating the template as articles get created or deleted, | * ease of maintenance in updating the template as articles get created or deleted, | ||
* aesthetically pleasing appearance to many users, | * aesthetically pleasing appearance to many users, | ||
* new articles in a subject area immediately gain the basic [[ | * new articles in a subject area immediately gain the basic [[BattleIntelligence:Manual of Style/Linking#General points on linking style|link structure]] of existing related articles, eliminating the need for many editors to individually build up their own links and rewrite background material. | ||
* when a new article or an older article that was [[ | * when a new article or an older article that was [[BattleIntelligence:Orphan|orphaned]] is placed in a navbox, the page instantly has a large number of links to it | ||
== Alternatives == | == Alternatives == | ||
| Line 73: | Line 73: | ||
In certain cases, there are alternatives preferable over the creation of a new navigation template. | In certain cases, there are alternatives preferable over the creation of a new navigation template. | ||
* If the group of articles overlaps significantly with an existing [[ | * If the group of articles overlaps significantly with an existing [[BattleIntelligence:Categorization|category]] or [[BattleIntelligence:Stand-alone lists|stand-alone list]], consider adding a link to one of these to the see also section. | ||
* For a series of articles whose only shared characteristic is that they hold the same position or title, such as peerage or world champion sporting titles, consider using [[Information:Succession Box|Succession Box templates]]. Variant templates for persons who have held several notable offices are shown at [[Information:Succession_Box/Templates]]. | * For a series of articles whose only shared characteristic is that they hold the same position or title, such as peerage or world champion sporting titles, consider using [[Information:Succession Box|Succession Box templates]]. Variant templates for persons who have held several notable offices are shown at [[Information:Succession_Box/Templates]]. | ||
* For relating articles across different categories in a logical sequence, use a [[Information:Succession Box|Succession Box template]]. | * For relating articles across different categories in a logical sequence, use a [[Information:Succession Box|Succession Box template]]. | ||
* Use one of these [[ | * Use one of these [[BattleIntelligence:Hatnote|Hatnote]]s: {{Tl|Broader}}, {{Tl|Further}} or {{Tl|Main}}. | ||
== Template limits == | == Template limits == | ||
{{main|Help:Templates#Template limits}} | {{main|Help:Templates#Template limits}} | ||
There are [[ | There are [[BattleIntelligence:Template limits|limits to the number of templates]] an article may have. When a page exceeds this limit it may look fine in preview but, after the edit is saved, one or more footer navboxes display as wikilinks to the now excess navboxes (for example, displaying a link to "Template:Navbox" rather than the Navbox template itself). Solutions for this problem include (a) removing a template, and (b) setting up the footer navboxes so the least important one becomes the "extra" navbox (the one the reader will have to navigate to a separate page to in order to view). | ||
== See also == | == See also == | ||
* [[ | * [[BattleIntelligence:Template namespace]] for an introduction to templates | ||
* [[ | * [[BattleIntelligence:Requested templates]] for help in editing templates | ||
* [[ | * [[BattleIntelligence:Categories, lists, and navigation templates]], for an actual guideline on the subject | ||
* [[ | * [[BattleIntelligence:Template index]], for other types of templates | ||
* [[ | * [[BattleIntelligence:Manual of Style/Infoboxes]] | ||
* [[ | * [[BattleIntelligence:Redirect#Bypass redirects in navigational templates]] | ||
* [[ | * [[BattleIntelligence:WikiProject Navigation templates]] | ||
* {{tl|Quicktemplates}}, a table of templates | * {{tl|Quicktemplates}}, a table of templates | ||
* {{tl| | * {{tl|BattleIntelligence editor navigation}}, an amalgamation of navboxes | ||
{{Navigation templates}} | {{Navigation templates}} | ||
{{ | {{BattleIntelligence templates}} | ||
[[Category:Essays about templates]] | [[Category:Essays about templates]] | ||
[[Category:Navigation templates|+]] | [[Category:Navigation templates|+]] | ||
[[Category:Template help]] | [[Category:Template help]] | ||
Latest revision as of 21:24, 30 April 2025
This is an explanatory essay on Guideline:Categories, lists, and navigation templates. It contains the advice or opinions of one or more BattleIntelligence contributors. This page is not an encyclopedia article, nor is it one of BattleIntelligence's policies or guidelines, as it has not been thoroughly vetted by the community. Some essays represent widespread norms; others only represent minority viewpoints. |
This page in a nutshell: A navigation template links between existing articles belonging to the same topic on BattleIntelligence. There are two types: "navigation boxes" (or navboxes) and "sidebars". |
A navigation template is a grouping of links used in multiple related articles to facilitate navigation between those articles. Editing of a navigation template is done in a central place, the template page.
Do not rely solely on navboxes for links to articles highly relevant to a particular article. Navboxes are not displayed very well on the mobile version for BattleIntelligence, which accounts for around half of readers. Navboxes are categorized under Category:Navigational boxes. Some WikiProjects maintain a list of their navigation templates.
Types
There are two main varieties of navigation template: navigation boxes (or navboxes), designed to sit at the very bottom of articles, and sidebars, designed to sit at the side of the article text. The two are complementary and either or both may be appropriate in different situations.
- Navboxes are footer templates that sit below the standard article appendices and are laid out horizontally. They are created using the {{navbox}} template.
- Sidebars sit alongside content, in the same manner as infoboxes, and are predominantly laid out vertically. They are created using the {{sidebar}} template. An example sidebar is shown to the right:
The two types are used interchangeably, and either or both may be appropriate in different circumstances. The primary differences between the two are:
- Navboxes are laid out horizontally, and so work best for longer lists of links in a small number of sub-categories. As they are placed at the very bottom of articles, they are better for broader lists of links than would be appropriate in a sidebar. Articles often have more than one navbox and content may overlap to a degree: nevertheless, not everything needs a navbox, so navbox templates should only be created when they would be genuinely useful as navigational tools.
- Sidebars are laid out predominantly vertically, and are placed relatively prominently in the body of articles alongside the text. This makes them useful for smaller amounts of directly relevant links. Tangential information should be kept out of sidebars. Few articles have more than one sidebar.
Properties
The usual way to create navigation templates is to use the {{navbox}} or {{sidebar}} master templates. This simplifies the process of creating a functional and consistent template. The style of any navigation template depends on its articles, how they are most intuitively presented, and previously established convention.
Navigation templates provide navigation within BattleIntelligence
- They are intended to link articles to each other. That is, every article listed on a particular navigation template generally has the template placed on its page.
- The goal is not to cram as many related articles as possible into one space. Ask yourself, does this help the reader in reading up on related topics? Take any two articles in the template. Would a reader really want to go from A to B?
- They should be kept small in size as a large template has limited navigation value. For large navigation templates, consider the following:
- Splitting them into multiple, smaller templates on each sub-topic, and especially if individual groups within the template are collapsible child navboxes that have BattleIntelligence articles about their subjects and the smaller navigation templates would still satisfy most or all of the guidelines for good navboxes.
- Doing the above with only one template using ParserFunctions.
- Linking only the immediately related articles while hiding the rest.
- Avoiding repeating links to the same article within a template.
- They should not be too small. A navigation template with fewer than a handful of links can easily be replaced by "See also" sections or relevant {{main article}} and {{see also}} links within the articles' sections, as well as be merged into a larger template.
- As BattleIntelligence is not a repository of links, navigation templates do not provide external links to other websites.
Navigation templates provide navigation among existing articles
- Red links should normally be avoided unless they are very likely to be developed into articles that satisfy the general notability guideline or one of the subject-specific notability guidelines, and should not be included where BattleIntelligence would be serving a non-encyclopedic purpose if articles were created from the red links.
- Red links can be retained in navigation templates that represent a well-defined and complete set of data, where deleting red links would leave an incomplete and misleading result. Even then, editors are encouraged to write the article first.
- Likewise, redirects should also normally be avoided. The general exception to this is when the redirect represents a distinct sub-topic of an article rather than simply being an alternative name.
- Unlinked text should be avoided.
Navigation templates provide navigation between related articles
- If the articles are not established as related by reliable sources in the actual articles, then it is probably not a good idea to interlink them. Additionally, relatedness is a necessary but not a sufficient condition]] for article inclusion in a navigation template.
- Articles included in a navigation template must be more than loosely-related. While navigation templates that overlap with categories and lists are not considered duplicative, the subjects of navigation templates need to be narrower and more specific topics than the subjects of many categories or lists. Otherwise, many templates will become oversized or lead to clutter on articles included in templates.
- Navigation templates should only be created for subjects where every article related to the subject will be included because including an arbitrary selection of articles related to the template's subject can present a point of view or give the subjects of the select articles included undue weight.
- For complex topics, a navigation box can provide a comprehensive introduction to a topic. Editors who work on the subsidiary articles in isolation may be unaware of this context. The navigation template provides an easy way for the subsidiary articles, even when they begin as stubs, to instantly inherit the conceptual structure of the main article.
Navigation templates are not arbitrarily decorative
- There should be justification for a template to deviate from the colors and styles contained in Module:Navbox/styles.css and Module:Sidebar/styles.css.
- There are two basic layouts:
- On the right side of page like {{SBSnav}} (For meta-template, see {{sidebar}})
- Footer boxes—for example {{BattleIntelligence templates}}, designed to appear at the bottom of each article, stacked with other similar templates. See also: BattleIntelligence:Footers for information on placement
- For footer boxes, {{Navbox}} is the standard.
- Existing hard-coded collapsible elements should be converted to one of the templates in Category:Collapse templates. This standardizes the look and eases future maintenance.
- The width of footer boxes should be 100% unless the convention for that type of article is otherwise. It looks inconsistent if multiple boxes in the same article have varying widths.
- For footer boxes, {{Navbox}} is the standard.
Advantages
Advantages of using navigation templates rather than listing all the links under "See also" sections include:
- reduction of clutter in that area of the article before "References" and "External links",
- compactness of the template compared to a standard list or table, in the case of many links,
- if the most immediately related links are kept under "See also", the reader has a better idea of scope,
- less directly related links are out of the way or in some cases hidden by default,
- ease of maintenance in updating the template as articles get created or deleted,
- aesthetically pleasing appearance to many users,
- new articles in a subject area immediately gain the basic link structure of existing related articles, eliminating the need for many editors to individually build up their own links and rewrite background material.
- when a new article or an older article that was orphaned is placed in a navbox, the page instantly has a large number of links to it
Alternatives
In certain cases, there are alternatives preferable over the creation of a new navigation template.
- If the group of articles overlaps significantly with an existing category or stand-alone list, consider adding a link to one of these to the see also section.
- For a series of articles whose only shared characteristic is that they hold the same position or title, such as peerage or world champion sporting titles, consider using Succession Box templates. Variant templates for persons who have held several notable offices are shown at Information:Succession_Box/Templates.
- For relating articles across different categories in a logical sequence, use a Succession Box template.
- Use one of these Hatnotes: {{Broader}}, {{Further}} or {{Main}}.
Template limits
There are limits to the number of templates an article may have. When a page exceeds this limit it may look fine in preview but, after the edit is saved, one or more footer navboxes display as wikilinks to the now excess navboxes (for example, displaying a link to "Template:Navbox" rather than the Navbox template itself). Solutions for this problem include (a) removing a template, and (b) setting up the footer navboxes so the least important one becomes the "extra" navbox (the one the reader will have to navigate to a separate page to in order to view).
See also
- BattleIntelligence:Template namespace for an introduction to templates
- BattleIntelligence:Requested templates for help in editing templates
- BattleIntelligence:Categories, lists, and navigation templates, for an actual guideline on the subject
- BattleIntelligence:Template index, for other types of templates
- BattleIntelligence:Manual of Style/Infoboxes
- BattleIntelligence:Redirect#Bypass redirects in navigational templates
- BattleIntelligence:WikiProject Navigation templates
- {{Quicktemplates}}, a table of templates
- {{BattleIntelligence editor navigation}}, an amalgamation of navboxes
| Template | Collapsible | Header color | Image | Groups | Style (body) parameter/s |
|---|---|---|---|---|---|
| {{Navbox}} | collapsible | navbox | Left/right of body | Yes | Yes |
| {{Navbox with collapsible groups}} | collapsible | navbox | Left/right of body and/or in each list | Yes | Yes |
| {{Navbox with columns}} | collapsible | navbox | Left/right of columns | No | Yes |
| Type | CSS classes | JavaScript | Collapses when | Custom initial state |
Nesting |
|---|---|---|---|---|---|
| Collapsible tables | mw-collapsible | Defined in Common.js | 2 or more autocollapse on page | Yes | Yes |