Difference between revisions of "Template:Navigation"
From Event-B
Jump to navigationJump to searchimported>Mathieu m (addition for eclipse help translation) |
imported>Mathieu m (cat) |
||
(14 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
Allow to put a small navigation panel at the bottom or at the top of a page. | Allow to put a small navigation panel at the bottom or at the top of a page. | ||
Useful for navigating between document sections | Useful for navigating between document sections | ||
+ | |||
+ | <pre><nowiki> | ||
{{Navigation | {{Navigation | ||
|Previous= previous link | |Previous= previous link | ||
|Next=next link | |Next=next link | ||
|Up=up link}} | |Up=up link}} | ||
+ | </nowiki></pre> | ||
+ | ==Exemple== | ||
+ | All links: | ||
+ | {{Navigation | ||
+ | |Previous= previous link | ||
+ | |Next=next link | ||
+ | |Up=up link}} | ||
+ | |||
+ | No Previous link: | ||
+ | {{Navigation | ||
+ | |Next=next link | ||
+ | |Up=up link}} | ||
+ | |||
+ | No next link: | ||
+ | {{Navigation | ||
+ | |Previous= previous link | ||
+ | |Up=up link}} | ||
+ | |||
+ | No up link: | ||
+ | {{Navigation | ||
+ | |Previous= previous link | ||
+ | |Next=next link | ||
+ | }} | ||
+ | |||
+ | ==Code== | ||
+ | [[Category:Utility templates]] | ||
</noinclude> | </noinclude> | ||
− | <div class="navigation"> | + | <includeonly><div class="navigation"><table border="2" cellspacing="4" cellpadding="3" rules="all" style="border:2px solid #999999; margin:1em 1em 1em 0; "><tr>{{ #if: {{{Previous|}}} | <td style="vertical-align:sub;"><b><</b><small>prev:</small> {{{Previous}}}</td> | }} {{ #if: {{{Next|}}} | <td style="vertical-align:sub;"><b>></b><small>next:</small> {{{Next}}}</td> | }} {{ #if: {{{Up|}}} | <td style="vertical-align:sub;"><b>^</b><small>up:</small> {{{Up}}}</td> | }}</tr></table></div></includeonly> |
− | {{ #if: {{{Previous|}}} | | ||
− | </div> |
Latest revision as of 12:59, 11 September 2008
Usage
Allow to put a small navigation panel at the bottom or at the top of a page. Useful for navigating between document sections
{{Navigation |Previous= previous link |Next=next link |Up=up link}}
Exemple
All links:
No Previous link:
No next link:
No up link:
Code