Difference between revisions of "Template:FileCaption/doc"
Jump to navigation
Jump to search
m |
|||
| Line 1: | Line 1: | ||
| − | + | Experimenting with a template found on [https://www.mediawiki.org/wiki/Template:Image MediaWiki].<br/> | |
| + | Used to provide images with captions as an alternative to the ugly ones with a frame that come with MediaWiki. | ||
| − | ToDo: Rename | + | ToDo: Rename to "File Title" to imply this template is used with "File:..." syntax. |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
=== Usage === | === Usage === | ||
| + | * <code>file=</code> Sets which file to use. Default value is 1AKC Samoyed Dog Show 2011.jpg. | ||
| + | * <code>width=</code> width of the image. | ||
| + | * <code>height=</code> height of the image | ||
| + | * <code>align=</code> Sets alignment of image and caption block. Options are right, left, center, and none. Default is right. | ||
| + | * <code>caption=</code> Places a caption beneath the image, and also serves as the alt text. Optional. | ||
| + | * <code>padding=</code> Gives the option to turn off padding, in case the image is part of a floating div already. Default is to include padding; turn off by setting parameter to "no". | ||
<pre> | <pre> | ||
{{Img Title | {{Img Title | ||
| − | | | + | |file - the filename of the image |
|50 - width | |50 - width | ||
|50 - height | |50 - height | ||
| Line 20: | Line 22: | ||
<pre>{{Img Title|Influencers.svg|50|50}}</pre> | <pre>{{Img Title|Influencers.svg|50|50}}</pre> | ||
Gives the image at the top right of this page. | Gives the image at the top right of this page. | ||
| − | {{Img Title|Influencers.svg|50|50}} | + | {{Img Title|file=Influencers.svg|width=50|height=50}} |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
<includeonly>[[Category:WikiPolitiks templates]]</includeonly> | <includeonly>[[Category:WikiPolitiks templates]]</includeonly> | ||
Revision as of 21:58, 20 December 2019
Experimenting with a template found on MediaWiki.
Used to provide images with captions as an alternative to the ugly ones with a frame that come with MediaWiki.
ToDo: Rename to "File Title" to imply this template is used with "File:..." syntax.
Usage
file=Sets which file to use. Default value is 1AKC Samoyed Dog Show 2011.jpg.width=width of the image.height=height of the imagealign=Sets alignment of image and caption block. Options are right, left, center, and none. Default is right.caption=Places a caption beneath the image, and also serves as the alt text. Optional.padding=Gives the option to turn off padding, in case the image is part of a floating div already. Default is to include padding; turn off by setting parameter to "no".
{{Img Title
|file - the filename of the image
|50 - width
|50 - height
}}
Example
{{Img Title|Influencers.svg|50|50}}
Gives the image at the top right of this page. Template:Img Title