Difference between revisions of "Template:Map"

From DoomWiki.org

m (Reverted edits by Ryan W (talk) to last revision by Xymph)
(make slot parameter case-insensitive. Per previous changes to image license templates, I have been instructed not to worry about server load :>)
Line 1: Line 1:
<div class="dw-div-dl">''This level occupies the map slot {{{slot}}}. For other maps which occupy this slot, see [[:Category:{{{slot}}}]].''</div>
+
<div class="dw-div-dl">''This level occupies the map slot {{uc:{{{slot}}}}}. For other maps which occupy this slot, see [[:Category:{{uc:{{{slot}}}}}]].''</div>
<includeonly>{{#ifeq: {{lc:{{{nocat|false}}}}} | false |{{DEFAULTSORT:{{{name|{{#sub:{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}| |0}}|0}}|0|0}}}}}}} [[Category:{{{slot}}}]][[Category:Levels by name]]
+
<includeonly>{{#ifeq: {{lc:{{{nocat|false}}}}} | false |{{DEFAULTSORT:{{{name|{{#sub:{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}| |0}}|0}}|0|0}}}}}}} [[Category:{{uc:{{{slot}}}}}]][[Category:Levels by name]]
| {{#ifeq: {{lc:{{{nocat|}}}}} | noname | [[Category:{{{slot}}}]][[Category:Levels without name]] | <!-- Category suppressed --> }}}}</includeonly><noinclude>
+
| {{#ifeq: {{lc:{{{nocat|}}}}} | noname | [[Category:{{uc:{{{slot}}}}}]][[Category:Levels without name]] | <!-- Category suppressed --> }}}}</includeonly><noinclude>
  
 
=== Usage ===
 
=== Usage ===

Revision as of 14:06, 11 December 2016

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).
  • name= overrides automatic detection of the title, for example to ignore a leading "The" or "A".