Template:Infobox Map: Difference between revisions

From Jedi Knight Wiki | JKHub
m (Mrwonko moved page Template:Map Infobox to Template:Infobox Map without leaving a redirect)
(basic version with name, image, author)
Line 1: Line 1:
<!-- I'm still experimenting with this, trying to keep Wikipedia's style but simplify its templates. --mrwonko -->
{{#if:{{{name|}}
|<table class="infobox" style="border-spacing: 3px; width: 22em;">
  <!-- name (mandatory) -->
  <caption>{{{name|}}}</caption>


<table class="infobox" cellspacing="3" style="border-spacing: 3px; width:22em;">
  <!-- image, if available -->
<tr>
  {{#if:{{{image|}}}
   <th scope=row" style="text-align: left;">
  |<tr style="text-align: center;">
  Label 1
    <td colspan="2">[[File:{{{image|}}}]]
  </th>
    <!-- image caption, if available -->
  <td>
    {{#if{{{image_caption|}}}
  Data 1
    |<br/><div>{{{image_caption|}}}</div>
  </td>
    }}
</tr>
    </td>
</table>
  </tr>
   }}
 
  <!-- author(s), if available -->
  {{#if:{{{author|}}}|
  <tr>
    <th scope="row">Author(s)</th>
    <td>{{{author|}}}</td>
  </tr>
  }}
</table>
}}

Revision as of 16:30, 3 December 2013