Welcome to the Lylat Wiki, all about the Star Fox series! If you'd like to help out, please take a look at our community portal.

Difference between revisions of "Template:Icon"

From Lylat Wiki, your source on Star Fox information. By Fans, for Fans.
Jump to navigationJump to search
m
 
(11 intermediate revisions by 2 users 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}}=0.5|#default={{{offset|}}}}}em; top:0em; white-space:nowrap"><table style="float:right; padding:0px"><tr><td>{{#ifeq:{{{custom|}}}|{{Void}}|[[File:{{{image|}}}|{{#switch:{{{size|}}}|#default={{{size|}}}|{{Void}}=23px}}|{{#switch:{{{text|}}}|{{Void}}={{{image|}}}|#default={{{text|}}}}}]]|{{{custom|}}}}}</td></tr></table></div></includeonly><noinclude>
<includeonly><div id="firstHeading" class="plainlinks firstHeading topicon" style="font-size:188%; padding-top:0.2em; padding-bottom:0.09em; float:right; position:{{{position|absolute}}}; right:{{#switch:{{{offset|}}}|{{Void}}=0.5|#default={{{offset|}}}}}em; top:{{{top|0em}}}; white-space:nowrap"><table style="float:right; padding:0px"><tr><td>{{#ifeq:{{{custom|}}}|{{Void}}|[[File:{{{image|}}}|{{#switch:{{{size|}}}|#default={{{size|}}}|{{Void}}=23px}}|{{#switch:{{{text|}}}|{{Void}}={{{image|}}}|#default={{{text|}}}}}]]|{{{custom|}}}}}</td></tr></table></div></includeonly><noinclude>{{doc}}
 
{{cat|Formatting Templates|Icons}}</noinclude>
==Pupose==
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:
<pre><nowiki>
{{Icon
|image  =
|text  =
|offset =
}}</nowiki></pre>
 
 
*'''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".
[[Category:Formatting Templates|Icon]][[Category:Icons|I]]</noinclude>

Latest revision as of 16:05, 10 May 2020

Name Icon
Link {{Icon}}
Info #Purpose


Purpose

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

Usage

Example

Copy this code and fill it out:

{{Icon
| image  = 
| text   =
| size =
| position =
| top = 
| offset =
}}

Paramters

  • image is the filename of the image
  • text is the text you want the image to display when hovered over by the mouse.
  • size is size of the picture
  • position is the position of the icon (left, right, relative, absolute)
  • top how many pixel, em, etc. should it move up from its default position.
  • 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".

Attribution

Taken from [1] on 3/10/2010.