The template {{Error if empty}} is used to avoid unwanted transclusions of the {{Error}} template in those cases in whic
The template {{Error if empty}} is used to avoid unwanted transclusions of the {{Error}} template in those cases in which the {{#if}} (or a similar) parser function is not directly used for determining the error conditions. In these cases, this templates will appear permanently transcluded instead of {{Error}}.
This template checks whether the first parameter is empty. If it is, it calls {{Error}} using the second parameter; otherwise it shows the first parameter, trimmed of trailing and leading spaces.
{{Error if empty|Hello world|Error: Lorem ipsum dolor sit amet.}}
{{Error if empty||Error: Lorem ipsum dolor sit amet.}}
{{Error if empty|}}
{{Error if empty}}
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.