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 separate text parameter for plural cases)
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Image:{{{1|(monster)}}}.png]] '''[[{{{1|monster}}}]]'''
+
<includeonly>{{Glyph|{{{2|{{{1|(monster)}}}}}}}} [[Image:{{{1|(monster)}}}.png]] '''[[{{{1|monster}}}|{{{text|{{{2|{{{1}}}}}}}}}]]'''</includeonly><noinclude>
  
 +
For example:
  
<noinclude>
+
    <nowiki>{{monsterlink|Adder}}</nowiki>
  
For example: {{monsterlink | adder}}
+
gives you: {{monsterlink|Adder}}
 +
 
 +
If name of the page about monster is different from the monster name for example it has ''(monster)'' in parentheses at the end, the following syntax could be used:
 +
 
 +
    <nowiki>{{monsterlink|Vampire (monster)|Vampire}}</nowiki>
 +
 
 +
results in: {{monsterlink|Vampire (monster)|Vampire}}
 +
 
 +
If you only wish to have different text, for example for plural form of a monster's name, use 'text' parameter:
 +
 
 +
    <nowiki>{{monsterlink|Yak|text=Yaks}}</nowiki>
 +
 
 +
results in: {{monsterlink|Yak|text=Yaks}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 21:45, 16 June 2026


For example:

   {{monsterlink|Adder}}

gives you: S Adder.png Adder

If name of the page about monster is different from the monster name for example it has (monster) in parentheses at the end, the following syntax could be used:

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

results in: V Vampire (monster).png Vampire

If you only wish to have different text, for example for plural form of a monster's name, use 'text' parameter:

   {{monsterlink|Yak|text=Yaks}}

results in: Y Yak.png Yaks