Template:Mosnav/doc: Difference between revisions
(Created page with "'''{{tlx|mosnav}}''' is a template that puts a navigation strip, much like the one used for forum threads, at the top of a page. It should be used only on pages of the manual...") |
No edit summary |
||
Line 14: | Line 14: | ||
which produces: | which produces: | ||
{{mosnav|Redlinks|Wikify wisely|}} | {{mosnav|Redlinks|Wikify wisely|}} | ||
Note that the namespace '''Tardis:''' is already assumed. All you need is the page name, not the ''full'' page name. Also, see how the current page name, '''Mosnav''', is put into the navigation bar by default. Obviously, if you were to put this particular example on [[Tardis:Don't over-wikify]], it would make a little more sense. | Note that the namespace '''Tardis:''' is already assumed. All you need is the page name, not the ''full'' page name. Also, see how the current page name, '''Mosnav''', is put into the navigation bar by default. Obviously, if you were to put this particular example on [[Tardis:Don't over-wikify]], it would make a little more sense. | ||
== Thanks == | |||
This template owes some debt to [[memoryalpha:template:mos nav]] — though not quite so much as the name suggests. This is basically just an adaptation of the basic {{tlx|forumheader}} template which is a default part of the Wikia MediaWiki installation. | |||
<noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude> | <noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude> |
Revision as of 19:39, 22 August 2012
{{mosnav}} is a template that puts a navigation strip, much like the one used for forum threads, at the top of a page. It should be used only on pages of the manual of style; hence: mosnav.
Usage
To use, follow this simple pattern:
- {{mosnav|1|2|3|c}}
where 1, 2, and 3 are any pages related to — or, in the same chapter as — the current page. All are optional, and if you type {{mosnav}} alone, it sill simply put the current page in the nav bar like so:
This, however, is not very helpful, because it allows you to navigate only back to the page Tardis:Manual of style.
The variable c can and should be set to a name for the chapter, so that all pages in that chapter can be organised under a single category. The resulting category would then go into Category:Manual of style.
A more full-bodied example of this template is:
- {{mosnav|Redlinks|Wikify wisely|c=wikification}}
which produces:
Note that the namespace Tardis: is already assumed. All you need is the page name, not the full page name. Also, see how the current page name, Mosnav, is put into the navigation bar by default. Obviously, if you were to put this particular example on Tardis:Don't over-wikify, it would make a little more sense.
Thanks
This template owes some debt to memoryalpha:template:mos nav — though not quite so much as the name suggests. This is basically just an adaptation of the basic {{forumheader}} template which is a default part of the Wikia MediaWiki installation.