Difference between revisions of "Template:Navigation"

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
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==
 
</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>
+
<div class="navigation"><table style="border:1px solid #aaaaaa; display:inline; "><tr>
<div class="navigation">
+
{{ #if: {{{Previous|}}} | <td style="vertical-align:sub;">Previous:{{{Previous}}}</td> | }} {{ #if: {{{Next|}}} | <td style="vertical-align:sub;">Next:{{{Next}}}</td> | }} {{ #if: {{{Up|}}} | <td style="vertical-align:sub;">Up:{{{Up}}}</td> | }}</tr></table>
{{ #if: {{{Previous|}}} | Previous:{{{Previous}}} | }} {{ #if: {{{Next|}}} | Next:{{{Next}}} | }} {{ #if: {{{Up|}}} | Up:{{{Up}}} | }}
 
 
</div>
 
</div>

Revision as of 15:36, 1 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