Template:Image frame

{{#switch: {{{align|}}} | center | centre=

}}
{{#ifeq: {{{pos|}}} | top |
{{#if: {{{link|}}} | {{align|right|{{{linkoverride|File:Information icon4.svg}}}}} |}}{{{caption|}}}
|}}
{{#ifeq: {{{mode|}}} | scrollable|{{#ifeq: {{{nowrap|}}} | yes |
}}}}

{{{content}}}{{#ifeq: {{{mode|}}} | scrollable|{{#ifeq: {{{nowrap|}}} | yes |

}}}}
{{#ifeq: {{{pos|}}} | top || {{#if:{{{caption|}}}|
{{#if: {{{link|}}} | {{align|right|{{{linkoverride|File:Information icon4.svg}}}}} }}{{{caption|}}}
}} }}
{{#switch: {{{align|}}} | center | centre=
}}{{#invoke:Check for unknown parameters|check|unknown=_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 }}{{documentation}}