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.
New user registration has been restored. Thank you for your patience.
Difference between revisions of "Template:Imgcaption/doc"
From Final Fantasy Wiki
Jump to navigationJump to search
(updated example) |
(not really fitting, but it's just an example so *shrug*) |
||
Line 10: | Line 10: | ||
|captionwidth= the width of the caption (in pixels) (optional) | |captionwidth= the width of the caption (in pixels) (optional) | ||
|color= color of the caption box | |color= color of the caption box | ||
|txtcolor= color of the caption text | |||
}} | }} | ||
</pre> | </pre> | ||
Line 23: | Line 24: | ||
|captionwidth=175px | |captionwidth=175px | ||
|color=yellow | |color=yellow | ||
|txtcolor=red | |||
}} | }} | ||
Line 34: | Line 36: | ||
|captionwidth=175px | |captionwidth=175px | ||
|color=yellow | |color=yellow | ||
|txtcolor=red | |||
}} | }} | ||
</pre> | </pre> |
Revision as of 17:26, March 29, 2021
Usage
This template allows you to add a caption to an image without creating a frame around it. Usage:
{{imgcaption |image= the image |size= the width of the image (in pixels) |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
{{imgcaption |image=File: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
Original template is from WiKirby.