Template:Infobox Map: Difference between revisions

From Jedi Knight Wiki | JKHub
mNo edit summary
mNo edit summary
Line 5: Line 5:


   <!-- image, if available -->
   <!-- image, if available -->
   {{#if:{{{image}}}
   {{#if:{{{image|}}}
   |<tr>
   |<tr>
     <td colspan="2" style="text-align:center;">[[File:{{{image}}}|240px|center]]</td>
     <td colspan="2" style="text-align:center;">[[File:{{{image}}}|240px|center]]</td>
Line 12: Line 12:


   <!-- author(s), if available -->
   <!-- author(s), if available -->
   {{#if:{{{author}}}
   {{#if:{{{author|}}}|
   <tr>
   <tr>
     <th scope="row">Author(s)</th>
     <th scope="row">Author(s)</th>
Line 20: Line 20:


   <!-- link(s), if available -->
   <!-- link(s), if available -->
   {{#if:{{{link}}}
   {{#if:{{{link|}}}|
   <tr>
   <tr>
     <th scope="row">Link(s)</th>
     <th scope="row">Link(s)</th>
Line 28: Line 28:


   <!-- relasedate, if available -->
   <!-- relasedate, if available -->
   {{#if:{{{link}}}
   {{#if:{{{relasedate|}}}|
   <tr>
   <tr>
     <th scope="row">Relase date</th>
     <th scope="row">Relase date</th>
     <td>{{{relasedate|}}}</td>
     <td>{{{relasedate|}}}</td>
  </tr>
  }}
  <!-- game, if available -->
  {{#if:{{{game|}}}|
  <tr>
    <th scope="row">Games</th>
    <td>{{{game|}}}</td>
   </tr>
   </tr>
   }}
   }}
Line 66: Line 74:
| image = dudes_cool_map.jpg
| image = dudes_cool_map.jpg
| image_caption = Look at Dude's cool map!
| image_caption = Look at Dude's cool map!
| game = List the games the map is available for.
| link = [http://link.to/dudes/cool.map]
| link = [http://link.to/dudes/cool.map]
| ffa = yes
| ffa = yes

Revision as of 13:18, 1 March 2020


The Infobox for Maps is a simple way of summarizing information on a map.

Syntax

{{Infobox Map
| name = Dude's cool map
| author = Dude
| image = dudes_cool_map.jpg
| image_caption = Look at Dude's cool map!
| game = List the games the map is available for.
| link = [http://link.to/dudes/cool.map]
| ffa = yes
| team = yes
| holocron = yes
| jedimaster = yes
| duel = no
| powerduel = no
| ctf = no
| cty = no
| siege = no
| additional_gametypes =
* [[UberMod|UberMod MegaSlaughter]]
* [[UberMod|UberMod UberGib]]
}}
  • Only the name parameter is mandatory but if that's your only one you probably don't want an Infobox, just a heading.
  • Only gametypes set to yes are listed.
  • Use additional_gametypes for custom gametypes.
  • The link parameter is not post-processed to allow for multiple links.