Template:mainnav

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(Example using Main Page 1.)
(update URL format)
 
(includes 4 intermediate revisions)
Line 1: Line 1:
-
<table align="right" border="1" cellpadding="4" cellspacing="0" style="background:#f2f2f2;border:1px solid #ccc;padding: 5px;font-size:x-small;line-height:100%;border-collapse: collapse;"><tr>
+
{{NavFlex<!--
-
<td style="border-right:1px solid #ccc;">[[HR:main{{{1|1}}}.html|go to Main Page {{{1|1}}}]]&nbsp;</td>
+
  -->|LeftText=<!--
-
<td style="border-right:1px solid #ccc;">[[Main_Page_{{{2|23}}}|<span style="font-size:small">&larr;</span>Main Page {{{2|23}}}]]</td>
+
  -->|LeftVar=<!--
-
<td>[[Main_Page_{{{3|2}}}|Main Page {{{3|2}}} <span style="font-size:small">&rarr;</span>]]</td></tr></table><noinclude>[[Category:Quick Navigation Templates|{{PAGENAME}}]]</noinclude>
+
 
 +
  -->|RightMainLink=HR:main/{{{1}}}<!--
 +
  -->|RightMainText=go to Main Page {{{1}}}<!--
 +
 
 +
  -->|RightPrevLink=Main Page {{{2}}}<!--
 +
  -->|RightPrevText=Main Page {{{2}}}<!--
 +
 
 +
  -->|RightNextLink=Main Page {{{3}}}<!--
 +
  -->|RightNextText=Main Page {{{3}}}<!--
 +
 
 +
  -->|FileName={{#if:{{{link|}}}|{{{link|}}}|main{{{1}}}}}<!--
 +
-->}}<noinclude>
 +
 
 +
This template is an extension of [[Template:NavFlex]].  If you need to change the visual style, you'll need to edit over there.
 +
 
 +
; Inputs
 +
: 1=main page #
 +
: 2=previous main page #
 +
: 3=next main page #
 +
: link=filename (optional for subtitle parameters, if 1 is incorrect)
 +
 
 +
[[Category:NavFlex Templates|{{PAGENAME}}]]
 +
[[Category:Quick Navigation Templates|{{PAGENAME}}]]
 +
 
 +
</noinclude>

Current revision as of 16:43, 13 January 2023

[[HR:main/{{{1}}}|go to Main Page {{{1}}}]] [[Main Page {{{2}}}| Main Page {{{2}}}]] [[Main Page {{{3}}}|Main Page {{{3}}} ]]

This template is an extension of Template:NavFlex. If you need to change the visual style, you'll need to edit over there.

Inputs
1=main page #
2=previous main page #
3=next main page #
link=filename (optional for subtitle parameters, if 1 is incorrect)
Personal tools