The wiki is lacking in content. You can help by creating a new article. See the to do list for more ways you can help.
Difference between revisions of "Template:Imgcaption/doc"
From Final Fantasy Wiki
Jump to navigationJump to search
m |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
This template allows you to add a caption to an image without creating a frame around it. Usage: | This template allows you to add a caption to an image without creating a frame around it. Usage: | ||
<pre> | <pre> | ||
{{ | {{imgcaption | ||
|image= the image | |image= the image (without "File:" prefix) | ||
|size= the width of the image | |size= the width of the image in pixels (optional) | ||
|align= alignment (optional) | |align= alignment (optional) | ||
|caption= the caption | |caption= the caption | ||
|captionalign= caption alignment relative to image (optional) | |captionalign= caption alignment relative to image (optional) | ||
|captionwidth= the width of the caption (in pixels) (optional) | |captionwidth= the width of the caption (in pixels) (optional) | ||
|color= color of the caption box | |||
|txtcolor= color of the caption text | |||
}} | }} | ||
</pre> | </pre> | ||
Line 15: | Line 17: | ||
===Example=== | ===Example=== | ||
{{imgcaption | {{imgcaption | ||
|image= | |image=FFVII Cloud icon.png | ||
|size=109px | |size=109px | ||
|align=right | |align=right | ||
Line 21: | Line 23: | ||
|captionalign=center | |captionalign=center | ||
|captionwidth=175px | |captionwidth=175px | ||
|color=yellow | |||
|txtcolor=red | |||
}} | }} | ||
<pre style="width:50%;"> | <pre style="width:50%;"> | ||
{{imgcaption | {{imgcaption | ||
|image= | |image=FFVII Cloud icon.png | ||
|size=109px | |size=109px | ||
|align=right | |align=right | ||
Line 31: | Line 35: | ||
|captionalign=center | |captionalign=center | ||
|captionwidth=175px | |captionwidth=175px | ||
|color=yellow | |||
|txtcolor=red | |||
}} | }} | ||
</pre> | </pre> |
Latest revision as of 17:34, March 29, 2021
Usage[edit]
This template allows you to add a caption to an image without creating a frame around it. Usage:
{{imgcaption |image= the image (without "File:" prefix) |size= the width of the image in pixels (optional) |align= alignment (optional) |caption= the caption |captionalign= caption alignment relative to image (optional) |captionwidth= the width of the caption (in pixels) (optional) |color= color of the caption box |txtcolor= color of the caption text }}
Note that "captionwidth" should be greater than or equal to "size" when used, or the image may get cut off.
Example[edit]
{{imgcaption |image=FFVII Cloud icon.png |size=109px |align=right |caption=Pause menu icon of Cloud from ''Final Fantasy VII'' |captionalign=center |captionwidth=175px |color=yellow |txtcolor=red }}
Attribution[edit]
Original template is from WiKirby.