Template:Frame: Difference between revisions

adding caption option
No edit summary
(adding caption option)
Line 1: Line 1:
<includeonly>{|class=wood
<includeonly>{|
|
{|class=wood width="{{#if: {{{2|}}}|{{{2|}}}|200px}}"
![[File:{{{1}}}|{{#if: {{{2|}}}|{{{2|}}}|200px}}]]
![[File:{{{1}}}|{{#if: {{{2|}}}|{{{2|}}}|200px}}]]
|}{{#if: {{{CAPTION|}}}|<center><small>{{{CAPTION|}}}</small></center>|}}
|}</includeonly>
|}</includeonly>
<noinclude>Creates a picture frame for an image. If no width specified, will display at 200px wide.
<noinclude>Creates a picture frame for an image. If no width specified, will display at 200px wide.
Line 15: Line 18:


{{Frame|GarudaCrew2391.png|500px}}
{{Frame|GarudaCrew2391.png|500px}}
===Adding a Caption===
To add a caption, just add a CAPTION= variable.
<pre>{{Frame|GarudaCrew2391.png|500px|CAPTION=Inaugural Senior Staff of the USS Garuda}}</pre>
{{Frame|GarudaCrew2391.png|500px|CAPTION=Inaugural Senior Staff of the USS Garuda}}


[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>