Template:SVG: Difference between revisions

From ARMS Institute, the ARMS Wiki
Jump to navigation Jump to search
No edit summary
m (Added link variable, made image have no link by default)
Line 1: Line 1:
[[File:{{{1}}}{{#if:{{{2|}}}|-{{{2}}}}}.svg|{{#if:{{{size|}}}|{{{size}}}|20px}}]]<noinclude>
[[File:{{{1}}}{{#if:{{{2|}}}|-{{{2}}}}}.svg|{{#if:{{{size|}}}|{{{size}}}|20px}}|link={{#if:{{{link|}}}|{{{link}}}|}}]]<noinclude>
{{Doc}}[[Category:Article templates]]
{{Doc}}[[Category:Article templates]]
</noinclude>
</noinclude>

Revision as of 07:33, 3 December 2017

[[File:{{{1}}}.svg|20px|link=]]

Use this template for inline SVGs. You can also specify an optional color, and a size:
Example Result
{SVG|Zl}} Zl.svg
{{SVG|Token|white}} Token-white.svg
{{SVG|Token|yellow|size=100px}} Token-yellow.svg

See also: Template:Button and Template:Token
This documentation is transcluded from Template:SVG/doc.