Difference between revisions of "Template:Monsterlink"

From CrawlWiki
Jump to: navigation, search
m (Made name bold)
(add the 2nd parameter, so you can use a custom link text)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Glyph|{{{1|(monster)}}}}} [[Image:{{{1|(monster)}}}.png]] '''[[{{{1|monster}}}]]'''
+
<includeonly>{{Glyph|{{{1|(monster)}}}}} [[Image:{{{1|(monster)}}}.png]] '''[[{{{1|monster}}}|{{{2|{{{1}}}}}}]]'''</includeonly><noinclude>
<noinclude>
 
  
 
For example:  
 
For example:  
Line 7: 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