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:{{{location|}}}|<tr>
+
<table>{{#if:{{{religion|}}}|<tr>
     <th>Location</th>
+
     <th>Religion in Otan</th>
     <td>{{{location}}}</td>
+
     <td>{{{religion}}}</td>
</tr>}} {{#if:{{{start_date|}}}|<tr>
+
</tr>}} {{#if:{{{military|}}}|<tr>
     <th>Start Date</th>
+
     <th>Military</th>
     <td>{{{start_date}}}</td>
+
     <td>{{{military}}}</td>
</tr>}} {{#if:{{{end_date|}}}|<tr>
+
</tr>}} {{#if:{{{language|}}}|<tr>
     <th>End Date</th>
+
     <th>Language</th>
     <td>{{{end_date}}}</td>
+
     <td>{{{language}}}</td>
</tr>}} {{#if:{{{result|}}}|<tr>
+
</tr>}} {{#if:{{{trade|}}}|<tr>
     <th>Result</th>
+
     <th>Trade</th>
     <td>{{{result}}}</td>
+
     <td>{{{trade}}}</td>
</tr>}} {{#if:{{{territorial_changes|}}}|<tr>
+
</tr>}} {{#if:{{{culture|}}}|<tr>
     <th>Territorial Changes</th>
+
     <th>Culture</th>
     <td>{{{territorial_changes}}}</td>
+
     <td>{{{culture}}}</td>
</tr>}} {{#if:{{{belligerents|}}}|<tr>
+
</tr>}} {{#if:{{{magic|}}}|<tr>
     <th>Belligerents</th>
+
     <th>Magic</th>
     <td>{{{belligerents}}}</td>
+
     <td>{{{magic}}}</td>
</tr>}} {{#if:{{{leaders|}}}|<tr>
+
</tr>}} {{#if:{{{legends|}}}|<tr>
     <th>Leaders</th>
+
     <th>Legends</th>
     <td>{{{leaders}}}</td>
+
     <td>{{{legends}}}</td>
</tr>}} {{#if:{{{casualties|}}}|<tr>
+
</tr>}} {{#if:{{{travel|}}}|<tr>
     <th>Casualties</th>
+
     <th>Travel</th>
     <td>{{{casualties}}}</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 war
+
{{Infobox features
 
   | title          =  
 
   | title          =  
 
   | image          =  
 
   | image          =  
 
   | caption        =  
 
   | caption        =  
   | location       =  
+
   | religion       =  
   | start_date    =  
+
   | military      =  
   | end_date       =  
+
   | language       =  
   | result        =
+
   | trade          =
   | territorial_changes =  
+
   | culture        =  
   | belligerents   =  
+
   | magic          =
   | leaders        =  
+
   | legends        =  
   | casualties    =  
+
   | 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         = 
}}