Template:SVG: Difference between revisions

From ARMS Institute, the ARMS Wiki
Jump to navigation Jump to search
m (XenonNSMB moved page Template:Button to Template:SVG: No longer just used for buttons)
(Changed to {{SVG}} instead of {{Button}} in documentation)
Line 3: Line 3:
{{NoticeBox|text=Use this template for inline SVGs (such as Nintendo Switch buttons)
{{NoticeBox|text=Use this template for inline SVGs (such as Nintendo Switch buttons)


Example: <nowiki>{{Button|Zl}}</nowiki>
Example: <nowiki>{{SVG|Zl}}</nowiki>


Result: {{Button|Zl}} Article text
Result: {{SVG|Zl}} Article text


You can also specify an optional color, like this: <nowiki>{{Button|Token|white}}</nowiki>
You can also specify an optional color, like this: <nowiki>{{SVG|Token|white}}</nowiki>


Result: {{Button|Token|white}}  
Result: {{SVG|Token|white}}  


Additionally, you can specify a size: <nowiki>{{Button|Token|yellow|size=100px}}</nowiki>
Additionally, you can specify a size: <nowiki>{{SVG|Token|yellow|size=100px}}</nowiki>


Result: {{Button|Token|yellow|size=100px}}
Result: {{SVG|Token|yellow|size=100px}}
}}
}}
</noinclude>
</noinclude>

Revision as of 20:16, 5 June 2017

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

Use this template for inline SVGs (such as Nintendo Switch buttons)

Example: {{SVG|Zl}}

Result: Zl.svg Article text

You can also specify an optional color, like this: {{SVG|Token|white}}

Result: Token-white.svg

Additionally, you can specify a size: {{SVG|Token|yellow|size=100px}}

Result: {{{3}}}