Changes

Template:Icon

1,043 bytes added, 18:10, 15 August 2020
Undo revision 38566 by RedGuard (talk)
<tr><td bgcolor=red><center><font size="+2" color=gold> ☭ '''STALIN DID NOTHING WRONG!''' ☭ </font>
<tr><td bgcolorred align=center>Workers of all lands, unite!
 
 
<includeonly>{{#if:{{{file|{{{1|}}}}}}|
<span class="akvopedia-icon">[[File:{{{file|{{{1}}}}}}{{#if:{{{alt|{{{2|}}}}}}|
{{!}}alt={{{alt|{{{2}}}}}}}}{{#if:{{{width|{{{3|}}}}}}|
{{!}}{{{width|{{{3}}}}}}px}}{{#if:{{{link|{{{4|}}}}}}|
{{!}}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.
 
== 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>
Akvopedia-spade, akvouser, bureaucrat, emailconfirmed, staff, susana-working-group-1, susana-working-group-10, susana-working-group-11, susana-working-group-12, susana-working-group-2, susana-working-group-3, susana-working-group-4, susana-working-group-5, susana-working-group-6, susana-working-group-7, susana-working-group-8, susana-working-group-9, susana-working-group-susana-member, administrator, widget editor
30,949
edits