Difference between revisions of "Template:Monsterlink"

From CrawlWiki
Jump to: navigation, search
(trying out a monster link template that would make lists with pictures easier)
 
(add the 2nd parameter, so you can use a custom link text)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Image:{{{1|(monster)}}}.png]] '''[[{{{1|monster}}}]]'''
+
<includeonly>{{Glyph|{{{1|(monster)}}}}} [[Image:{{{1|(monster)}}}.png]] '''[[{{{1|monster}}}|{{{2|{{{1}}}}}}]]'''</includeonly><noinclude>
  
 +
For example:
  
<noinclude>
+
    <nowiki>{{monsterlink|Adder}}</nowiki>
  
For example: {{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