Template:Nav button: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
mNo 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|}}} | }};'><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 11: Line 11:
Example:
Example:
{{nav button
{{nav button
  |image=waterwijzer100px.png
  |image={{Aerius theme|image}}
  |text=Text of button
  |text={{Aerius theme|mainlink}}
  |link=Waterwijzer Overlay
  |link={{Aerius theme|mainlink}}
  |color={{Aerius theme|color}}
  |color={{Aerius theme|color}}
}}
}}

Revision as of 15:44, 14 December 2020

Example:

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