Template:Image label begin: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
include only |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div role="img" class="{{#switch:{{{float|}}}|left=floatleft|right=floatright}} noresize" <!-- noresize disables the img from being limited to the width of the viewport size (as on mobile) --> | <includeonly><div role="img" class="{{#switch:{{{float|}}}|left=floatleft|right=floatright}} noresize" <!-- noresize disables the img from being limited to the width of the viewport size (as on mobile) --> | ||
style="width: {{#if:{{{thumb|}}}|{{#expr:{{#if:{{{width|}}}|{{{width}}}|400}}+16}}|{{#if:{{{border2|}}}|{{#expr:{{#if:{{{width|}}}|{{{width}}}|400}}+2}}|{{#if:{{{width|}}}|{{{width}}}|400}}}}}}px; | style="width: {{#if:{{{thumb|}}}|{{#expr:{{#if:{{{width|}}}|{{{width}}}|400}}+16}}|{{#if:{{{border2|}}}|{{#expr:{{#if:{{{width|}}}|{{{width}}}|400}}+2}}|{{#if:{{{width|}}}|{{{width}}}|400}}}}}}px; | ||
{{#if:{{{margin|}}}|margin: {{{margin}}};}} | {{#if:{{{margin|}}}|margin: {{{margin}}};}} | ||
Line 14: | Line 14: | ||
|{{{fullimage}}} | |{{{fullimage}}} | ||
|[[File:{{{image|Bad Title Example.png}}}{{#if:{{{border2|}}}|{{!}}border}}{{#if:{{{thumb|}}}|{{!}}thumb{{!}}none}}|{{#if:{{{width|}}}|{{{width}}}|400}}px{{#ifeq:{{{link|File:}}}|File:||{{!}}link={{{link|}}}}}|alt={{{alt|}}}|{{{caption|}}}]] | |[[File:{{{image|Bad Title Example.png}}}{{#if:{{{border2|}}}|{{!}}border}}{{#if:{{{thumb|}}}|{{!}}thumb{{!}}none}}|{{#if:{{{width|}}}|{{{width}}}|400}}px{{#ifeq:{{{link|File:}}}|File:||{{!}}link={{{link|}}}}}|alt={{{alt|}}}|{{{caption|}}}]] | ||
}} | }}</includeonly><noinclude> | ||
</ | |||
==Documentation== | ==Documentation== | ||
One of a trio of templates to add labels (including wikilinks) to images. | |||
===Usage=== | ===Usage=== | ||
==See also== | |||
*[[Template:Image label]] | |||
*[[Template:Image label end]] | |||
[[Category:Templates utility]] | [[Category:Templates utility]] | ||
</noinclude> | </noinclude> |
Latest revision as of 11:57, 13 June 2019
Documentation
One of a trio of templates to add labels (including wikilinks) to images.