Difference between revisions of "Template:Icon"

From Space Engineers Wiki
Jump to: navigation, search
(adding language code support)
Line 1: Line 1:
[[File:{{{1|No Image}}} Icon.png{{#ifeq: {{{2|}}} | small | {{!}}31px | {{#ifeq: {{{2|}}} | medium | {{!}}43px | {{!}}72px}}}}|link={{{1|}}}]]<noinclude>
+
[[File:{{{1|No Image}}} Icon.png{{#ifeq: {{{2|}}} | small | {{!}}31px | {{#ifeq: {{{2|}}} | medium | {{!}}43px | {{!}}72px}}}}|link={{#if:{{{lang|}}}|{{{1|}}}/{{{lang}}}|{{{1|}}}}}]]<noinclude>
  
 
Standard image template.  
 
Standard image template.  
Line 6: Line 6:
  
 
<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, medium, or undefined, small is 31px, medium is 43px, large is 72px. <br />
 
size: small, medium, or undefined, small is 31px, medium is 43px, large is 72px. <br />
 +
lang: lang = language code, for example lang = fr for French.
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 02:04, 16 March 2014

No Image Icon.png

Standard image template.

Usage:

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

icon: template name
name: name of icon
size: small, medium, or undefined, small is 31px, medium is 43px, large is 72px.
lang: lang = language code, for example lang = fr for French.