Please remember that WiKirby contains spoilers, which you read at your own risk! See our general disclaimer for details.

Template:Icon: Difference between revisions

From WiKirby, your independent source of Kirby knowledge.
Jump to navigationJump to search
m (Test again.)
(dang forgot to remove)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><div class="plainlinks firstHeading" style="font-size:188%; padding-top:0.2em; padding-bottom:0.09em; float:right; position:absolute; right:{{#switch:{{{offset|}}}|{{Void}}=1.5|#default={{{offset|}}}}}em; top:0em; white-space:nowrap"><table style="float:right; padding:0px"><tr><td>{{#ifeq:{{{custom|}}}|{{Void}}|[[File:{{{image|}}}|{{#switch:{{{size|}}}|link={{{link|}}}|#default={{{size|}}}|{{Void}}=23px}}|{{#switch:{{{text|}}}|{{Void}}={{{image|}}}|#default={{{text|}}}}}]]|{{{custom|}}}}}</td></tr></table></div></includeonly><noinclude>
<includeonly><div class="plainlinks firstHeading" {{#if:{{{id|}}}|id="{{{id}}}"}} style="font-size:188%; padding-top:0.2em; padding-bottom:0.09em; float:right; position:absolute; right:{{#switch:{{{offset|}}}|{{Void}}=1.5|#default={{{offset|}}}}}em; top:0em; white-space:nowrap"><table style="float:right; padding:0px"><tr><td>{{#ifeq:{{{custom|}}}|{{Void}}|[[File:{{{image|}}}|{{#switch:{{{size|}}}|link={{{link|}}}|#default={{{size|}}}|{{Void}}=23px}}|{{#switch:{{{text|}}}|{{Void}}={{{image|}}}|#default={{{text|}}}}}]]|{{{custom|}}}}}</td></tr></table></div></includeonly><noinclude>


{{doc}}
{{doc}}

Revision as of 15:04, 6 July 2020


Purpose

This template is used to conveniently display an image on the same level as the page title.

Usage

Copy this code and fill it out:

{{Icon
|image = 
|text =
|offset =
|link =
|id =
}}


  • image is the filename of the image
  • text is the text you want the image to display when hovered over by the mouse.
  • offset is the distance from the right side that the image is placed. The default value is 0.5em. An em is the width of a "m".
  • link is the interwiki page you wish the image to go to when clicked.
  • id (optional) is to give an id to an icon if it were to be modified on a MediaWiki css page.