Difference between revisions of "Template:Map"

From DoomWiki.org

(markup -> algorithm, if that's not 199% pretentious)
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
http://s1099.photobucket.com/albums/g392/RTsucksLdick/ra.jpg
+
<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>
 +
{{#ifeq:{{NAMESPACENUMBER}}|0|<includeonly>{{#ifeq:{{lc:{{{nocat|false}}}}}|false|{{DEFAULTSORT:{{{name|{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}| |0}}|0}}}}}}}[[Category:{{uc:{{{slot}}}}}]][[Category:Levels by name]]|{{#ifeq:{{lc:{{{nocat|}}}}}|noname|{{DEFAULTSORT:{{{name|{{#sub:{{PAGENAME}}|{{#expr:{{#pos:{{PAGENAME}}|(|0}}+1}}|0}} {{#sub:{{PAGENAME}}|0|{{#expr:{{#pos:{{PAGENAME}}|(|0}}-1}}}}}}}}}[[Category:{{uc:{{{slot}}}}}]][[Category:Levels without name]]|<!-- Category suppressed -->}}}}</includeonly>|}}<noinclude>
  
 +
=== Usage ===
  
If you've already decided to become a dedicated Mass Effect Wiki editor, we can arrange your application procedures right now on my talk page:
+
'''{{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]]).
  
http://masseffect.wikia.com/wiki/User_talk:Lancer1289
+
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>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".
  
 +
<u>Technical note about automatic sort keys:</u> The algorithm in this template is not designed to cover every possible grammatical situation (to avoid creating unmaintainable {{wp|Kudzu in the United States|kudzu}}). Unusual cases should be spot checked on category pages once they have updated, and if sorting is incorrect, just use '''{{c|nocat{{=}}true}}''' and manually add a [[mw:Help:Magic words#Technical metadata|DEFAULTSORT]] and the additional categories. In particular, there are known issues with:
 +
* Map names beginning with '''{{c|A}}''', '''{{c|An}}''', '''{{c|The}}''', or similar words in other languages.
 +
* Map names containing colons, where the mod is a single map not inhabiting MAP01 (e.g. [[Jägermörder 2: Terra Nova]]).
 +
* Custom map slot ''systems'' in advanced ports, especially containing spaces (e.g. [[Zone 15: Final Battle Zone (Super Sonic Doom)]]).
  
Please, do not remove this information. The Real Lancer badly needs his cock sucked, or else he is going to die!
+
[[Category:Disambiguation templates]]</noinclude>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
http://s1190.photobucket.com/albums/z454/jhfoghdd/ra.jpg
 
 
 
 
 
If you've already decided to become a dedicated Mass Effect Wiki editor, we can arrange your application procedures right now on my talk page:
 
 
 
http://masseffect.wikia.com/wiki/User_talk:Lancer1289
 
 
 
 
 
 
 
Please, do not remove this information. The Real Lancer badly needs his cock sucked, or else he is going to die!
 

Revision as of 22:02, 13 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".

Technical note about automatic sort keys: The algorithm in this template is not designed to cover every possible grammatical situation (to avoid creating unmaintainable kudzu). Unusual cases should be spot checked on category pages once they have updated, and if sorting is incorrect, just use nocat=true and manually add a DEFAULTSORT and the additional categories. In particular, there are known issues with: