Template:Nav button: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly><li style="display: inline-block;"> <div class="module-button">[[File:{{{image|}}}|100x100px|center|link={{{link|}}}]] <div class="module-button-text">{{#if:{{{te...") |
No edit summary |
||
(27 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>< | <includeonly><!-- | ||
<div class= | --><div class='nav-button {{{class|}}}' ' style='background-color: {{ #if:{{{color|}}} | {{{color|}}} | }};'>[[File:benchmarks_button.png|center|{{#if:{{{link|}}}|link={{{link|}}}|}}]]<div class='nav-button-highlight'></div><!-- | ||
<div class= | --><!--{{#if:{{{link|}}}|[[{{{link|}}}| ]]|}}--><!-- | ||
</div> | --><div class='nav-button-img' >[[File:{{{image|}}}|{{{size|75x75px}}}]]</div><!-- | ||
</ | --><div class='nav-button-text'><!-- | ||
-->{{#if:{{{text|}}}|{{{text|}}}| }}<!-- | |||
--></div><!-- | |||
--></div><!-- | |||
--></includeonly><noinclude> | |||
</noinclude>{{Template-category|Navigation}}<noinclude> | |||
Example: | Example: | ||
{{nav button | |||
|image={{Aerius theme|image}} | |||
|text={{Aerius theme|mainlink}} | |||
|link={{Aerius theme|mainlink}} | |||
|color={{Aerius theme|color}} | |||
}} | |||
{{nav button | {{nav button | ||
|image=waterwijzer100px.png | |image=waterwijzer100px.png | ||
Line 11: | Line 21: | ||
|link=Waterwijzer Overlay | |link=Waterwijzer Overlay | ||
}} | }} | ||
This template should not be used on pages directly. Instead, use [[template:nav buttons]]. | |||
Parameters: | Parameters: | ||
Line 16: | Line 28: | ||
* text: The text underneath the button | * text: The text underneath the button | ||
* link: The page the button should like to | * link: The page the button should like to | ||
* class: Addition class for styling | |||
General style here (note that part of the style should be overwrite-able by parameters): | |||
[[MediaWiki:Common.css]] | |||
</noinclude> | </noinclude> |
Latest revision as of 15:25, 15 December 2020
Example:
This template should not be used on pages directly. Instead, use template:nav buttons.
Parameters:
- image: The image to use to display the button
- text: The text underneath the button
- link: The page the button should like to
- class: Addition class for styling
General style here (note that part of the style should be overwrite-able by parameters): MediaWiki:Common.css