Template:Nav
From UIT
(Difference between revisions)
(22 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
+ | <noinclude> | ||
+ | == Usage == | ||
+ | Copy following code and replace the text in ''italic'' with your desired wiki pages. If you don't declare one of the parameters, it will be replaced by a default link to the [[Main_Page|Main_Page]]. | ||
+ | |||
+ | <nowiki>{{nav|left=</nowiki>''page/to/the/left''<nowiki>|up=</nowiki>''parent''<nowiki>|right=</nowiki>''page/to/the/right''<nowiki>}}</nowiki> | ||
+ | |||
+ | This will result in a navigation frame like this: | ||
+ | </noinclude> | ||
<p style="text-align:center;background-color:#f9f9f9;border:1px solid #666;border-radius:5px;padding:5px"> | <p style="text-align:center;background-color:#f9f9f9;border:1px solid #666;border-radius:5px;padding:5px"> | ||
− | <span style="vertical-align:text-top" >'''Navigation ''' </span> <br/> | + | <span style="vertical-align:text-top" >'''Navigation'''</span> <br/> |
− | <span style="vertical-align:middle;text-align:center;background-color:#fff;border:1px solid #666;border-radius:5px;padding: | + | <span style="vertical-align:middle;text-align:center;background-color:#fff;border:1px solid #666;border-radius:5px;padding:3px 8px" >[[Image:arrow_left.gif|12px|link={{{left|Main_Page}}}]] [[{{{left|Main_Page}}}|{{{left|Main_Page}}}]]</span> |
− | <span style="vertical-align:middle;text-align:center;background-color:#fff;border:1px solid #666;border-radius:5px;padding: | + | <span style="vertical-align:middle;text-align:center;background-color:#fff;border:1px solid #666;border-radius:5px;padding:3px 8px">[[Image:arrow_up.gif|12px|link={{{up|Main_Page}}}]] [[{{{up|Main_Page}}}|{{{up|Main_Page}}}]]</span> |
− | </span> | + | <span style="vertical-align:middle;text-align:center;background-color:#fff;border:1px solid #666;border-radius:5px;padding:3px 8px">[[{{{right|Main_Page}}}|{{{right|Main_Page}}}]] [[Image:arrow_right.gif|12px|link={{{right|Main_Page}}}]]</span> |
− | <span style="vertical-align:middle;text-align:center;background-color:#fff;border:1px solid #666;border-radius:5px;padding: | + | |
</p> | </p> |
Latest revision as of 18:17, 5 June 2012
Usage
Copy following code and replace the text in italic with your desired wiki pages. If you don't declare one of the parameters, it will be replaced by a default link to the Main_Page.
{{nav|left=page/to/the/left|up=parent|right=page/to/the/right}}
This will result in a navigation frame like this: