Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Image frame: Difference between revisions

Template page
Content deleted Content added
m 1 revision imported
per talk page, seems generally sane on a read through
Line 1: Line 1:
<includeonly><!--
<includeonly>{{#switch: {{{align|}}} | center | centre= <div class="center"> }}<div class="thumb {{#switch: {{{align|}}} | right |#default=tright | left=tleft | center | centre | none=tnone}}" {{#ifeq: {{{mode|}}} | scrollable|style="overflow:hidden;width:{{{width|auto}}};max-width:{{#if:{{{max-width|}}}|{{#ifeq: {{{border|}}} | no |{{#expr:{{{max-width|}}}+8}}px|{{#expr:{{{max-width|}}}+10}}px}}|{{#ifeq: {{{border|}}} | no |{{#expr:{{{width|}}}+8}}px|{{#expr:{{{width|}}}+10}}px}}}} {{{style|}}}"|style="{{{style|}}}"}}><div class="thumbinner" {{#ifeq: {{{mode|}}} | scrollable||style="width:{{#if:{{{width|}}}| {{#ifeq: {{{border|}}} | no | {{{width}}}px | {{#expr:{{{width}}}+2}}px}} |-moz-fit-content; width:fit-content;}}"}}>{{#ifeq: {{{pos|}}} | top | <div class="thumbcaption">{{#if: {{{link|}}} | {{align|right|{{{linkoverride|[[File:Information icon4.svg|16px|link={{{link}}}{{#if: {{{link_text|}}} | {{!}}{{{link_text}}}}}]]}}}}} |}}{{{caption|}}}</div> |}}<div class="{{#ifeq: {{{border|}}} | no | {{#ifeq: {{{mode|}}} | scrollable||center}} | thumbimage }} noresize" style="width:{{#if:{{{width|}}}| {{{width}}}px | auto }};{{#ifeq: {{{mode|}}} | scrollable|overflow:auto;{{#ifeq:{{{dir|}}}|rtl|direction:rtl;}}}}{{{innerstyle|}}}">{{#ifeq: {{{mode|}}} | scrollable|{{#ifeq: {{{nowrap|}}} | yes |<div class="nowrap">}}}}
-->{{#switch: {{{align|}}}
{{{content}}}{{#ifeq: {{{mode|}}} | scrollable|{{#ifeq: {{{nowrap|}}} | yes |</div>}}}}</div>{{#ifeq: {{{pos|}}} | top || {{#if:{{{caption|}}}|<div class="thumbcaption">{{#if: {{{link|}}} | {{align|right|{{{linkoverride|[[File:Information icon4.svg|16px|link={{{link}}}{{#if: {{{link_text|}}} | {{!}}{{{link_text}}}}}]]}}}}} }}{{{caption|}}}</div>}} }}</div></div>{{#switch: {{{align|}}} | center | centre= </div> }}</includeonly>{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using image frame with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Image frame]] with unknown parameter "_VALUE_"|ignoreblank=y| align | border | caption | content | dir | innerstyle | link | link_text | linkoverride | max-width | mode | nowrap | pos | style | width }}<noinclude>{{documentation}}</noinclude>
| center | centre = <!-- div1 --><div class = "center">
}}<!--
div2 --><div class= "thumb <!--
-->{{#switch: {{{align|}}}
| right | #default = tright
| left = tleft
| center | centre | none = tnone
}}" style = "<!--
-->{{#ifeq: {{{mode|}}}
| scrollable
| style = overflow: hidden; <!--
-->{{#if:{{{max-width|}}}
| {{#ifeq: {{{border|}}}
| no
| max-width: {{#expr:{{{max-width}}}+8}}px;
| max-width: {{#expr:{{{max-width}}}+10}}px;
}}
| {{#if:{{{width|}}}|
{{#ifeq: {{{border|}}}
| no
| width: {{#expr:{{{width|}}}+8}}px;
| width: {{#expr:{{{width|}}}+10}}px;
}}
| width: {{{width|auto}}};
}}
}} {{{style|}}}"
<!-- | style = "{{{style|}}}" DUPLICATE, BUT WHY? -->
}}><!-- div3
--><div class = "thumbinner" <!--
-->{{#ifeq: {{{mode|}}}
| scrollable
|
| style = "width: {{#if: {{{width|}}}
| {{#ifeq: {{{border|}}}
| no
| {{{width}}}px;
| {{#expr:{{{width}}}+2}}px;
}}
|<!-- -moz-fit-content LONG DEPRECATED --> fit-content;
}}"
}}><!--
-->{{#ifeq: {{{pos|}}}
| top
| <!-- [[ div4 --><div class = "thumbcaption" ><!--
-->{{#if: {{{link|}}}
| {{align|right|{{{linkoverride|[[File:Codex icon info color-progressive.svg|16px|link={{{link}}}<!--
-->{{#if: {{{link_text|}}}
| {{!}}{{{link_text}}}
}}]]}}}}}
}}{{{caption|}}}<!--
--><!-- div4 ]] --></div>
}}<!--
--><!-- div5 --><div class="<!--
-->{{#ifeq: {{{border|}}}
| no
| {{#ifeq: {{{mode|}}}
| scrollable
|
| center
}}
| thumbimage
}} noresize" style="width: {{#if:{{{width|}}}
| {{{width}}}px
| auto
}};<!--
-->{{#ifeq: {{#lc:{{{mode|}}}}}
| scrollable
| overflow: auto;<!--
-->{{#ifeq:{{#lc:{{{dir|}}}}}
| rtl
| direction: rtl;
}}
}} {{{innerstyle|}}}"><!--
-->{{#ifeq: {{#lc:{{{mode|}}}}}
| scrollable
| {{#ifeq: {{#lc:{{{nowrap|}}}}}
| yes
| <!-- div6 --><div class="nowrap">
}}
}}
{{{content}}} {{#ifeq: {{{mode|}}}
| scrollable
| {{#ifeq: {{{nowrap|}}}
| yes
| <!-- div6 ]] --></div>
}}
}}<!-- div5 ]] --></div><!--
-->{{#ifeq: {{{pos|}}}
| top
|
| {{#if:{{{caption|}}}
|<!-- div7 --><div class = "thumbcaption"><!--
-->{{#if: {{{link|}}}
| {{align|right|{{{linkoverride|[[File:Codex icon info color-progressive.svg|16px|link={{{link}}}<!--
-->{{#if: {{{link_text|}}}
| {{!}}{{{link_text}}}
}}]]}}}}}
}}{{{caption|}}}<!-- div7 ]] --></div>
}}
}}<!-- div3 ]] --></div><!-- div2 ]] --></div><!--
-->{{#switch: {{{align|}}}
| center | centre = <!-- div1 ]] --></div>
}}</includeonly><!--
-->{{#invoke:Check for unknown parameters| check | unknown = [[Category:Pages using image frame with unknown parameters|_VALUE_{{PAGENAME}}]] | preview = Page using [[Template:Image frame]] with unknown parameter "_VALUE_"| ignoreblank = y | align | border | caption | content | dir | innerstyle | link | link_text | linkoverride | max-width | mode | nowrap | pos | style | width
}}<noinclude>
{{documentation}}
</noinclude>

Revision as of 02:30, 27 November 2025