Difference between revisions of "Template:Map"

From DoomWiki.org

(use class instead of list formating)
(Usage: (new section))
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 {{{slot}}}. For other maps which occupy this slot, see [[:Category:{{{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:{{{slot}}}]][[Category:Levels by name]]
| {{#ifeq: {{lc:{{{nocat|}}}}} | noname | [[Category:{{{slot}}}]][[Category:Levels without name]] | <!-- Category suppressed --> }}}}</includeonly><noinclude>[[Category:Disambiguation templates]]</noinclude>
+
| {{#ifeq: {{lc:{{{nocat|}}}}} | noname | [[Category:{{{slot}}}]][[Category:Levels without name]] | <!-- Category suppressed --> }}}}</includeonly><noinclude>
 +
 
 +
=== Usage ===
 +
 
 +
'''{{c|<nowiki>{{map}}</nowiki>}}''' 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:
 +
* '''{{c|<nowiki>slot=</nowiki>}}''' is the level number in the Doom engine's usual format, e.g. ''E2M1'' or ''MAP05''.
 +
 
 +
Optional parameters:
 +
* '''{{c|<nowiki>nocat=true</nowiki>}}''' suppresses categorization; use for single-map mods.
 +
* '''{{c|<nowiki>name=</nowiki>}}''' overrides automatic detection of the title, for example to ignore a leading "The" or "A".
 +
* '''{{c|<nowiki>noname</nowiki>}}''' invokes the subcategory for levels without individual titles (e.g. [[E1M1 (Galaxia)|Galaxia]]).
 +
 
 +
[[Category:Disambiguation templates]]</noinclude>

Revision as of 18:01, 17 October 2015

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.
  • name= overrides automatic detection of the title, for example to ignore a leading "The" or "A".
  • noname invokes the subcategory for levels without individual titles (e.g. Galaxia).