Difference between revisions of "Template:Icon"

From Akvopedia
Jump to: navigation, search
 
Line 5: Line 5:
 
{{!}}link={{{link|{{{4}}}}}}}}]]|
 
{{!}}link={{{link|{{{4}}}}}}}}]]|
 
<div style="border:2px solid #CA0900;display:table;padding-right:0.6em;padding-left:0.3em">
 
<div style="border:2px solid #CA0900;display:table;padding-right:0.6em;padding-left:0.3em">
<div style="display:table-cell;padding:0.4em;">
+
<div class="akvopedia-icon" style="display:table-cell;padding:0.4em;">
 
[[Image:MW-Icon-AlertMark.png]]
 
[[Image:MW-Icon-AlertMark.png]]
 
</div>
 
</div>

Revision as of 13:12, 3 September 2014

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)