Difference between revisions of "Template:Infobox features"
From OtanWiki
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div class="infobox" style="background: #ccf; border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 1em; width: 320px;" > | + | <div class="infobox" style="background: #ccf; border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 1em; width: 320px; clear: both;" > |
<div class="infobox-title" style="font-size: 1.4em; text-align: center;">{{{title|Featured {{PAGENAME}} Articles}}}</div>{{#if:{{{image|}}}| | <div class="infobox-title" style="font-size: 1.4em; text-align: center;">{{{title|Featured {{PAGENAME}} Articles}}}</div>{{#if:{{{image|}}}| | ||
<div class="infobox-image" style="text-align: center;">[[File:{{{image}}}|300px]]</div>}} | <div class="infobox-image" style="text-align: center;">[[File:{{{image}}}|300px]]</div>}} | ||
{{#if:{{{caption|}}}|<div style="font-size: .8em; text-align: center;">{{{caption}}}</div>}} | {{#if:{{{caption|}}}|<div style="font-size: .8em; text-align: center;">{{{caption}}}</div>}} | ||
− | <table>{{#if:{{{ | + | <table>{{#if:{{{religion|}}}|<tr> |
− | <th> | + | <th>Religion in Otan</th> |
− | <td>{{{ | + | <td>{{{religion}}}</td> |
− | </tr>}} {{#if:{{{ | + | </tr>}} {{#if:{{{military|}}}|<tr> |
− | <th> | + | <th>Military</th> |
− | <td>{{{ | + | <td>{{{military}}}</td> |
− | </tr>}} {{#if:{{{ | + | </tr>}} {{#if:{{{language|}}}|<tr> |
− | <th> | + | <th>Language</th> |
− | <td>{{{ | + | <td>{{{language}}}</td> |
− | </tr>}} {{#if:{{{ | + | </tr>}} {{#if:{{{trade|}}}|<tr> |
− | <th> | + | <th>Trade</th> |
− | <td>{{{ | + | <td>{{{trade}}}</td> |
− | </tr>}} {{#if:{{{ | + | </tr>}} {{#if:{{{culture|}}}|<tr> |
− | <th> | + | <th>Culture</th> |
− | <td>{{{ | + | <td>{{{culture}}}</td> |
− | </tr>}} {{#if:{{{ | + | </tr>}} {{#if:{{{magic|}}}|<tr> |
− | <th> | + | <th>Magic</th> |
− | <td>{{{ | + | <td>{{{magic}}}</td> |
− | </tr>}} {{#if:{{{ | + | </tr>}} {{#if:{{{legends|}}}|<tr> |
− | <th> | + | <th>Legends</th> |
− | <td>{{{ | + | <td>{{{legends}}}</td> |
− | </tr>}} {{#if:{{{ | + | </tr>}} {{#if:{{{travel|}}}|<tr> |
− | <th> | + | <th>Travel</th> |
− | <td>{{{ | + | <td>{{{travel}}}</td> |
+ | </tr>}} {{#if:{{{wildlife|}}}|<tr> | ||
+ | <th>Wildlife</th> | ||
+ | <td>{{{wildlife}}}</td> | ||
+ | </tr>}} {{#if:{{{botany|}}}|<tr> | ||
+ | <th>Botany</th> | ||
+ | <td>{{{botany}}}</td> | ||
</tr>}}</table> | </tr>}}</table> | ||
</div> | </div> | ||
Line 32: | Line 38: | ||
Example usage: | Example usage: | ||
<pre> | <pre> | ||
− | {{Infobox | + | {{Infobox features |
| title = | | title = | ||
| image = | | image = | ||
| caption = | | caption = | ||
− | | | + | | religion = |
− | | | + | | military = |
− | | | + | | language = |
− | | | + | | trade = |
− | | | + | | culture = |
− | | | + | | magic = |
− | | | + | | legends = |
− | | | + | | travel = |
+ | | wildlife = | ||
+ | | botany = | ||
}} | }} | ||
</pre> | </pre> |
Latest revision as of 17:12, 28 May 2021
Featured Infobox features Articles
Example usage:
{{Infobox features | title = | image = | caption = | religion = | military = | language = | trade = | culture = | magic = | legends = | travel = | wildlife = | botany = }}