Template:Frame: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{|
<includeonly>{|style="max-width:{{#if: {{{2|}}}|{{{2|}}}|200px}}"
|
|align=center|
{|class=wood style="max-width:{{#if: {{{2|}}}|{{{2|}}}|200px}}"
{|class=wood
![[File:{{{1}}}|{{#if: {{{2|}}}|{{{2|}}}|200px}}]]
![[File:{{{1}}}|{{#if: {{{2|}}}|{{{2|}}}|200px}}]]
|}{{#if: {{{CAPTION|}}}|<center><small>{{{CAPTION|}}}</small></center>|}}
|}{{#if: {{{CAPTION|}}}|<small>{{{CAPTION|}}}</small>|}}
|}</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 31: Line 31:


{{Frame|GarudaCrew2391.png|500px|CAPTION='''Inaugural Senior Staff of the {{USS|Garuda}}'''}}
{{Frame|GarudaCrew2391.png|500px|CAPTION='''Inaugural Senior Staff of the {{USS|Garuda}}'''}}
===Questions/Comments/Suggestions===
Send a message. [[User:Rich|'''♫ Rich''']] ▪ [[User talk:Rich|<small>talk</small>]]


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

Revision as of 02:40, 29 March 2015

Creates a picture frame for an image. If no width specified, will display at 200px wide.

{{Frame|NAME OF FILE|OPTIONAL WIDTH}}

No width specified

{{Frame|GarudaCrew2391.png}}
GarudaCrew2391.png


Optional width specified

{{Frame|GarudaCrew2391.png|500px}}
GarudaCrew2391.png


Adding a Caption

To add a caption, just add a CAPTION= variable.

{{Frame|GarudaCrew2391.png|500px|CAPTION=Inaugural Senior Staff of the USS Garuda}}
GarudaCrew2391.png
Inaugural Senior Staff of the USS Garuda


You can use wiki code and other templates within the caption.

{{Frame|GarudaCrew2391.png|500px|CAPTION='''Inaugural Senior Staff of the {{USS|Garuda}}'''}}
GarudaCrew2391.png
Inaugural Senior Staff of the USS Garuda


Questions/Comments/Suggestions

Send a message. ♫ Richtalk