Template:Nav button: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
| (25 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><div class= | <includeonly><!-- | ||
--><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|}}}| ]]|}}--><!-- | ||
{{#if:{{{ | --><div class='nav-button-img' >[[File:{{{image|}}}|{{{size|75x75px}}}]]</div><!-- | ||
</div> | --><div class='nav-button-text'><!-- | ||
</div></includeonly><noinclude> | -->{{#if:{{{text|}}}|{{{text|}}}| }}<!-- | ||
--></div><!-- | |||
--></div><!-- | |||
--></includeonly><noinclude> | |||
</noinclude>{{Template-category|Navigation}}<noinclude> | </noinclude>{{Template-category|Navigation}}<noinclude> | ||
Example: | Example: | ||
{{nav button | {{nav button | ||
|image= | |image={{Water theme|image}} | ||
|text= | |text={{Water theme|mainlink}} | ||
|link= | |link={{Water theme|mainlink}} | ||
|color={{Water theme|color}} | |||
}} | }} | ||
This template should not be used on pages directly. Instead, use [[template:nav buttons]]. | |||
Parameters: | Parameters: | ||
| Line 17: | Line 23: | ||
* 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 14:45, 6 March 2026
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

