Difference between revisions of "Template:Tutorial Navigation"
Jump to navigation
Jump to search
m (Fix to allow outside buttons to be empty.) |
m (Further improve documentation) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
This template provide easy access to tutorial navigation, usually on the bottom of a tutorial part page. | 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 | + | 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%;'>{{Clickable button|{{{previous | + | <div style='text-align: left;float:left;width:33%;'> |
| + | {{#if: {{{previous|}}} | {{Clickable button|<< {{{previous}}}|color=white}}| }} | ||
| + | </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 | + | <div style='text-align: right;float:left;width:33%;'> |
| + | {{#if: {{{next|}}} | {{Clickable button|{{{next}}} >>|color=white}}| }} | ||
| + | </div> | ||
| + | </includeonly> | ||
Latest revision as of 17: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: