Template:ImCap: Difference between revisions
From MiiWiki
Jump to navigationJump to search
m (1 revision imported) |
m (little more purple for good measure) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><div class="thumb t{{{align|right}}}"> | ||
<div class="thumb t{{{align|right}}}"> | |||
<div class="thumbinner" style="-moz-background clip:none;background: none !important; border: none !important;width: {{#if: {{{captionwidth|}}}|{{{captionwidth|}}}|{{{size|}}} }};">[[{{{image|}}}|{{{size|}}}]] | <div class="thumbinner" style="-moz-background clip:none;background: none !important; border: none !important;width: {{#if: {{{captionwidth|}}}|{{{captionwidth|}}}|{{{size|}}} }};">[[{{{image|}}}|{{{size|}}}]] | ||
<div class="thumbcaption" style="background: | <div class="thumbcaption" style="background: #d5a1fc; margin-top: 2px; border: 1px solid black; text-align: {{{captionalign|center}}};">{{{caption|}}}</div></div></div> | ||
</includeonly> | </includeonly><noinclude> | ||
< | Lets you caption images without frames or backgrounds. | ||
<pre> | |||
{{ImCap | |||
|image=image name, including File: | |||
|size=the width of the image (in pixels) | |||
|align=alignment (optional, defaults to right) | |||
|caption=the caption | |||
|captionalign=caption alignment relative to image (optional, defaults to center) | |||
|captionwidth=the width of the caption (in pixels) (optional) | |||
}} | |||
</pre> | |||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 20:41, 20 November 2021
Lets you caption images without frames or backgrounds.
{{ImCap |image=image name, including File: |size=the width of the image (in pixels) |align=alignment (optional, defaults to right) |caption=the caption |captionalign=caption alignment relative to image (optional, defaults to center) |captionwidth=the width of the caption (in pixels) (optional) }}