Template:Trainedskill

From LSWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 11:01, 22 April 2016 (edit)
Valere (Talk | contribs)

← Previous diff
Current revision (02:55, 30 November 2017) (edit)
Sukie (Talk | contribs)
(manually added template category whee)
 
Line 1: Line 1:
 +<noinclude>
== Skill Template for Skill Trainers == == Skill Template for Skill Trainers ==
;Description ;Description
-:Adds a link to the skill and the skill trainer category. May eventually implement section transclusion hooks if LSWiki gets the ability.+*Current Functions:
 +**Adds a lower-case link to the skill in the traditional 'quoted from the game' style.
 +**Displays any notes or limitations next to the skill link.
 +**Adds 'Category: <Skillname> Trainer' to the page.
 +*Future Ideas:
 +**Add section definitions to allow individual sections to be pulled into other pages. LSWiki cannot currently do this, but it would allow things like displaying skill limitations for a trainer on the skill's page.
 +**Maybe add special handling for languages -- initial capitalization and such. LSWiki also cannot currently do this afaict.
-;Syntax+;Looks Like
-:<nowiki>{{trainedskill|Capitalized Skill Name|training limitations if any}}</nowiki>+:This -> <nowiki>{{trainedskill|Abjuration|nothing to see here}}</nowiki>
 +:Creates this:
 + [[Abjuration|abjuration]] nothing to see here
 +:As well as adding Category: Abjuration Trainer to the page.
 +;Syntax
 +:<nowiki>{{trainedskill|Capitalized Skill Name|(optional) notes or limitations}}</nowiki>
 +[[Category:Templates]]
</noinclude> </noinclude>
-<includeonly>[[{{lc: {{{1}}}}}]] {{{2}}} [[Category:{{{1}}} Trainer]]</includeonly>+<includeonly>
 +[[Category:{{{1}}} Trainer]]
 + [[{{{1}}}|{{lc: {{{1}}}}}]] {{{2|}}}
 +</includeonly>

Current revision

Skill Template for Skill Trainers

Description
  • Current Functions:
    • Adds a lower-case link to the skill in the traditional 'quoted from the game' style.
    • Displays any notes or limitations next to the skill link.
    • Adds 'Category: <Skillname> Trainer' to the page.
  • Future Ideas:
    • Add section definitions to allow individual sections to be pulled into other pages. LSWiki cannot currently do this, but it would allow things like displaying skill limitations for a trainer on the skill's page.
    • Maybe add special handling for languages -- initial capitalization and such. LSWiki also cannot currently do this afaict.
Looks Like
This -> {{trainedskill|Abjuration|nothing to see here}}
Creates this:
 abjuration nothing to see here
As well as adding Category: Abjuration Trainer to the page.
Syntax
{{trainedskill|Capitalized Skill Name|(optional) notes or limitations}}
Personal tools