Difference between revisions of "Template:Set image"

From SNIC Documentation
Jump to: navigation, search
 
Line 8: Line 8:
 
</noinclude>
 
</noinclude>
 
<includeonly>{{#set: image=Image:{{{1}}}}}
 
<includeonly>{{#set: image=Image:{{{1}}}}}
{{#if:{{{quiet|}}}| |[[Image:{{{1}}}]] test of if magic}}</includeonly>
+
{{#if:{{{quiet|}}}||[[Image:{{{1}}}]]}}</includeonly>

Latest revision as of 12:55, 5 July 2011

Helper for setting the image property correctly. Among other things, it helps with getting the I in Image right.

Usage: {{set image|filename|[quiet=]}}

When using this template, the image will also be also shown, as-is, without any options on it. This is probably exactly what you want to happen, since it is a good check that the image looks good when shown in this manner, which is essential because this is how most dynamically generated content will display it. You can use quiet to set the image property quietly, but only if you have very good reasons to do so.