Lompat ke isi

Templat:Plain image with caption: Perbedaan antara revisi

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
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: 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 {{#switch: {{{4|{{{align|right}}}}}} | right = tright | left = tleft | none | centre | 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 style="width:{{Str number/trim|{{{3|{{{width|220px}}}}}}}}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}}}}}} | bottom | {{#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; width: 0px; height: 0px; border-style: solid inset; border-width: 0 5.5px 9.5px 5.5px; border-color: transparent transparent {{{7|{{{triangle color|#ff0080}}}}}} transparent;"></div></div> | }}<div style="{{#ifeq: {{{6|{{{triangle|none}}}}}} | triangle | padding-left:24px;}} ">{{{2|{{{caption<noinclude>|Caption goes here.</noinclude>}}}}}}</div> }} </div> }}
{{#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> | }}{{#ifeq: {{{6|{{{triangle|none}}}}}} | triangle | <div style="padding-left: 20px"> }}{{{2|{{{caption<noinclude>|Takarir berada di 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>}}}}}}}}|{{Str number/trim|{{{3|{{{width|220px}}}}}}}}{{#if:{{{height|}}}|x{{Str number/trim|{{{height|}}}}}}}px|{{{2|{{{caption<noinclude>|Takarir berada di sini.</noinclude>}}}}}}]] }}<!--
-->{{#ifeq: {{{5|{{{caption position|bottom}}}}}} | bottom | {{#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; width: 0px; height: 0px; border-style: solid inset; border-width: 0 5.5px 9.5px 5.5px; border-color: transparent transparent {{{7|{{{triangle color|#ff0080}}}}}} transparent;"></div></div> | }}{{#ifeq: {{{6|{{{triangle|none}}}}}} | triangle | <div style="padding-left: 20px"> }}{{{2|{{{caption<noinclude>|Takarir berada di sini.</noinclude>}}}}}}{{#ifeq: {{{6|{{{triangle|none}}}}}} | triangle | </div> }} }} </div> }}
</div>
</div>
</div><noinclude>{{doc}}</noinclude>
</div>{{#switch: {{{4|{{{align|}}}}}} | centre | center = </div> }}<noinclude>{{doc}}</noinclude>

Revisi terkini sejak 27 Januari 2020 12.55

Takarir berada di sini.
Takarir berada di sini.