Template:SVG: Difference between revisions

From ARMS Institute, the ARMS Wiki
Jump to navigation Jump to search
(Added ability to specify color)
m (Reverted edits by Wpvandelicer (talk) to last revision by KingBurtis)
Tag: Rollback
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[File:{{{1}}}{{#if:{{{2|}}}|-{{{2}}}}}.svg|20px]]<noinclude>
[[File:{{{1}}}{{#if:{{{2|}}}|-{{{2}}}}}.svg|{{#if:{{{size|}}}|{{{size}}}|20px}}|link={{#if:{{{link|}}}|{{{link}}}|}}]]<noinclude>
 
{{Doc}}[[Category:Article templates]]
{{NoticeBox|text=Use this template for inline SVGs (such as Nintendo Switch buttons)
 
Example: <nowiki>{{Button|Zl}}</nowiki>
 
Result: {{Button|Zl}} Article text
 
You can also specify an optional color, like this: <nowiki>{{Button|Token|white}}</nowiki>
 
Result: {{Button|Token|white}} }}
</noinclude>
</noinclude>

Latest revision as of 13:22, 24 August 2023

[[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.