Difference between revisions of "Template:Gif image"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<noinclude>Corrects the corruption problem with <tt>.gif</tt> images.</noinclude><includeonly>{{#if:{{{2|}}}|<div style="background:#F9F9F9;border:1px solid #CCCCCC;padding:0....")
 
m (+parameter table)
Line 1: Line 1:
<noinclude>Corrects the corruption problem with <tt>.gif</tt> images.</noinclude><includeonly>{{#if:{{{2|}}}|<div style="background:#F9F9F9;border:1px solid #CCCCCC;padding:0.4em;width:{{{width}}}px;float:{{{3|right}}}">|}}
+
<noinclude>Corrects the corruption problem with <tt>.gif</tt> images.</noinclude><includeonly>{{#ifeq:{{{2|}}}|thumb|<div style="background:#F9F9F9;border:1px solid #CCCCCC;padding:0.4em;width:{{{width}}}px;float:{{{float|right}}}">|}}
[[File:{{{1|Image needed.svg}}}]]{{#if:{{{2|}}}|</div>|}}</includeonly>
+
[[File:{{{1|Image needed.svg}}}]]<br/>{{#if:{{{3|}}}{{{thumb|}}}|{{{3|{{{thumb|}}}}}}|}}{{#if:{{{2|}}}|</div>|}}</includeonly><noinclude>
 +
== Parameters ==
 +
{{Parameter table|name=text|style=hover|parameters=
 +
{{Parameter row|1|File name. Don't write the File: prefix.}}
 +
{{Parameter row|2|If set as <tt>thumb</tt>, creates a thumb around the image.|Hidden}}
 +
{{Parameter row|3|Adds text in the thumb. Needs parameter #2 set as <tt>thumb</tt>.|Not set/Hidden}}
 +
{{Parameter row|width|The width of the picture. You can find it on the file's page. Important if parameter <tt>float</tt> is set as <tt>left</tt> or <tt>center</tt>}}
 +
{{Parameter row|float|Set the thumb location. Needs parameter #2 set as <tt>thumb</tt>.|right}}
 +
}}
 +
</noinclude>

Revision as of 15:19, 30 December 2014

Corrects the corruption problem with .gif images.

Parameters

Name Optional Description Default
1 No File name. Don't write the File: prefix.
2 Yes If set as thumb, creates a thumb around the image. Hidden
3 Yes Adds text in the thumb. Needs parameter #2 set as thumb. Not set/Hidden
width No The width of the picture. You can find it on the file's page. Important if parameter float is set as left or center
float Yes Set the thumb location. Needs parameter #2 set as thumb. right