Template:Infobox Map: Difference between revisions

From Jedi Knight Wiki | JKHub
mNo edit summary
mNo edit summary
Line 53: Line 53:
   <th scope="row">Gametype(s)</th>
   <th scope="row">Gametype(s)</th>
   <td>
   <td>
{{#ifeq:{{{ffa|}}}|yes|
{{#ifeq:{{{ffa|}}}|yes|* [[Free For All]]}}
* [[Free For All]]}}{{#ifeq:{{{team|}}}|yes|
{{#ifeq:{{{team|}}}|yes|* [[Team Free For All]]}}
* [[Team Free For All]]}}{{#ifeq:{{{holocron|}}}|yes|
{{#ifeq:{{{holocron|}}}|yes|* [[Holocron FFA]]}}
* [[Holocron FFA]]}}{{#ifeq:{{{jedimaster|}}}|yes|
{{#ifeq:{{{jedimaster|}}}|yes|* [[Jedi Master]]}}
* [[Jedi Master]]}}{{#ifeq:{{{duel|}}}|yes|
{{#ifeq:{{{duel|}}}|yes|* [[Duel]]}}
* [[Duel]]}}{{#ifeq:{{{powerduel|}}}|yes|
{{#ifeq:{{{powerduel|}}}|yes|* [[Power Duel]]}}
* [[Power Duel]]}}{{#ifeq:{{{ctf|}}}|yes|
{{#ifeq:{{{ctf|}}}|yes|* [[Capture The Flag]]}}
* [[Capture The Flag]]}}{{#ifeq:{{{cty|}}}|yes|
{{#ifeq:{{{cty|}}}|yes|* [[Capture The Ysalimari]]}}
* [[Capture The Ysalamiri]]}}{{#ifeq:{{{siege|}}}|yes|
{{#ifeq:{{{siege|}}}|yes|* [[Siege]]}}
* [[Siege]]}}
{{{additional_gametypes|}}}
{{{additional_gametypes|}}}
   }}
   }}

Revision as of 09:59, 8 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.