Template:Image frame: Difference between revisions

From Legendary Hardcore Wiki
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>{{#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">}}}}
<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}}}{{#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>
    <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>

Revision as of 10:28, 25 February 2026