Difference between revisions of "Template:T"

From Tales of Maj'Eyal
Jump to: navigation, search
(Fixed typo)
m (Reverted edits by Ibanix (talk) to last revision by Vyn)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><onlyinclude>[[{{lc:{{{1}}}}} (talent)|{{{1}}}]]</onlyinclude></includeonly>
+
<includeonly><onlyinclude><span class="tooltip_link" style="max-width:500px;">[[{{lc:{{#replace:{{{1}}}|/|&#32;}}}} (talent)|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]</span></onlyinclude></includeonly>
  
 
[[Category:Templates]]
 
[[Category:Templates]]
  
This template is designed to reduce typing when trying to create a link to a talent. It will take the first parameter you enter, change all the characters into lower case letter, append ''(talent)'' to the end of it, then create a link to that talent while preserving the displayed name as you have typed it.
+
This template is designed to reduce typing when trying to create a link to a talent. Simply enter the talent name as the first parameter, and the template will change all letters into lower case, append ''(talent)'' to the end of it, then create a link to that talent while preserving the displayed name as you have typed it.
 +
 
 +
Slashes in the talent name will be replaced with spaces for the underlying link. Tooltip popups will be added to the created link as well.
  
 
If you enter
 
If you enter
Line 12: Line 14:
  
 
  {{t|Weapons Mastery}}
 
  {{t|Weapons Mastery}}
 +
 +
An optional parameter 2 can be entered to overwrite the displayed name of the link. If you enter, for example
 +
 +
<pre>{{t|Weapons Mastery|ABC}}</pre>
 +
 +
then you will obtain
 +
 +
{{t|Weapons Mastery|ABC}}

Latest revision as of 03:39, 1 March 2016


This template is designed to reduce typing when trying to create a link to a talent. Simply enter the talent name as the first parameter, and the template will change all letters into lower case, append (talent) to the end of it, then create a link to that talent while preserving the displayed name as you have typed it.

Slashes in the talent name will be replaced with spaces for the underlying link. Tooltip popups will be added to the created link as well.

If you enter

{{t|Weapons Mastery}}

then you will obtain

Weapons Mastery

An optional parameter 2 can be entered to overwrite the displayed name of the link. If you enter, for example

{{t|Weapons Mastery|ABC}}

then you will obtain

ABC