Template:About-canon/doc
This is a documentation subpage for Template:About-canon. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template should be used on articles only if other topics and articles exist with very similar names. For most articles, this is not true, so do not use this template on them. |
This template uses Lua: |
{{About-canon}}
is a hatnote template that
and should be placed at the top of an article (but following {{Short description}}
, if present), linking the reader to other articles with similar titles or concepts that they may have been seeking instead. It is similar to {{About}}
but takes simplified parameters specific to TSP Encyclopedia.
Example usage:
{{About-canon|o}}
→{{About-canon|p|n}}
→{{About-canon|custom1|custom2}}
→
Currently supported shorthand (all case-insensitive): p for Pacifica pages, n or m for NationStates pages, and a for A1-0 pages.
This template automatically detects (from the text in parentheses at the end of the article, if any) whether the current page is about NationStates or which roleplay canon the page is about. One possibly unexpected behavior as a result is that pages not in the article namespace, that have no disambiguator at the end, will be classified as NationStates articles.
Some additional features of {{About}}
are also supported. For example:
{{About-canon|p|section=yes}}
→
A |text=
option adds text to the end; this should only be used when truly necessary, when the other hatnote templates listed below don't suffice. This template supports |selfref=
(see {{self reference}} and MOS:SELFREF for details).
For reference, see wikipedia:Wikipedia:hatnote and documentation below.
TemplateData
TemplateData for About-canon
This template is a hatnote in the format "This page is about … For other uses …".
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page description | 1 | What the page this template is placed on is about ("This page is about …") | String | suggested |
Other page 1 description | 2 | What the first other page is about. If unused or blank, defaults to "For other uses". | String | suggested |
Other page 1 title | 3 | The title of the first other page. If unused, defaults to "[page title] (disambiguation)". | Page name | suggested |
Other page 2 description | 4 | What the second other page is about. | String | optional |
Other page 2 title | 5 | The title of the second other page. If unused or blank and parameter 4 exists, defaults to "[page title] (disambiguation)". | Page name | optional |
Other page 3 description | 6 | What the third other page is about. | String | optional |
Other page 3 title | 7 | The title of the third other page. If unused or blank and parameter 6 exists, defaults to "[page title] (disambiguation)". | Page name | optional |
Other page 4 description | 8 | What the fourth other page is about. | String | optional |
Other page 4 title | 9 | The title of the fourth other page. If unused or blank and parameter 8 exists, defaults to "[page title] (disambiguation)". | Page name | optional |
section | section | Pass "yes" in this parameter to get wording appropriate for use at the top of a section.
| String | optional |
Custom text | text | Text to be appended to the end. | String | optional |
Lua error in Module:Effective_protection_level at line 63: attempt to index field 'TitleBlacklist' (a nil value).