Template:Image frame: Difference between revisions

From IxWiki
Jump to navigation Jump to search
mp>Jonesey95
Adding unknown parameter tracking through Category:Pages using image frame with unknown parameters using Module:check for unknown parameters. Not limiting to article space after finding malformed Template:Thumb at Wikipedia:Gadget/proposals/Archive 3, possibly due to a bad template merge.
imported>Pppery
m Changed protection settings for "Template:Image frame" ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<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|}}}|{{#expr:{{{max-width|}}}+8}}px|100%}} {{{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:Desc-i.svg|16px|link={{{link}}}{{#if: {{{link_text|}}} | {{!}}{{{link_text}}}}}]]}}}}} |}}{{{caption|}}}</div> |}}<div class="{{#ifeq: {{{mode|}}} | scrollable||{{#ifeq: {{{border|}}} | no | center | thumbimage }}}} noresize" style="width:{{#if:{{{width|}}}| {{{width}}}px | auto }};{{#ifeq: {{{mode|}}} | scrollable|overflow:auto;{{#ifeq:{{{dir|}}}|rtl|direction:rtl;}}}}{{{innerstyle|}}}">{{#ifeq: {{{mode|}}} | scrollable|<div style="white-space:normal">}}
<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">}}}}
{{{content}}}{{#ifeq: {{{mode|}}} | scrollable|</div>}}</div>{{#ifeq: {{{pos|}}} | top || {{#if:{{{caption|}}}|<div class="thumbcaption">{{#if: {{{link|}}} | {{align|right|{{{linkoverride|[[File:Desc-i.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 | max-width | mode | pos | style | width }}<noinclude>{{documentation}}</noinclude>
{{{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>

Latest revision as of 00:06, 9 March 2025