Difference between revisions of "Template:Image frame/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Great Brightstar
imported>Great Brightstar
 
Line 1: Line 1:
<includeonly><div class="thumb {{#switch: {{{align|}}} | right |#default=tright | left=tleft | center | none=tnone}}" style="{{#ifeq:{{{align|}}}|center|margin:0 auto;|}} {{#if:{{{width|}}}|width:{{#expr:{{{width}}}+9}}px|width:auto}}"><div class="thumbinner">{{#ifeq: {{{pos|}}} | top | <div class="thumbcaption">{{#if: {{{link|}}} | <div class="magnify">{{{linkoverride|[[:{{{link}}}| ]]}}}</div> |}}{{{caption|}}}</div> |}}<div class="thumbimage noresize" {{#if:{{{width|}}}{{{innerstyle|}}}|style="}}{{#if:{{{width|}}}|width:{{{width}}}px;}}{{{innerstyle|}}}{{#if:{{{width|}}}{{{innerstyle|}}}|"}}>{{{content}}}</div>{{#ifeq: {{{pos|}}} | top || <div class="thumbcaption">{{#if: {{{link|}}} | <div class="magnify">{{{linkoverride|[[:{{{link}}}| ]]}}}</div> }}{{{caption|}}}</div> }}</div></div></includeonly><noinclude>{{Documentation}}</noinclude>
+
<includeonly><div class="thumb {{#switch: {{{align|}}} | right |#default=tright | left=tleft | center | none=tnone}}" style="{{#ifeq:{{{align|}}}|center|margin:0 auto;|}} {{#if:{{{width|}}}|width:{{#expr:{{{width}}}+9}}px|width:auto}}"><div class="thumbinner">{{#ifeq: {{{pos|}}} | top | <div class="thumbcaption">{{#if: {{{link|}}} | <div style="float:right">{{{linkoverride|[[File:Desc-i.svg|16px|link={{{link}}}]]}}}</div> |}}{{{caption|}}}</div> |}}<div class="thumbimage noresize" {{#if:{{{width|}}}{{{innerstyle|}}}|style="}}{{#if:{{{width|}}}|width:{{{width}}}px;}}{{{innerstyle|}}}{{#if:{{{width|}}}{{{innerstyle|}}}|"}}>{{{content}}}</div>{{#ifeq: {{{pos|}}} | top || <div class="thumbcaption">{{#if: {{{link|}}} | <div style="float:right">{{{linkoverride|[[File:Desc-i.svg|16px|link={{{link}}}]]}}}</div> }}{{{caption|}}}</div> }}</div></div></includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 07:28, 5 February 2019

50px Template documentation[view] [edit] [history] [purge]
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Image frame

Examples

By filling out the parameters as follows, the result will be as shown below the code.

{{Image frame|width=200|content=[[File:PNG transparency demonstration 1.png|100px]][[File:White Stars 3.svg|100px]]
|caption=Example usage|link=Hello world|align=center}}
Example usage
{{Image frame|width=200|content=[[File:PNG transparency demonstration 1.png|100px]][[File:White Stars 3.svg|100px]]
|caption=Example usage|link=Hello world|align=center|pos=top}}
Example usage

See also