Template:Caption: Difference between revisions

DoggoBit (talk | contribs)
No edit summary
DoggoBit (talk | contribs)
mNo edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{align|{{Box
<includeonly><div {{#if:{{{alt|}}}|aria-label="{{{alt}}}"|}}>{{align|{{Box
   |padding=0.6rem
   |padding=0.6rem
   |background=var(--background-color-neutral-subtle)
   |background=var(--background-color-neutral-subtle)
   |borderColor=var(--border-color-muted)
   |borderColor=var(--border-color-muted)
   |extraStyle=display: inline-block; {{#ifeq:{{{align|center}}}|left|float: left;|}}{{#ifeq:{{{align|center}}}|right|float: right;|}}
   |extraStyle=display: inline-block; {{#ifeq:{{{align|center}}}|left|float: left;|}}{{#ifeq:{{{align|center}}}|right|float: right;|}} {{#if:{{{width|}}}|width: {{{width}}}; box-sizing: border-box;|}}
   |{{#tag:div|{{Box
   |{{#tag:div|{{Box
     |padding=0.6rem
     |padding=0.6rem
Line 9: Line 9:
     |background=var(--background-color-base)
     |background=var(--background-color-base)
     |borderColor=var(--border-color-muted)
     |borderColor=var(--border-color-muted)
     |extraStyle=text-align: center; display: inline-block;
     |extraStyle=text-align: center; display: inline-block; {{#if:{{{width|}}}|width: {{{width}}}; box-sizing: border-box;|}}
     |{{{1}}}
     |{{{1}}}
   }}|style="text-align: center;"}}
   }}|style="text-align: center;"}}
{{{2}}}}}|align={{{align|}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
{{#tag:span|{{{2}}}|style=font-size: 90%;}}}}|align={{{align|}}}|width={{{width|}}}}}</div></includeonly><noinclude>{{Documentation}}</noinclude>