Difference between revisions of "Template:Tutorial Navigation"

From HPC Wiki
Jump to navigation Jump to search
m (Improve documentation)
m (Further improve documentation)
 
Line 3: Line 3:
  
 
You can pass up to three parameters to this templale: ''previous'', ''main'', and ''next''. The parameters ''previous'' and ''next'' may be empty, but ''main'' should always be set.
 
You can pass up to three parameters to this templale: ''previous'', ''main'', and ''next''. The parameters ''previous'' and ''next'' may be empty, but ''main'' should always be set.
 +
 +
It can be placed at the bottom of the tutorial part page like this:
 +
<nowiki>
 +
{{Tutorial Navigation
 +
| previous = Previous Part
 +
| main = Overview Page
 +
| next = Next Part
 +
}}</nowiki>
 +
 +
Then depending on whether values for ''previous'' or ''next'' were provided, up to three buttons appear to link to the respective part pages, as seen below:
 +
 +
{{Tutorial Navigation
 +
| previous = Previous Part
 +
| main = Overview Page
 +
| next = Next Part
 +
}}
  
 
</noinclude>
 
</noinclude>
 
+
<includeonly>
 
<div style='text-align: left;float:left;width:33%;'>
 
<div style='text-align: left;float:left;width:33%;'>
 
{{#if: {{{previous|}}} | {{Clickable button|&lt;&lt; {{{previous}}}|color=white}}|&nbsp;}}
 
{{#if: {{{previous|}}} | {{Clickable button|&lt;&lt; {{{previous}}}|color=white}}|&nbsp;}}
Line 13: Line 29:
 
{{#if: {{{next|}}} | {{Clickable button|{{{next}}} &gt;&gt;|color=white}}|&nbsp;}}
 
{{#if: {{{next|}}} | {{Clickable button|{{{next}}} &gt;&gt;|color=white}}|&nbsp;}}
 
</div>
 
</div>
 +
</includeonly>

Latest revision as of 18:11, 17 November 2020

This template provide easy access to tutorial navigation, usually on the bottom of a tutorial part page.

You can pass up to three parameters to this templale: previous, main, and next. The parameters previous and next may be empty, but main should always be set.

It can be placed at the bottom of the tutorial part page like this:

 {{Tutorial Navigation
 | previous = Previous Part
 | main = Overview Page
 | next = Next Part
 }}

Then depending on whether values for previous or next were provided, up to three buttons appear to link to the respective part pages, as seen below:


<< Previous Part

Overview Page

Next Part >>