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/doc"

From Lylat Wiki, your source on Star Fox information. By Fans, for Fans.
Jump to navigationJump to search
Line 6: Line 6:
| see also = Taken from [http://www.zeldawiki.org/Template:Icon] on 3/10/2010.
| see also = Taken from [http://www.zeldawiki.org/Template:Icon] on 3/10/2010.
{{Text-template}}
{{Text-template}}
}}
}}


Line 16: Line 15:


==Usage==
==Usage==
 
=== Example ===
Copy this code and fill it out:
Copy this code and fill it out:
<pre><nowiki>
<pre>
{{Icon
{{Icon
|image  =  
| image  =  
|text  =
| text  =
|offset =
| size =
}}</nowiki></pre>
| position =
| top =  
| offset =
}}
</pre>


=== Paramters ===


*'''image''' is the filename of the image
*'''image''' is the filename of the image
*'''text''' is the text you want the image to display when hovered over by the mouse.
*'''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 [[w:pixels|pixel]], [[w:em|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".
*'''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".
<noinclude>[[Category:Documentation|{{PAGENAME}}]]</noinclude>
<noinclude>[[Category:Documentation|{{PAGENAME}}]]</noinclude>

Revision as of 19:27, 28 September 2010

Peppy Hare SF0 headshot icon.png Peppy Hare: "Falco, this template's documentation needs to be improved to meet LW:TS."
Falco Lombardi: "Why are you asking me? Isn't that Slippy's job?"
.....
"Fine. I'll do it."
Falco Lombardi SF0 headshot icon.png
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".