Difference between revisions of "Template:Map"

From DoomWiki.org

m (test edit shall become live)
(+ caveats arising from the markup change to categorize unnamed maps by mod name. These cases Should Never Occur(TM) but we'll document them anyway)
Line 12: Line 12:
 
Optional parameters:
 
Optional parameters:
 
* '''{{c|<nowiki>nocat=true</nowiki>}}''' suppresses categorization; use for single-map mods.
 
* '''{{c|<nowiki>nocat=true</nowiki>}}''' suppresses categorization; use for single-map mods.
* '''{{c|<nowiki>nocat=noname</nowiki>}}''' invokes the subcategory for levels without individual titles (e.g. [[E1M1 (Galaxia)|Galaxia]]).
+
* '''{{c|<nowiki>nocat=noname</nowiki>}}''' invokes the subcategory for levels without individual titles (e.g. [[E1M1 (Galaxia)|Galaxia]]). Ignored if the ''name'' parameter is used. This parameter may create strange results if the page title is not in the standard form ''SLOT (Mod Name).''
 
* '''{{c|<nowiki>name=</nowiki>}}''' overrides automatic detection of the title, for example to ignore a leading "The" or "A".
 
* '''{{c|<nowiki>name=</nowiki>}}''' overrides automatic detection of the title, for example to ignore a leading "The" or "A".
  
 
[[Category:Disambiguation templates]]</noinclude>
 
[[Category:Disambiguation templates]]</noinclude>

Revision as of 14:35, 11 March 2018

This level occupies the map slot {{{SLOT}}}. For other maps which occupy this slot, see [[:Category:{{{SLOT}}}]].


Usage

{{map}} categorizes a map by its number, and outputs a disambiguation notice linking to that category. This should be placed at the top of every map article (see also Template:Map skel).

Required parameter:

  • slot= is the level number in the Doom engine's usual format, e.g. E2M1 or MAP05.

Optional parameters:

  • nocat=true suppresses categorization; use for single-map mods.
  • nocat=noname invokes the subcategory for levels without individual titles (e.g. Galaxia). Ignored if the name parameter is used. This parameter may create strange results if the page title is not in the standard form SLOT (Mod Name).
  • name= overrides automatic detection of the title, for example to ignore a leading "The" or "A".