Template:NavNamed

From UIT
(Difference between revisions)
Jump to: navigation, search
(Created page with "<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...")
 
(Usage)
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
== Usage ==
 
== 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]].
+
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>{{navnamed|left=</nowiki>''page/to/the/left''<nowiki>|left_name=</nowiki>''name of the page/to/the/left''<nowiki>|up=</nowiki>''parent''<nowiki>|up_name=</nowiki>''parent name''<nowiki>|right=</nowiki>''page/to/the/right''<nowiki>|right_name=</nowiki>''name of the page/to/the/right''<nowiki>|right_name=</nowiki>''name of the page/to/the/right''<nowiki>}}</nowiki>
+
  <nowiki>{{navNamed|left=</nowiki>''page/to/the/left''<nowiki>|left_name=</nowiki>''name of the page/to/the/left''<nowiki>|up=</nowiki>''parent''<nowiki>|up_name=</nowiki>''parent name''<nowiki>|right=</nowiki>''page/to/the/right''<nowiki>|right_name=</nowiki>''name of the page/to/the/right''<nowiki>}}</nowiki>
  
 
This will result in a navigation frame like this:
 
This will result in a navigation frame like this:
Line 9: Line 9:
 
<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:3px 8px" >[[Image:arrow_left.gif|12px|link={{{left|Main_Page}}}]] [[{{{left|Main_Page}}}|{{{left_name|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_name|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_name|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_name|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_name|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_name|Main Page}}}]] [[Image:arrow_right.gif|12px|link={{{right|Main_Page}}}]]</span>
 
</p>
 
</p>

Latest revision as of 11:07, 3 December 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.

{{navNamed|left=page/to/the/left|left_name=name of the page/to/the/left|up=parent|up_name=parent name|right=page/to/the/right|right_name=name of the 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