Difference between revisions of "Template:T"
From Tales of Maj'Eyal
(Added tooltip popups to links) |
(Added parameter 2 to overwrite displayed name of link) |
||
| Line 1: | Line 1: | ||
| − | <includeonly><onlyinclude><span class="tooltip_link" style="max-width:500px;">[[{{lc:{{{1}}}}} (talent)|{{{1}}}]]</span></onlyinclude></includeonly> | + | <includeonly><onlyinclude><span class="tooltip_link" style="max-width:500px;">[[{{lc:{{{1}}}}} (talent)|{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}]]</span></onlyinclude></includeonly> |
[[Category:Templates]] | [[Category:Templates]] | ||
| Line 12: | Line 12: | ||
{{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}} | ||
Revision as of 23:58, 20 August 2014
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. Tooltip popups are automatically 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