Difference between revisions of "Template:Navigation"
Jump to navigation
Jump to search
(I made this before I learned about the existing templates, can be deleted as soon as we have agreed on a "official" one) |
Jonathanasdf (talk | contribs) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <table border="1" cellpadding="5" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaaaaa solid; padding: 0.2em; border-collapse: collapse;"> |
+ | <includeonly><table id="navbar" border="1" cellpadding="5" cellspacing="0" style="margin: 1em 1em 1em 0; background: #f9f9f9; border: 1px #aaaaaa solid; padding: 0.2em; border-collapse: collapse;"> |
<tr> |
<tr> |
||
− | {{#if: {{{2|}}} | <td>Back to {{{2}}}</td> |
+ | {{#if: {{{2|}}} | <td>Back to {{trim|{{{2}}}}}</td>}} |
− | <td>Return to [[{{{1}}}|Main Page]]</td> |
+ | <td>Return to [[{{trim|{{{1}}}}}|Main Page]]</td> |
− | {{ |
+ | {{#if: {{{3|}}} | <td>Forward to {{trim|{{{3}}}}}</td>}} |
− | | }} |
||
</tr> |
</tr> |
||
− | </table> |
+ | </table></includeonly> |
+ | <noinclude> |
||
+ | Usage: |
||
+ | <pre> |
||
+ | {{Navigation |
||
+ | | Main Page (name only, no link) |
||
+ | | Back Link |
||
+ | | Forward Link |
||
+ | }} |
||
+ | </pre> |
||
+ | The back link can be left out, but the pipe must be there. |
||
+ | <hr> |
||
+ | Example: |
||
+ | <pre> |
||
+ | {{Navigation |
||
+ | | Kyoukai Senjou no Horizon |
||
+ | | [[Horizon:Volume 1A Illustrations|Novel Illustrations]] |
||
+ | | [[Horizon:Volume 1A Table of Content|Table of Content]] |
||
+ | }} |
||
+ | </pre> |
||
+ | {{Navigation |
||
+ | | Kyoukai Senjou no Horizon |
||
+ | | [[Horizon:Volume 1A Illustrations|Novel Illustrations]] |
||
+ | | [[Horizon:Volume 1A Table of Content|Table of Content]] |
||
+ | }} |
||
+ | [[category:Simple Navbars]] |
||
+ | </noinclude> |
Latest revision as of 04:42, 15 December 2011
Usage:
{{Navigation | Main Page (name only, no link) | Back Link | Forward Link }}
The back link can be left out, but the pipe must be there.
Example:
{{Navigation | Kyoukai Senjou no Horizon | [[Horizon:Volume 1A Illustrations|Novel Illustrations]] | [[Horizon:Volume 1A Table of Content|Table of Content]] }}
Back to Novel Illustrations | Return to Main Page | Forward to Table of Content |