Template:Navigation/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
==Usage== | ==Usage== | ||
Make a '''new template''' with the following: | |||
<pre> | <pre> | ||
{{Navigation | {{Navigation | ||
| Line 7: | Line 9: | ||
| link1 = | | link1 = | ||
| link2 = | | link2 = | ||
| link3 = | |||
| link4 = | |||
}} | }} | ||
</pre> | </pre> | ||
Can be used up to <code>| link20 = </code> | Can be used up to <code>| link20 = </code>. Requires at least two links (why else would you need a nav template?). | ||
If you need to format the link name differently than the page name (same idea as using <code><nowiki>[[link|link name]]</nowiki></code> then use <code>| link1 name = </code>, etc. | If you need to format the link name differently than the page name (same idea as using <code><nowiki>[[link|link name]]</nowiki></code> then use <code>| link1 name = </code>, etc. | ||
| Line 26: | Line 30: | ||
</pre> | </pre> | ||
<includeonly>[[Category: | <includeonly> | ||
[[Category:Navigation templates|*]] | |||
</includeonly> | |||
Latest revision as of 03:30, 22 May 2013
Used for making navigation templates between a series of related pages.
Usage
Make a new template with the following:
{{Navigation
| nav name =
| link1 =
| link2 =
| link3 =
| link4 =
}}
Can be used up to | link20 = . Requires at least two links (why else would you need a nav template?).
If you need to format the link name differently than the page name (same idea as using [[link|link name]] then use | link1 name = , etc.
For example, here link3 is given a different link name than the page name:
{{Navigation
| nav name = Bugs
| link1 = Ants
| link2 = Spiders
| link3 = Flys (the bad kind)
| link3 name = Flys
| link4 = Polar bears
}}