Template:Nav button: Difference between revisions

From Tygron Preview Support Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--><div class='nav-button {{{class|}}}' ' style='background-color: {{ #if:{{{{{theme|}}}}} | | {{{{{theme|}}}|color}} }};'><!--
--><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|100x100px}}}]]</div><!--
   --><div class='nav-button-img' >[[File:{{{image|}}}|{{{size|75x75px}}}]]</div><!--
   --><div class='nav-button-text'><!--
   --><div class='nav-button-text'><!--
     -->{{#if:{{{text|}}}|{{{text|}}}|&nbsp;}}<!--
     -->{{#if:{{{text|}}}|{{{text|}}}|&nbsp;}}<!--
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}}
  |theme=aerius theme
  |color={{Aerius theme|color}}
}}
}}
{{nav button
{{nav button
Line 20: Line 20:
  |text=Text of button
  |text=Text of button
  |link=Waterwijzer Overlay
  |link=Waterwijzer Overlay
|theme=
}}
}}
This template should not be used on pages directly. Instead, use [[template:nav buttons]].


Parameters:
Parameters:
Line 29: Line 30:
* class: Addition class for styling
* class: Addition class for styling


Style here:
General style here (note that part of the style should be overwrite-able by parameters):
[[MediaWiki:Common.css]]
[[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