Difference between revisions of "Template:Icon"

From Space Engineers Wiki
Jump to: navigation, search
(final edit (I think))
(adding automatic language parsing)
Line 5: Line 5:
 
| huge = {{!}}128px
 
| huge = {{!}}128px
 
| default = {{!}}64px
 
| default = {{!}}64px
}}|link={{#if:{{{lang|}}}|{{{1|}}}/{{{lang}}}|{{{1|}}}}}]]<noinclude>
+
}}|link={{#if: {{{lang|}}} | {{{1|}}}/{{{lang}}} | {{{1|No Image}}}{{lang}} }}]]<noinclude>
  
 
Standard image template.  
 
Standard image template.  
Line 17: Line 17:
 
name: name of icon<br />
 
name: name of icon<br />
 
size: small, medium, or undefined, small is 32px, medium is 48px, large is 64px. huge is 128px <br />
 
size: small, medium, or undefined, small is 32px, medium is 48px, large is 64px. huge is 128px <br />
lang: lang = language code, for example lang = fr for French.  
+
lang: lang = language code override, for example lang = fr for French.  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 00:58, 18 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 32px, medium is 48px, large is 64px. huge is 128px
lang: lang = language code override, for example lang = fr for French.