Template:Navigation: Difference between revisions
From Event-B
Jump to navigationJump to search
imported>Mathieu m Try for small template usefull to display a navigation bar |
imported>Mathieu m cat |
||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | |||
==Usage== | ==Usage== | ||
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 | |||
|Previous= previous link | |||
|Next=next link | |||
|Up=up link}} | |||
</nowiki></pre> | |||
==Exemple== | |||
All links: | |||
{{Navigation | {{Navigation | ||
|Previous= previous link | |Previous= previous link | ||
|Next=next link | |Next=next link | ||
|Up=up 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> | ||
<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|}}} | | |||
{{ #if: {{{Next|}}} | | |||
{{ #if: {{{Up|}}} | |
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