Difference between revisions of "Template:Monsterlink"

From CrawlWiki
Jump to: navigation, search
(Remove an unnecessary newline character)
(add the 2nd parameter, so you can use a custom link text)
 
Line 1: Line 1:
<includeonly>{{Glyph|{{{1|(monster)}}}}} [[Image:{{{1|(monster)}}}.png]] '''[[{{{1|monster}}}]]'''</includeonly><noinclude>
+
<includeonly>{{Glyph|{{{1|(monster)}}}}} [[Image:{{{1|(monster)}}}.png]] '''[[{{{1|monster}}}|{{{2|{{{1}}}}}}]]'''</includeonly><noinclude>
  
 
For example:  
 
For example:  
Line 6: Line 6:
  
 
gives you: {{monsterlink|Adder}}
 
gives you: {{monsterlink|Adder}}
 +
 +
You can specify the link text as the 2nd parameter (optional). For  example:
 +
 +
    <nowiki>{{monsterlink|Vampire (monster)|Vampire}}</nowiki>
 +
 +
gives you: {{monsterlink|Vampire (monster)|Vampire}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 12:54, 22 October 2024


For example:

   {{monsterlink|Adder}}

gives you: S Adder.png Adder

You can specify the link text as the 2nd parameter (optional). For example:

   {{monsterlink|Vampire (monster)|Vampire}}

gives you: V Vampire (monster).png Vampire