Template:Image frame: Difference between revisions
Jump to navigation
Jump to search
Created page with "<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|}}..." |
mNo edit summary |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><div class="thumb {{#switch: {{{align|}}} | left=tleft | center=tnone | none=tnone | #default=tright }}" style="{{#ifeq: {{{align|}}} | center | margin-left:auto; margin-right:auto; | }} width: {{#if: {{{width|}}} | {{#expr: {{{width}}} + 10}}px | auto }};"> | ||
{{{content}}} | <div class="thumbinner" style="width: {{#if: {{{width|}}} | {{#expr: {{{width}}} + 8}}px | auto }}; background-color: #f8f9fa; border: 1px solid #c8ccd1; padding: 3px; text-align: center;"> | ||
{{#if: {{{title|}}} | <div style="font-weight: bold; padding: 3px;">{{{title}}}</div> }} | |||
<div class="thumbimage" style="background-color: #ffffff; border: 1px solid #c8ccd1; margin: 0 auto; width: {{{width|auto}}}px;"> | |||
{{{content}}} | |||
</div> | |||
{{#if: {{{caption|}}} | | |||
<div class="thumbcaption" style="text-align: left; font-size: 94%; padding: 3px;"> | |||
{{{caption}}} | |||
</div> | |||
}} | |||
</div> | |||
</div></includeonly> | |||