Template:Infobox Map: Difference between revisions
(links) |
(Gametypes (I hope I didn't mess up those templates...)) |
||
Line 11: | Line 11: | ||
}} | }} | ||
<!-- 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|}}} | |||
|<tr> | |||
<th scope="row">Gametype(s)</th> | |||
<td>{{#ifeq:{{{ffa|}}}|yes|[[Free For All]] }}{{#ifeq:{{{team|}}}|yes|[[Team Free For All]] }}{{#ifeq:{{{holocron|}}}|yes|[[Holocron]] }}{{#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|}}} | |||
}} | |||
<!-- author(s), if available --> | <!-- author(s), if available --> | ||
{{#if:{{{author|}}}| | {{#if:{{{author|}}}| | ||
Line 34: | Line 40: | ||
= Syntax = | = Syntax = | ||
<nowiki> | <nowiki>{{Infobox Map | ||
{{Infobox Map | |||
| name = Dude's cool map | | name = Dude's cool map | ||
| author = Dude | | author = Dude | ||
Line 41: | Line 46: | ||
| image_caption = Look at Dude's cool map! | | image_caption = Look at Dude's cool map! | ||
| link = [http://link.to/dudes/cool.map] | | link = [http://link.to/dudes/cool.map] | ||
}} | | ffa = yes | ||
</nowiki> | | team = yes | ||
| holocron = yes | |||
| jedimaster = yes | |||
| duel = no | |||
| powerduel = no | |||
| ctf = no | |||
| cty = no | |||
| siege = no | |||
| additional_gametypes = [[UberMod|UberMod MegaSlaughter]] | |||
}}</nowiki> | |||
The link parameter is not post-processed to allow for multiple links. | * 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 <code>additional_gametypes</code> for custom gametypes. | |||
* The link parameter is not post-processed to allow for multiple links. | |||
<noinclude> | <noinclude> |
Revision as of 18:05, 3 December 2013
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! | 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]] }}
- 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.