Template:Nav button: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--><div class='nav-button {{{class|}}}' style='{{#if:{{{width|}}}|width:{{{width|}}}|}}'><!--
--><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='nav-button-img' style='{{#if:{{{width|}}}|height:{{{width|}}}|}}'>[[File:{{{image|}}}|{{{size|100x100px}}}|link={{{link|}}}]]</div><!--
   --><!--{{#if:{{{link|}}}|[[{{{link|}}}|&nbsp;]]|}}--><!--
   --><div class='nav-button-text' style='{{#if:{{{fontsize|}}}|font-size:{{{fontsize|}}}|}}'><!--
  --><div class='nav-button-img' >[[File:{{{image|}}}|{{{size|75x75px}}}]]</div><!--
     -->{{#if:{{{text|}}}|[[{{{link|}}}|{{{text|}}}]]|[[{{{link|}}}]]}}<!--
   --><div class='nav-button-text'><!--
     -->{{#if:{{{text|}}}|{{{text|}}}|&nbsp;}}<!--
   --></div><!--
   --></div><!--
--></div><!--
--></div><!--
Line 9: Line 10:
</noinclude>{{Template-category|Navigation}}<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
  |text=Text of button
  |text=Text of button
  |link=Waterwijzer Overlay
  |link=Waterwijzer Overlay
|fontsize=1.5em
|width=8em
}}
}}
This template should not be used on pages directly. Instead, use [[template:nav buttons]].


Parameters:
Parameters:
Line 21: 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
* size: Size of the image. Default is 100x100px
* width: The width of the button, and the height of the image within
* 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