Template:Nav button: Difference between revisions

From Tygron Preview Support Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--><div class='nav-button {{{class|}}}' ' style='background-color: {{ #if:{{{color|}}} | {{{color|}}} | }};'><div class='nav-button-highlight'></div><!--
--><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><!--
   -->{{#if:{{{link|}}}|[[{{{link|}}}|&nbsp;]]|}}<!--
   --><!--{{#if:{{{link|}}}|[[{{{link|}}}|&nbsp;]]|}}--><!--
   --><div class='nav-button-img' >[[File:{{{image|}}}|{{{size|75x75px}}}]]</div><!--
   --><div class='nav-button-img' >[[File:{{{image|}}}|{{{size|75x75px}}}]]</div><!--
   --><div class='nav-button-text'><!--
   --><div class='nav-button-text'><!--
Line 10: Line 10:
</noinclude>{{Template-category|Navigation}}<noinclude>
</noinclude>{{Template-category|Navigation}}<noinclude>
Example:
Example:
{{nav button
{{nav button test
  |image={{Aerius theme|image}}
  |image={{Aerius theme|image}}
  |text={{Aerius theme|mainlink}}
  |text={{Aerius theme|mainlink}}
Line 16: Line 16:
  |color={{Aerius theme|color}}
  |color={{Aerius theme|color}}
}}
}}
{{nav button
{{nav button test
  |image=waterwijzer100px.png
  |image=waterwijzer100px.png
  |text=Text of button
  |text=Text of button

Revision as of 13:11, 15 December 2020

Example: Template:Nav button test Template:Nav button test

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

Style here: MediaWiki:Common.css