Templat:Plain image with caption: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
S Rifqi (bicara | kontrib)
k S Rifqi memindahkan halaman Templat:Plain image ke Templat:Plain image with caption
S Rifqi (bicara | kontrib)
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 {{#ifeqswitch: {{{4|{{{align|right}}}}}} | right |= floatrighttright | {{#ifeq:left {{{4|{{{align|left}}}}}}= tleft | leftnone | floatleftcentre | center}} = tnone }}">
{{#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 class="thumbinner" style="background:none;border:none;max-width:{{Str number/trim|{{{3|{{{width|250px220px}}}}}}}}px;">
-->{{#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>}}}}}}]] }}<!--
-->{{#ifeq: {{{5|{{{caption position|bottom}}}}}} | bottomtop | {{#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: 0 59.5px 95.5px 0 5.5px; border-color: transparent transparent {{{7|{{{triangle color|#ff0080}}}}}} transparent transparent transparent;"></div></div> | }}<div style="{{#ifeq: {{{6|{{{triangle|none}}}}}} | triangle | <div style="padding-left:24px;}} 20px"> }}{{{2|{{{caption<noinclude>|CaptionTakarir goesberada heredi sini.</noinclude>}}}}}}{{#ifeq: {{{6|{{{triangle|none}}}}}} | triangle | </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|250px220px}}}}}}}}{{#if:{{{height|}}}|x{{Str number/trim|{{{height|}}}}}}}px|{{{2|{{{caption<noinclude>|CaptionTakarir berada goesdi heresini.</noinclude>}}}}}}]] }}<!--
-->{{#ifeq: {{{5|{{{caption position|bottom}}}}}} | topbottom | {{#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: 90 5.5px 59.5px 0 5.5px; border-color: transparent transparent {{{7|{{{triangle color|#ff0080}}}}}} transparent transparent transparent;"></div></div> | }}<div style="{{#ifeq: {{{6|{{{triangle|none}}}}}} | triangle | <div style="padding-left: 24px;}}20px"> }}{{{2|{{{caption<noinclude>|CaptionTakarir goesberada heredi sini.</noinclude>}}}}}}{{#ifeq: {{{6|{{{triangle|none}}}}}} | triangle | </div> }} }} </div> }}<!--
</div>
</div>{{#switch: {{{4|{{{align|}}}}}} | centre | center = </div> }}<noinclude>{{doc}}</noinclude>