Difference between revisions of "Template:Tutorial Navigation"

From HPC Wiki
Jump to navigation Jump to search
m (Fix to allow outside buttons to be empty.)
m (Improve hiding empty parameters)
Line 9: Line 9:
 
</noinclude>
 
</noinclude>
  
<div style='text-align: left;float:left;width:33%;'>{{Clickable button|{{{previous|}}}|color=white}}</div>
+
<div style='text-align: left;float:left;width:33%;'>
 +
{{#if:{{{previous|}}}|{{Clickable button|&lt;&lt; {{{previous}}}|color=white}}|&nbsp;}}
 +
</div>
 
<div style='text-align: center;float:left;width:33%;'>{{Clickable button|{{{main}}}|color=white}}</div>
 
<div style='text-align: center;float:left;width:33%;'>{{Clickable button|{{{main}}}|color=white}}</div>
<div style='text-align: right;float:left;width:33%;'>{{Clickable button|{{{next|}}}|color=white}}</div>
+
<div style='text-align: right;float:left;width:33%;'>
 +
{{#if:{{{next|}}|{{Clickable button|{{{next}}} &gt;&gt;|color=white}}|&nbsp;}}
 +
</div>

Revision as of 11:12, 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 tempalte: - previous - main - next


 

{{{main}}}

{{{next}}} >>