Template talk:Mcsl

From NetHackWiki
Jump to navigation Jump to search

Class article changes

How exactly do you change the target page that's linked for an individual glyph (e.g. pointing {{mcsl|V}} to Vampire (monster class))? --Umbire the Phantom (talk) 14:40, 28 October 2023 (UTC)

This part of the wikicode: {{#switch:{{{1}}}|c|G|g|h|o|W|y|:| | =(monster class)}} – checks to see if parameter 1 is one of the listed characters (c, G, g, h, etc.), and if it matches any of them, it inserts the text "(monster class)" into the link target. To make another character do this too, add it among the ones separated by vertical bars. — Ardub23 (talk) 02:45, 29 October 2023 (UTC)
Ah, easier than I thought. Just leaves the doing - thank you! --Umbire the Phantom (talk) 02:49, 29 October 2023 (UTC)