Difference between revisions of "Template:InfoBoxTest"
From Book Trigger Warnings
(Add #ifs) |
|||
Line 2: | Line 2: | ||
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div> | <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div> | ||
+ | {{#if: {{{image|}}}| | ||
<div class="infobox-image">[[File:{{{image}}}|200px]]</div> | <div class="infobox-image">[[File:{{{image}}}|200px]]</div> | ||
+ | |<div class="infobox-image">[[File:default.png|200px]]</div> | ||
+ | }} | ||
<table> | <table> | ||
Line 9: | Line 12: | ||
<td>{{{author}}}</td> | <td>{{{author}}}</td> | ||
</tr> | </tr> | ||
+ | {{#if: {{{published|}}}| | ||
<tr> | <tr> | ||
<th>Published</th> | <th>Published</th> | ||
<td>{{{published}}}</td> | <td>{{{published}}}</td> | ||
</tr> | </tr> | ||
+ | }} | ||
+ | {{#if: {{{genres|}}}| | ||
<tr> | <tr> | ||
<th>Genre(s)</th> | <th>Genre(s)</th> | ||
<td>{{{genres}}}</td> | <td>{{{genres}}}</td> | ||
</tr> | </tr> | ||
+ | }} | ||
{{#if: {{{agegroup|}}}| | {{#if: {{{agegroup|}}}| | ||
<tr> | <tr> |