Difference between revisions of "User:Rogerb-on-NAO/monsymlink2"

From NetHackWiki
Jump to navigation Jump to search
(Try a different way to do monsym)
 
m (Reinstate spaces.)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<onlyinclude><includeonly>{{#switch: {{{2|}}}
 
<onlyinclude><includeonly>{{#switch: {{{2|}}}
|after=[[{{monarticle|{{{1}}}}}|{{{1}}}]]&nbsp;{{User:Rogerb-on-NAO/monsym|{{#replace: {{lc: {{{1}}}}}| |_}}}}
+
|after
|only=[[{{monarticle|{{{1}}}}}|{{User:Rogerb-on-NAO/monsym|{{#replace: {{lc: {{{1}}}}}| |_}}}}]]
+
|only=
 
|before
 
|before
|#default={{User:Rogerb-on-NAO/monsym|{{#replace: {{lc: {{{1}}}}}| |_}}}}&nbsp;[[{{monarticle|{{{1}}}}}|{{{1}}}]]
+
|#default={{User:Rogerb-on-NAO/monsym|{{#replace: {{lc: {{{1}}}}}| |_}}}}&nbsp;
 +
}}[[{{monarticle|{{{1}}}}}|{{#switch: {{{2|}}}
 +
|only={{User:Rogerb-on-NAO/monsym|{{#replace: {{lc: {{{1}}}}}| |_}}}}
 +
|after
 +
|before
 +
|#default={{{1}}}
 +
}}]]{{#switch: {{{2|}}}
 +
|after=&nbsp;{{User:Rogerb-on-NAO/monsym|{{#replace: {{lc: {{{1}}}}}| |_}}}}
 +
|only
 +
|before
 +
|#default=
 
}}</includeonly></onlyinclude>
 
}}</includeonly></onlyinclude>
  
Line 9: Line 19:
 
For example:
 
For example:
  
*<nowiki>{{monsymlink|Wizard of Yendor}}</nowiki> produces {{monsymlink|Wizard of Yendor}}
+
*<nowiki>{{monsymlink|Wizard of Yendor}}</nowiki> produces {{User:Rogerb-on-NAO/monsymlink2|Wizard of Yendor}}
*<nowiki>{{monsymlink|Wizard of Yendor|before}}</nowiki> produces {{monsymlink|Wizard of Yendor|before}}
+
*<nowiki>{{monsymlink|Wizard of Yendor|before}}</nowiki> produces {{User:Rogerb-on-NAO/monsymlink2|Wizard of Yendor|before}}
*<nowiki>{{monsymlink|Wizard of Yendor|after}}</nowiki> produces {{monsymlink|Wizard of Yendor|after}}
+
*<nowiki>{{monsymlink|Wizard of Yendor|after}}</nowiki> produces {{User:Rogerb-on-NAO/monsymlink2|Wizard of Yendor|after}}
*<nowiki>{{monsymlink|Wizard of Yendor|only}}</nowiki> produces {{monsymlink|Wizard of Yendor|only}}
+
*<nowiki>{{monsymlink|Wizard of Yendor|only}}</nowiki> produces {{User:Rogerb-on-NAO/monsymlink2|Wizard of Yendor|only}}

Latest revision as of 10:51, 20 June 2008


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, or only. Uses before as the default type if the second parameter is missing. For example: