Difference between revisions of "Template:ImageCaption"

From Nookipedia, the Animal Crossing wiki
(Adding ability to add a border and remove the caption box)
(Marking as deprecated)
 
Line 2: Line 2:
 
<div class="thumbinner" style="background: none !important; border: {{{border|none}}} !important;width: {{{size|}}};">[[{{{image|File:Nookipedia.png}}}|{{{size|}}}]]
 
<div class="thumbinner" style="background: none !important; border: {{{border|none}}} !important;width: {{{size|}}};">[[{{{image|File:Nookipedia.png}}}|{{{size|}}}]]
 
{{#if:{{{nocap|}}}||<div class="thumbcaption" style="background: #C4E673; margin-top: 2px; border: 1px solid #E0F2B6; text-align:{{{captionalign|center}}}">{{{caption|Caption}}}</div>}}</div></div></includeonly><noinclude>
 
{{#if:{{{nocap|}}}||<div class="thumbcaption" style="background: #C4E673; margin-top: 2px; border: 1px solid #E0F2B6; text-align:{{{captionalign|center}}}">{{{caption|Caption}}}</div>}}</div></div></includeonly><noinclude>
 
+
{{Deprecated|note=Standard MediaWiki syntax (<code><nowiki>[[File:Filename.ext|thumb|Caption.]]</nowiki></code>) should be used instead.}}
 
===Usage===
 
===Usage===
 
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:

Latest revision as of 01:40, January 13, 2021


Lucky NH Villager Icon.png
This template is deprecated and should no longer be used.
This template's functionality is obsolete and no longer maintained. It should be removed from pages or replaced with an alternative template.
Further details: Standard MediaWiki syntax ([[File:Filename.ext|thumb|Caption.]]) should be used instead.
Lucky NH Villager Icon.png
This template is deprecated and should no longer be used.
This template's functionality is obsolete and no longer maintained. It should be removed from pages or replaced with an alternative template.
Further details: Standard MediaWiki syntax ([[File:Filename.ext|thumb|Caption.]]) should be used instead.

Template:ImageCaption

Usage

This template allows you to add a caption to an image without creating a frame around it. Usage:

{{ImageCaption
|image        = the image
|size         = the width of the image (in pixels)
|align        = the alignment of the image (optional)
|caption      = the caption
|captionalign = caption alignment relative to image (optional)
|border       = border property (e.g. 1px solid black)
|nocap        = enter any value for no caption box
}}

Example

Nookipedia.png
Caption
{{ImageCaption
|image =        File:Nookipedia.png
|size =         109px
|align =        right
|caption =      Caption
|captionalign = center
}}

Blank Code

{{ImageCaption
|image = 
|size = 
|align = 
|caption = 
|captionalign = 
}}