Template:Navigation: Difference between revisions

From Event-B
Jump to navigationJump to search
imported>Mathieu
m →‎Usage: Some doc + add a warning about formulas and templates not being rendered well
imported>Mathieu
m cat
 
(13 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
|Previous= previous link
|Next=next link
|Up=up link}}
</nowiki></pre>
==Exemple==
==Exemple==
<nowiki>
All links:
{{Navigation
{{Navigation
|Previous= previous link
|Previous= previous link
|Next=next link
|Next=next link
|Up=up link}}
|Up=up link}}
</nowiki>
is rendered as:


No Previous link:
{{Navigation
|Next=next link
|Up=up link}}
No next link:
{{Navigation
|Previous= previous link
|Up=up link}}
No up link:
{{Navigation
{{Navigation
|Previous= previous link
|Previous= previous link
|Next=next link
|Next=next link
|Up=up link}}
}}
</nowiki>
 
==Code==
==Code==
[[Category:Utility templates]]
</noinclude>
</noinclude>
<div class="warning" style="color:red;"><b>Dear reader, some formulas and templates are not yet rendered well, but the problem is being worked out...</b></div>
<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>
<div class="navigation">
{{ #if: {{{Previous|}}} | Previous:{{{Previous}}} | }} {{ #if: {{{Next|}}} | Next:{{{Next}}} | }} {{ #if: {{{Up|}}} | Up:{{{Up}}} | }}
</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