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) |
||
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: {{{ |
+ | {{#if: {{{back}}} | <td>Back to {{{back}}}</td>}} |
− | <td>Return to [[{{{ |
+ | <td>Return to [[{{{main}}}|Main Page]]</td> |
− | {{ |
+ | {{#if: {{{forward}}} | <td>Forward to {{{forward}}}</td>}} |
− | | }} |
||
</tr> |
</tr> |
||
− | </table> |
+ | </table></includeonly> |
+ | <noinclude> |
||
+ | Usage: |
||
+ | <pre> |
||
+ | {{Navigation |
||
+ | | main=Main Page (name only, no link) |
||
+ | | back=Back Link |
||
+ | | forward=Forward Link |
||
+ | }} |
||
+ | </pre> |
||
+ | The Back and Forward lines are optional. The order doesn't matter |
||
+ | <hr> |
||
+ | Example: |
||
+ | <pre> |
||
+ | {{Navigation |
||
+ | | main=Kyoukai Senjou no Horizon |
||
+ | | back=[[Horizon:Volume 1A Illustrations|Novel Illustrations]] |
||
+ | | forward=[[Horizon:Volume 1A Table of Content|Table of Content]] |
||
+ | }} |
||
+ | </pre> |
||
+ | {{Navigation |
||
+ | | main=Kyoukai Senjou no Horizon |
||
+ | | back=[[Horizon:Volume 1A Illustrations|Novel Illustrations]] |
||
+ | | forward=[[Horizon:Volume 1A Table of Content|Table of Content]] |
||
+ | }} |
||
+ | </noinclude> |
Revision as of 02:45, 15 December 2011
Usage:
{{Navigation | main=Main Page (name only, no link) | back=Back Link | forward=Forward Link }}
The Back and Forward lines are optional. The order doesn't matter
Example:
{{Navigation | main=Kyoukai Senjou no Horizon | back=[[Horizon:Volume 1A Illustrations|Novel Illustrations]] | forward=[[Horizon:Volume 1A Table of Content|Table of Content]] }}
Back to Novel Illustrations | Return to Main Page | Forward to Table of Content |