NewsUnrealEdForumsFilesModsFragBU

Skin

BeyondUnreal


Personal tools

Difference between revisions of "Template:Infobox Map/doc"

From Liandri Archives

Jump to: navigation, search
m (1 revision(s))
m (explained new compact parameter and mentioned sort key parameter)
 
Line 3: Line 3:
 
The general syntax for this template is as follows:
 
The general syntax for this template is as follows:
 
<pre>
 
<pre>
{{Infobox Map
+
{{Infobox Map|sortkey
 
| title      =  
 
| title      =  
 
| description =  
 
| description =  
Line 14: Line 14:
 
| games      =  
 
| games      =  
 
| gametype    =  
 
| gametype    =  
 +
| compact    = yes/no
 
}}
 
}}
 
</pre>
 
</pre>
Line 19: Line 20:
 
All parameters are optional, but it's recommended to specify <tt>title</tt>, <tt>description</tt>, <tt>mapimage</tt>, <tt>players</tt>, <tt>game</tt> or <tt>games</tt>, and <tt>gametype</tt>.
 
All parameters are optional, but it's recommended to specify <tt>title</tt>, <tt>description</tt>, <tt>mapimage</tt>, <tt>players</tt>, <tt>game</tt> or <tt>games</tt>, and <tt>gametype</tt>.
  
The <tt>title</tt> parameter will fall back to the page name if not specified, <tt>mapimage</tt> falls back to a placeholder image, and <tt>imagedesc</tt> falls back to the map's title or the page name. The <tt>author</tt>, <tt>players</tt> and <tt>music</tt> fields will not be displayed if left out.
+
The <tt>title</tt> parameter will fall back to the page name if not specified, <tt>mapimage</tt> falls back to a placeholder image, and <tt>imagedesc</tt> falls back to the map's title or the page name. The <tt>author</tt>, <tt>players</tt> and <tt>music</tt> fields will not be displayed if left out. The ''sortkey'' parameter should either be omitted entirely or be replaced with the map's file name without prefix. If omitted it is automatically replaced by the specified (or fallback) map title. The fields <tt>game</tt> and <tt>gametype</tt> should specify names of (not links to) the corresponding game and gametype the map was created for. The map will automatically be added to the corresponding game and gametype map categories. The <tt>games</tt> parameter can be used instead of <tt>game</tt> to specify more than one game for a map, but won't automatically like the games or add the map to the corresponding game map categories. It takes precedence over the <tt>game</tt> parameter in the map info table.
  
The fields <tt>game</tt> and <tt>gametype</tt> should specify names of (not links to) the corresponding game and gametype the map was created for. The map will automatically be added to the corresponding game and gametype map categories. The <tt>games</tt> parameter can be used instead of <tt>game</tt> to specify more than one game for a map, but won't automatically like the games or add the map to the corresponding game map categories. It takes precedence over the <tt>game</tt> parameter in the map info table.
+
The <tt>compact</tt> parameter should be omitted instead of setting it to ''no''. Setting it to ''yes'' causes following text to start right below the TOC block and flow around the map image block, while ''no'' causes following text to start below TOC and map image.
  
 
=== Example Usage ===
 
=== Example Usage ===
 
The following syntax would be used for the [[UT]] version of [[CTF-Face]]:
 
The following syntax would be used for the [[UT]] version of [[CTF-Face]]:
 
<pre>
 
<pre>
{{Infobox Map
+
{{Infobox Map|Face
 
| title      = Facing Worlds
 
| title      = Facing Worlds
 
| description = This ancient asteroid has been converted to an Arena for
 
| description = This ancient asteroid has been converted to an Arena for

Latest revision as of 01:40, 7 April 2011

This is the documentation for Template:Infobox Map.

The general syntax for this template is as follows:

{{Infobox Map|sortkey
| title       = 
| description = 
| mapimage    = 
| imagedesc   = 
| author      = 
| players     = 
| music       = 
| game        = 
| games       = 
| gametype    = 
| compact     = yes/no
}}

All parameters are optional, but it's recommended to specify title, description, mapimage, players, game or games, and gametype.

The title parameter will fall back to the page name if not specified, mapimage falls back to a placeholder image, and imagedesc falls back to the map's title or the page name. The author, players and music fields will not be displayed if left out. The sortkey parameter should either be omitted entirely or be replaced with the map's file name without prefix. If omitted it is automatically replaced by the specified (or fallback) map title. The fields game and gametype should specify names of (not links to) the corresponding game and gametype the map was created for. The map will automatically be added to the corresponding game and gametype map categories. The games parameter can be used instead of game to specify more than one game for a map, but won't automatically like the games or add the map to the corresponding game map categories. It takes precedence over the game parameter in the map info table.

The compact parameter should be omitted instead of setting it to no. Setting it to yes causes following text to start right below the TOC block and flow around the map image block, while no causes following text to start below TOC and map image.

Example Usage

The following syntax would be used for the UT version of CTF-Face:

{{Infobox Map|Face
| title       = Facing Worlds
| description = This ancient asteroid has been converted to an Arena for
the Tournament. It is highly dangerous due to aberrant gravitational
properties and, of course, the snipers from the other team.
| mapimage    = CTF-Face.jpg
| author      = Cedric 'Inoxx' Fiorentino
| players     = 4-10
| music       = Forgone
| game        = Unreal Tournament
| gametype    = Capture the Flag
}}