Templat:Plain image with caption: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
k S Rifqi memindahkan halaman Templat:Plain image ke Templat:Plain image with caption |
Tambah kelas "image-stackable" untuk membolehkan penumpukan gambar |
||
(2 revisi perantara oleh 2 pengguna tidak ditampilkan) | |||
Baris 1:
<templatestyles src="Plain image with caption/styles.css" />
<div class="{{#ifeq: {{{4|{{{align|right}}}}}} | right | floatright | {{#ifeq: {{{4|{{{align|left}}}}}} | left | floatleft | center}} }}">▼
{{#switch: {{{4|{{{align|}}}}}} | centre | center = <div class="center"> }}
<div class="thumbinner" style="background:none;border:none;max-width:{{Str number/trim|{{{3|{{{width|250px}}}}}}}}px;">▼
▲<div class="thumb image-stackable {{#
{{#ifeq: {{{5|{{{caption position|bottom}}}}}} | top | {{#if: {{{9|{{{caption override|}}}}}} | <div class="thumbcaption">{{{9|{{{caption override|}}}}}}</div> | <div class="thumbcaption">{{#ifeq: {{{6|{{{triangle|none}}}}}} | triangle | <div style="float: left; margin-top: 0.25em; width: 11px; height: 9.5px;"><div style="position: relative; float: left; width: 0px; height: 0px; -webkit-transform: rotate(360deg); border-style: solid inset; border-width: 9.5px 5.5px 0 5.5px; border-color: {{{7|{{{triangle color|#ff0080}}}}}} transparent transparent transparent;"></div></div> | }}<div style="{{#ifeq: {{{6|{{{triangle|none}}}}}} | triangle | padding-left: 24px;}}">{{{2|{{{caption<noinclude>|Caption goes here.</noinclude>}}}}}}</div> }} </div>}}<!--▼
▲<div
-->{{#if: {{{8|{{{image override|}}}}}} | {{{8|{{{image override|}}}}}} | [[File:{{Remove file prefix|{{{1|{{{image<noinclude>|Example.svg</noinclude>}}}}}}}}|none|{{Str number/trim|{{{3|{{{width|250px}}}}}}}}px|{{{2|{{{caption<noinclude>|Caption goes here.</noinclude>}}}}}}]] }}<!--▼
▲-->{{#if: {{{8|{{{image override|}}}}}} | {{{8|{{{image override|}}}}}} | [[File:{{Remove file prefix|{{{1|{{{image<noinclude>|Example.svg</noinclude>}}}}}}}}
▲-->{{#ifeq: {{{5|{{{caption position|bottom}}}}}} |
</div>
</div>{{#switch: {{{4|{{{align|}}}}}} | centre | center = </div> }}<noinclude>{{doc}}</noinclude>
|