User:Rogerb-on-NAO/monsymlink

From NetHackWiki
< User:Rogerb-on-NAO
Revision as of 08:55, 20 June 2008 by Rogerb-on-NAO (talk | contribs) (more testing)
Jump to navigation Jump to search


This template shows the monster symbol and puts a link to that monster's page after it. Takes one or two parameters, the monster name, and an optional link type, which can be either before, after, only, or none. Uses before as the default type if the second parameter is missing. For example:

  • {{User:Rogerb-on-NAO/monsymlink|Wizard of Yendor}} produces {{ {{#switch:

|after=Wizard of Yendor  |only=[[Wizard of Yendor| |before |#default= }}@ Wizard of Yendor }}

  • {{User:Rogerb-on-NAO/monsymlink|Wizard of Yendor|before}} produces {{ {{#switch: before

|after=Wizard of Yendor  |only=[[Wizard of Yendor| |before |#default= }}@ Wizard of Yendor }}

  • {{User:Rogerb-on-NAO/monsymlink|Wizard of Yendor|after}} produces {{ {{#switch: after

|after=Wizard of Yendor  |only=[[Wizard of Yendor| |before |#default= }}@ }}

  • {{User:Rogerb-on-NAO/monsymlink|Wizard of Yendor|only}} produces {{ {{#switch: only

|after=Wizard of Yendor  |only= |before |#default= }}@ }}