Difference between revisions of "Template:Icon/doc"

423 bytes added ,  14:10, 22 January 2023
m
Text replacement - "zeldapedia" to "zeldawiki"
(Created page with '==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 = …')
 
m (Text replacement - "zeldapedia" to "zeldawiki")
Tag: Manual revert
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==Pupose==
{{documentation shell
| name = Icon
| info = [[#Purpose]]
}}
 
==Purpose==
This template is used to conveniently display an image on the same level as the page title.
This template is used to conveniently display an image on the same level as the page title.


==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 [[wikipedia:pixels|pixel]], [[wikipedia: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".
[[Category:Formatting Templates|Icon]][[Category:Icons|I]]</noinclude>
 
==Attribution==
Taken from [http://www.zeldawiki.org/Template:Icon] on 3/10/2010.
 
<noinclude>[[Category:Documentation|{{PAGENAME}}]]</noinclude>