Template:Mosnav/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
no edit summary
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|1|2|3|c}}
*{{tlx|mosnav|p|1|2|3|4|5|6|7|8|9|10|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 {{tlx|mosnav}} alone, it sill simply put the current page in the nav bar like so:
where ''p'' is the parent chapter for all the other pages listed at ''1'', ''2'', ''3'' ... ''10''. 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|<nowikI>{{mosnav|Redlinks|Wikify wisely|c=wikification}}</nowiki>}}
:{{tt|<nowikI>{{mosnav|p=Wikify wisely|Redlinks|c=wikification}}</nowiki>}}
which produces:
which produces:
{{mosnav|Redlinks|Wikify wisely|}}  
{{mosnav|Redlinks|p=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 ==
== 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.
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>
85,404

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.