Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
AiahWiki
Search
Search
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Template
:
Icon
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<includeonly>[[File:{{trim | {{{1}}} }}|link={{{link|}}}|{{#if: {{{w|}}}{{{h|}}} | {{{w|}}}x{{{h|}}}px | x{{trim | {{{2|40}}} }}px }}|{{{caption|{{{link|}}}}}}]]<span class="bg3wiki-after-icon"></span></includeonly><noinclude> Usage: <pre>{{icon | Flourish Icon.png }}</pre> Result: {{icon | Flourish Icon.png }} The default size is {{code|x40px}} meaning the icon is scaled until the '''height''' is 40 px. It's usually important to limit the height since the icons are used inline, and a very high inline image makes for an unpleasant text layout. An alternative value for the height can be provided like so: Usage: <pre>{{icon | Flourish Icon.png | 30 }}</pre> Result: {{icon | Flourish Icon.png | 30 }} Usage: <pre>{{icon | Flourish Icon.png | 50 }}</pre> Result: {{icon | Flourish Icon.png | 50 }} Alternatively you can use the named parameters {{code|w}} and {{code|h}}. Note that these are max values so the more limiting one applies. In the following example, the height value is essentially ignored because the original image is a square so the width becomes the limiting factor. (Were the original image 200 by 500, the result would be 20 by 50.) Usage: <pre>{{icon | Flourish Icon.png | w = 20 | h = 50 }}</pre> Result: {{icon | Flourish Icon.png | w = 20 | h = 50 }} You can also provide a link: Usage: <pre>{{icon | Flourish Icon.png | link = Flourish }}</pre> Result: {{icon | Flourish Icon.png | link = Flourish }} Caption (alt text) will be the link by default but can be changed: Usage: <pre>{{icon | Flourish Icon.png | link = Flourish | caption = Blah }}</pre> Result: {{icon | Flourish Icon.png | link = Flourish | caption = Blah }} Behavior when icon is missing: Usage: <pre>{{icon | Missing Filename 123.png | link = Flourish }}</pre> Result: {{icon | Missing Filename 123.png | link = Flourish }} [[Category:Icon Templates]] </noinclude>
Summary:
Please note that all contributions to AiahWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
AiahWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Pages included on this page:
Template:Code
(
edit
)
Template:Icon
(
edit
)
Template:Trim
(
edit
)
Search
Search
Editing
Template
:
Icon
Add topic