Templat: GetIllustration: Perbedaan antara revisi
Dari GBI Danau Bogor Raya
kTidak ada ringkasan suntingan |
k upd |
||
(2 revisi perantara oleh pengguna yang sama tidak ditampilkan) | |||
Baris 13: | Baris 13: | ||
| {{{ilustrasi16x9}}} | | {{{ilustrasi16x9}}} | ||
| {{#ifexist: File:{{{illustrationA5|}}} | | {{#ifexist: File:{{{illustrationA5|}}} | ||
| {{{ | | {{{illustrationA5|}}} <!-- else: nothing --> | ||
| {{{default|}}} | |||
}} | }} | ||
}} | }} | ||
Baris 23: | Baris 24: | ||
| A5 = {{#ifexist: File:{{{illustrationA5|}}} | | A5 = {{#ifexist: File:{{{illustrationA5|}}} | ||
| {{{ | | {{{illustrationA5}}} | ||
| {{#ifexist: File:{{{illustration16x9|}}} | | {{#ifexist: File:{{{illustration16x9|}}} | ||
| {{{illustration16x9}}} | | {{{illustration16x9}}} | ||
Baris 36: | Baris 37: | ||
| {{#ifexist: File:{{{ilustrasi1x1|}}} | | {{#ifexist: File:{{{ilustrasi1x1|}}} | ||
| {{{ilustrasi1x1}}} <!-- else: nothing --> | | {{{ilustrasi1x1}}} <!-- else: nothing --> | ||
| {{{default|}}} | |||
}} | }} | ||
}} | }} | ||
Baris 57: | Baris 59: | ||
| {{{ilustrasi1x1}}} <!-- else: nothing --> | | {{{ilustrasi1x1}}} <!-- else: nothing --> | ||
| {{#ifexist: File:{{{illustrationA5|}}} | | {{#ifexist: File:{{{illustrationA5|}}} | ||
| {{{ | | {{{illustrationA5}}} <!-- else: nothing --> | ||
| {{{default|}}} | |||
}} | }} | ||
}} | }} |
Revisi terkini sejak 7 Maret 2023 02.27
Dokumentasi templat
Usage
{{getillustration | type=1x1/16x9/A5 | illustration16x9= | illustration1x1= | illustrationA5= | default= }}
{{getillustration | type=1x1 | illustration16x9= | ilustrasi16x9= | illustration1x1= | ilustrasi1x1= | illustration= | ilustrasi= | illustrationA5= | default= }}
- Notes
- default type and
type=16x9
: Priority 16x9 → 1x1 → A5 type=1x1
: Priority 1x1 → 16x9 → A5type=A5
: Priority A5 → 16x9 → 1x1
- Example
{{getillustration | type=1x1 | illustration16x9={{{illustration16x9|}}} | illustration1x1={{{illustration1x1|}}} | illustrationA5={{{foto|{{{illustrationA5|}}}}}} }}