Difference between revisions of "Template:Icon"

From Akvopedia
Jump to: navigation, search
(Undo revision 38574 by TheGreatVandalizer (talk))
Line 1: Line 1:
<div style="position:fixed; width=2000; height=2000; left:39%; top:0%; overflow:visible;">
+
<includeonly>{{#if:{{{file|{{{1|}}}}}}|
<table border=2>
+
<span class="akvopedia-icon">[[File:{{{file|{{{1}}}}}}{{#if:{{{alt|{{{2|}}}}}}|
<tr><td bgcolor=orange><center>'''This page brought to you by'''</center>
+
{{!}}alt={{{alt|{{{2}}}}}}}}{{#if:{{{width|{{{3|}}}}}}|
<tr><td bgcolor=blue><center><font size="+2" color=orange>*** '''The Great Vandalizer''' ***</font>
+
{{!}}{{{width|{{{3}}}}}}px}}{{#if:{{{link|{{{4|}}}}}}|
<tr><td bgcolor=orange align=center>'''Make Vandalism Great Again!'''
+
{{!}}link={{{link|{{{4}}}}}}}}]]</span>|
 +
<div style="border:2px solid #CA0900;display:table;padding-right:0.6em;padding-left:0.3em">
 +
<div style="display:table-cell;padding:0.4em;">
 +
[[Image:MW-Icon-AlertMark.png]]
 +
</div>
 +
<div style="display:table-cell">'''Error:''' <span class="error">The icon template requires a filename parameter!</span></div>
 +
</div>
 +
}}</includeonly><noinclude>
 +
The Icon template generates an icon using an uploaded image.
  
[[File:hey.JPG|frameless]]
+
== Usage ==
 +
 
 +
=== Examples ===
 +
 
 +
<pre><nowiki>
 +
{{Icon | file=Icon_image.png | link=Example}}
 +
</nowiki></pre>
 +
 
 +
=== Parameters ===
 +
 
 +
; filename
 +
: The name of the uploaded file.
 +
; alt
 +
: The text use as alt text for the image element. (optional)
 +
; width
 +
: The image width of the rendered icon. (optional)
 +
; link
 +
: A wiki page to link the image to. (optional)
 +
 
 +
</noinclude>

Revision as of 21:30, 15 August 2020

The Icon template generates an icon using an uploaded image.

Usage

Examples

{{Icon | file=Icon_image.png | link=Example}}

Parameters

filename
The name of the uploaded file.
alt
The text use as alt text for the image element. (optional)
width
The image width of the rendered icon. (optional)
link
A wiki page to link the image to. (optional)