Template:Nav button: Difference between revisions

From Tygron Preview Support Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><li style="display: inline-block;">
<includeonly><div class="nav-button {{{class|}}}">
<div class="module-button">[[File:{{{image|}}}|{{{size|100x100px}}}|center|link={{{link|}}}]]
  [[File:{{{image|}}}|{{{size|100x100px}}}|center|link={{{link|}}}]]
<div class="module-button-text">{{#if:{{{text|}}}|[[{{{link|}}}|{{{text|}}}]]|[[{{{link|}}}]]}}</div>
  <div class="nav-button-text">{{#if:{{{text|}}}|[[{{{link|}}}|{{{text|}}}]]|[[{{{link|}}}]]}}</div>
</div>
</div></includeonly><noinclude>
</li></includeonly><noinclude>
</noinclude>{{Template-category|Navigation}}<noinclude>
</noinclude>{{Template-category|Navigation}}<noinclude>
Example:
Example:
Line 18: Line 17:


* size: The sizing of the images. Default is 100x100px.
* size: The sizing of the images. Default is 100x100px.
* class: Addition class for styling
</noinclude>
</noinclude>

Revision as of 12:23, 8 October 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
  • size: The sizing of the images. Default is 100x100px.
  • class: Addition class for styling