Template:Mosnav/doc: Difference between revisions
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
To use, follow this simple pattern: | To use, follow this simple pattern: | ||
*{{tlx|mosnav|p|1|2|3|4|5|6|7|8 | *{{tlx|mosnav|p|1|2|3|4|5|6|7|8|c}} | ||
where ''p'' is the parent chapter for all the other pages listed at ''1'', ''2'', ''3'' ... '' | where ''p'' is the parent chapter for all the other pages listed at ''1'', ''2'', ''3'' ... ''19''. All are optional, and if you type {{tlx|mosnav}} alone, it sill simply put the current page in the nav bar like so: | ||
{{mosnav}} | {{mosnav}} | ||
This, however, is not very helpful, because it allows you to navigate only back to the page [[Tardis:Manual of style]]. | This, however, is not very helpful, because it allows you to navigate only back to the page [[Tardis:Manual of style]]. | ||
Line 11: | Line 11: | ||
A more full-bodied example of this template is: | A more full-bodied example of this template is: | ||
:{{tt|< | :{{tt|<nowiki>{{mosnav|p=Wikify wisely|Redlinks|c=wikification}}</nowiki>}} | ||
which produces: | which produces: | ||
{{mosnav|Redlinks|p=Wikify wisely|}} | {{mosnav|Redlinks|p=Wikify wisely|}} |
Revision as of 21:44, 28 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|p|1|2|3|4|5|6|7|8|c}}
where p is the parent chapter for all the other pages listed at 1, 2, 3 ... 19. 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|p=Wikify wisely|Redlinks|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.