Template:Infobox Map: Difference between revisions

From Jedi Knight Wiki | JKHub
mNo edit summary
mNo edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{name|}}}
<includeonly>
|<table class="infobox" style="border-spacing: 3px; width: 22em; style="text-align:center;"">
<table class="infobox" style="display: block;">
   <!-- name (mandatory) -->
   <!-- name (mandatory) -->
   <caption>{{{name}}}</caption>
   <tr>
    <td colspan="2" style="text-align: center; font-size: 125%; font-weight: bold;">{{{name|}}}</td>
  </tr>


   <!-- image, if available -->
   <!-- image, if available -->
   {{#if:{{{image}}}
   {{#if:{{{image|}}}|
   |<tr>
   <tr>
     <td colspan="2" style="text-align:center;">[[File:{{{image}}}|200px|center</td>
     <td colspan="2" style="text-align: center;">[[File:{{{image}}}|270px|center]]</td>
   </tr>
   </tr>
   }}
   }}
 
  <tr>
  <td colspan="2" style="text-align: center; font-weight: bold; background:#bfccd9;">Details</td>
  </tr>
   <!-- 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 24:


   <!-- 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 32:


   <!-- relasedate, if available -->
   <!-- relasedate, if available -->
   {{#if:{{{link}}}
   {{#if:{{{relasedate|}}}|
   <tr>
   <tr>
     <th scope="row">Relase date</th>
     <th scope="row">Release date</th>
     <td>{{{relasedate|}}}</td>
     <td >{{{relasedate|}}}</td>
  </tr>
  }}
 
  <!-- game, if available -->
  {{#if:{{{game|}}}|
  <tr>
    <th scope="row">Game(s)</th>
    <td>{{{game|}}}</td>
   </tr>
   </tr>
   }}
   }}


   <!-- gametypes, if any -->
   <!-- gametypes, if any -->
   {{#if:{{#ifeq:{{{ffa|}}}|yes|x}}{{#ifeq:{{{team|}}}|yes|x}}{{#ifeq:{{{holocron|}}}|yes|x}}{{#ifeq:{{{jedimaster|}}}|yes|x}}{{#ifeq:{{{duel|}}}|yes|x}}{{#ifeq:{{{powerduel|}}}|yes|x}}{{#ifeq:{{{ctf|}}}|yes|x}}{{#ifeq:{{{cty|}}}|yes|x}}{{#ifeq:{{{siege|}}}|yes|x}}{{{additional_gametypes|}}}
   {{#if:{{#ifeq:{{{ffa|}}}|yes|x}}{{#ifeq:{{{team|}}}|yes|x}}{{#ifeq:{{{holocron|}}}|yes|x}}{{#ifeq:{{{jedimaster|}}}|yes|x}}{{#ifeq:{{{duel|}}}|yes|x}}{{#ifeq:{{{powerduel|}}}|yes|x}}{{#ifeq:{{{ctf|}}}|yes|x}}{{#ifeq:{{{cty|}}}|yes|x}}{{#ifeq:{{{siege|}}}|yes|x}}{{{additional_gametypes|}}}|
   |<tr>
   <tr>
   <th scope="row">Gametype(s)</th>
   <th scope="row">Game type(s)</th>
   <td>
   <td>
{{#ifeq:{{{ffa|}}}|yes|
{{#ifeq:{{{ffa|}}}|yes|*[[Free For All]]}}{{#ifeq:{{{team|}}}|yes|*[[Team Free For All]]}}{{#ifeq:{{{holocron|}}}|yes|*[[Holocron FFA]]}}{{#ifeq:{{{jedimaster|}}}|yes|*[[Jedi Master]]}}{{#ifeq:{{{duel|}}}|yes|*[[Duel]]}}{{#ifeq:{{{powerduel|}}}|yes|*[[Power Duel]]}}{{#ifeq:{{{ctf|}}}|yes|*[[Capture The Flag]]}}{{#ifeq:{{{cty|}}}|yes|*[[Capture The Ysalamiri]]}}{{#ifeq:{{{siege|}}}|yes|*[[Siege]]}}{{{additional_gametypes|}}}
* [[Free For All]]}}{{#ifeq:{{{team|}}}|yes|
}}
* [[Team Free For All]]}}{{#ifeq:{{{holocron|}}}|yes|
  </td>
* [[Holocron]]}}{{#ifeq:{{{jedimaster|}}}|yes|
</table>
* [[Jedi Master]]}}{{#ifeq:{{{duel|}}}|yes|
</includeonly>
* [[Duel]]}}{{#ifeq:{{{powerduel|}}}|yes|
* [[Power Duel]]}}{{#ifeq:{{{ctf|}}}|yes|
* [[Capture The Flag]]}}{{#ifeq:{{{cty|}}}|yes|
* [[Capture The Ysalamiri]]}}{{#ifeq:{{{siege|}}}|yes|
* [[Siege]]}}
{{{additional_gametypes|}}}
  }}


</table>
<noinclude>
}}</includeonly><noinclude>
<!-- Documentation -->
<!-- Documentation -->


Line 66: Line 70:
| 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
Line 82: Line 87:


* Only the name parameter is mandatory but if that's your only one you probably don't want an Infobox, just a heading.
* 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.
* Only game types set to yes are listed.
* Use <code>additional_gametypes</code> for custom gametypes.
* Use <code>additional_gametypes</code> for custom game types.
* The link parameter is not post-processed to allow for multiple links.
* The link parameter is not post-processed to allow for multiple links.


<noinclude>
<noinclude>
[[Category:Templates]]
[[Category:Templates]]

Latest revision as of 11:34, 1 February 2023



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 game types set to yes are listed.
  • Use additional_gametypes for custom game types.
  • The link parameter is not post-processed to allow for multiple links.