Template:Nav

From UIT
(Difference between revisions)
Jump to: navigation, search
 
(6 intermediate revisions by one user not shown)
Line 3: Line 3:
 
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]].
 
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>
+
<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>
 
</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:4px 10px" >[[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: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:4px 10px">[[Image:arrow_up.gif|12px|link={{{up|Main_Page}}}]] [[{{{up|Main_Page}}}|{{{up|Main_Page}}}]]</span>  
+
<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 style="vertical-align:middle;text-align:center;background-color:#fff;border:1px solid #666;border-radius:5px;padding:4px 10px">[[{{{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:3px 8px">[[{{{right|Main_Page}}}|{{{right|Main_Page}}}]] [[Image:arrow_right.gif|12px|link={{{right|Main_Page}}}]]</span>
 
</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:

Navigation
Arrow left.gif Main_Page Arrow up.gif Main_Page Main_Page Arrow right.gif

Personal tools
Namespaces
Variants
Actions
Navigation
Browse
Toolbox