Templat: GetIllustration: Perbedaan antara revisi

Dari GBI Danau Bogor Raya
Lompat ke: navigasi, cari
Leo (bicara | kontrib)
k upd
Leo (bicara | kontrib)
kTidak ada ringkasan suntingan
Baris 1: Baris 1:
{{#ifeq: {{{type|16x9}}} | 1x1
{{#switch: {{{type|16x9}}}
| {{#ifexist: File:{{{illustration1x1|}}}
| 1x1 = {{#ifexist: File:{{{illustration1x1|}}}
   | {{{illustration1x1}}}
   | {{{illustration1x1}}}
   | {{#ifexist: File:{{{ilustrasi1x1|}}}
   | {{#ifexist: File:{{{ilustrasi1x1|}}}
    | {{{ilustrasi1x1}}}
      | {{{ilustrasi1x1}}}
    | {{#ifexist: File:{{{illustration|}}}
      | {{#ifexist: File:{{{illustration|}}}
      | {{{illustration|}}}
          | {{{illustration|}}}
      | {{#ifexist: File:{{{ilustrasi|}}}
          | {{#ifexist: File:{{{ilustrasi|}}}
        | {{{ilustrasi}}}
              | {{{ilustrasi}}}
        | {{#ifexist: File:{{{illustration16x9|}}}
              | {{#ifexist: File:{{{illustration16x9|}}}
          | {{{illustration16x9}}}
                  | {{{illustration16x9}}}
          | {{#ifexist: File:{{{ilustrasi16x9|}}}
                  | {{#ifexist: File:{{{ilustrasi16x9|}}}
            | {{{ilustrasi16x9}}} <!-- else: nothing -->
                      | {{{ilustrasi16x9}}}
                      | {{#ifexist: File:{{{illustrationA5|}}}
                          | {{{ilustrasiA5}}} <!-- else: nothing -->
            }}
                    }}
                }}
             }}
             }}
          }}
         }}
         }}
      }}
     }}
     }}
   }}
}}
| <!-- 16x9 -->{{#ifexist: File:{{{illustration16x9|}}}
 
| A5 = {{#ifexist: File:{{{illustrationA5|}}}
  | {{{ilustrasiA5}}}
   | {{#ifexist: File:{{{illustration16x9|}}}
  | {{{illustration16x9}}}
  | {{#ifexist: File:{{{ilustrasi16x9|}}}
  | {{{ilustrasi16x9}}}
  | {{#ifexist: File:{{{illustration|}}}
  | {{{illustration|}}}
  | {{#ifexist: File:{{{ilustrasi|}}}
  | {{{ilustrasi}}}
  | {{#ifexist: File:{{{illustration1x1}}}
  | {{{illustration1x1}}}
  | {{#ifexist: File:{{{ilustrasi1x1|}}}
  | {{{ilustrasi1x1}}} <!-- else: nothing -->
}}
}}
}}
}}
}}
}}
}}
 
| {{#ifexist: File:{{{illustration16x9|}}}
   | {{{illustration16x9}}}
   | {{{illustration16x9}}}
   | {{#ifexist: File:{{{ilustrasi16x9|}}}
   | {{#ifexist: File:{{{ilustrasi16x9|}}}
    | {{{ilustrasi16x9}}}
      | {{{ilustrasi16x9}}}
    | {{#ifexist: File:{{{illustration|}}}
      | {{#ifexist: File:{{{illustration|}}}
      | {{{illustration|}}}
          | {{{illustration|}}}
      | {{#ifexist: File:{{{ilustrasi|}}}
          | {{#ifexist: File:{{{ilustrasi|}}}
        | {{{ilustrasi}}}
              | {{{ilustrasi}}}
        | {{#ifexist: File:{{{illustration1x1}}}
              | {{#ifexist: File:{{{illustration1x1}}}
          | {{{illustration1x1}}}
                  | {{{illustration1x1}}}
          | {{#ifexist: File:{{{ilustrasi1x1|}}}
                  | {{#ifexist: File:{{{ilustrasi1x1|}}}
            | {{{ilustrasi1x1}}} <!-- else: nothing -->
                      | {{{ilustrasi1x1}}} <!-- else: nothing -->
                      | {{#ifexist: File:{{{illustrationA5|}}}
                          | {{{ilustrasiA5}}} <!-- else: nothing -->
                        }}
                    }}
                }}
             }}
             }}
          }}
         }}
         }}
      }}
     }}
     }}
  }}
}}
 
}}<noinclude>{{documentation}}</noinclude>
}}<noinclude>{{documentation}}</noinclude>

Revisi per 18 November 2022 04.50

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 → A5
  • type=A5: Priority A5 → 16x9 → 1x1
Example
{{getillustration
| type=1x1
| illustration16x9={{{illustration16x9|}}}
| illustration1x1={{{illustration1x1|}}}
| illustrationA5={{{foto|{{{illustrationA5|}}}}}}
}}