Difference between revisions of "Template:Icon"

From Space Engineers Wiki
Jump to: navigation, search
m
m (fix alt. link)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[File:{{{1|No Image}}} Icon.png{{#ifeq: {{{2|}}} | small | {{!}}20px | {{!}}72px}}|link={{{1|}}}]]<noinclude>
+
[[File:{{#ifeq: {{#sub:{{{1|}}}|0|{{#len:Mod:Vanilla}}}}|Mod:Vanilla|{{#show:{{{1}}}|?Icon#-}}|{{{1|No Image}}} Icon.png}}{{#switch: {{{2|default}}}  
 +
| tiny = {{!}}16px
 +
| small = {{!}}32px
 +
| medium = {{!}}48px
 +
| large = {{!}}64px
 +
| huge = {{!}}128px
 +
| default = {{!}}64px
 +
}}|link={{#ifeq: {{#sub:{{{1|}}}|0|{{#len:Mod:Vanilla}}}}|Mod:Vanilla|{{#show:{{{1}}}|?Main article#-}}{{lang}}|{{#if: {{{lang|}}} | {{{1|}}}/{{{lang}}} | {{{1|No Image}}}{{lang}} }}}}]]<noinclude>
  
 
Standard image template.  
 
Standard image template.  
Line 6: Line 13:
  
 
<pre>
 
<pre>
{{icon|name|size}}
+
{{icon|name|size|lang = }}
 
</pre>
 
</pre>
 
icon: template name<br />
 
icon: template name<br />
 
name: name of icon<br />
 
name: name of icon<br />
size: small or undefined, small is 20px large is 72px. <br />
+
size: tiny, small, medium, or undefined, tiny is 16px, small is 32px, medium is 48px, large is 64px. huge is 128px <br />
 +
lang: lang = language code override, for example lang = fr for French.
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 20:33, 24 April 2020

No Image Icon.png

Standard image template.

Usage:

{{icon|name|size|lang = }}

icon: template name
name: name of icon
size: tiny, small, medium, or undefined, tiny is 16px, small is 32px, medium is 48px, large is 64px. huge is 128px
lang: lang = language code override, for example lang = fr for French.