Template:Caption
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
{{{button}}} |
{{{1}}} |
---|
Purpose
This template is the base for creating captions that, for example, can be used to contain certain character quotes about a page's subject.
Usage
To use this template, start with this code:
{{Caption|content | button = | title = | size = | buttonbackground = | contentbackground = | bordercolor = | borderbackground = }}
- content — The caption itself, which can be hidden by clicking the button.
- button — Either a filename for an image, or text to display as the 'toggle visibility' button.
- title — Text to appear as a tooltip when hovering over the button. (Optional.)
- size — If the button is an image, this will define the width of the image. (Optional. Default: 40px)
- buttonbackground — Background color for the button. (Optional. Default: #f2f2f2)
- contentbackground — Background color for the content. (Optional. Default: #ffffff)
- bordercolor — Color of the edges of the border. (Optional. Default: #000000)
- borderbackground — Center color of the border. (Optional. Default: #5a7eb5)
The 'show' button can be defined independently of the 'hide' button by using "buttonhide" and "buttonshow" instead of "button", as with "title", "size", and "buttonbackground":
{{Caption|content | buttonhide = | buttonshow = | titlehide = | titleshow = | sizehide = | sizeshow = | buttonbackgroundhide = | buttonbackgroundshow = | contentbackground = | bordercolor = | borderbackground = }}
- buttonhide — Text or filename for the 'hide' button.
- buttonshow — Text or filename for the 'show' button.
- titlehide — Tooltip for the 'hide' button. (Optional.)
- titleshow — Tooltip for the 'show' button. (Optional.)
- sizehide — Size of the 'hide' button's image. (Optional. Default: 40px)
- sizeshow — Size of the 'show' button's image. (Optional. Default: 40px)
- buttonbackgroundhide — Background color for the 'hide' button. (Optional. Default: #f2f2f2)
- buttonbackgroundshow — Background color for the 'show' button. (Optional. Default: #f2f2f2)
The caption can be hidden by default using init=hide
Icons
Old Man (template) | OldManIcon.png | |
Navi (template) | NaviIcon.png | |
Tatl (template) | TatlIcon.png | |
Fi (template) | FiIcon.png |