Difference between revisions of "Template:Specialty"

From Hattrick
Jump to navigationJump to search
m
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{#switch: {{{1}}}
 
{{#switch: {{{1}}}
  | h|head|H          = [[image:Spec5Head.png|13px|link=Head icon]]{{#if:{{{hideName|}}}|| [[Head]]}}
+
  | h|head|H          = [[image:Spec5Head.png|13px|link=Head icon]]{{#if:{{{hideName|}}}|| {{#if:{{{nolink|}}}|Head|[[Head]]}}}}
  | p|powerful|P      = [[image:Spec3Power.png|13px|link=Powerful icon]]{{#if:{{{hideName|}}}|| [[Powerful]]}}
+
  | p|powerful|P      = [[image:Spec3Power.png|13px|link=Powerful icon]]{{#if:{{{hideName|}}}|| {{#if:{{{nolink|}}}|Powerful|[[Powerful]]}}}}
  | q|quick|Q        = [[image:Spec2Quick.png|13px|link=Quick icon]]{{#if:{{{hideName|}}}|| [[Quick]]}}
+
  | q|quick|Q        = [[image:Spec2Quick.png|13px|link=Quick icon]]{{#if:{{{hideName|}}}|| {{#if:{{{nolink|}}}|Quick|[[Quick]]}}}}
  | r|resilient|R    = [[image:Spec6Regainer.png|13px|link=Resilient icon]]{{#if:{{{hideName|}}}|| [[Resilient]]}}
+
  | r|resilient|R    = [[image:Spec6Regainer.png|13px|link=Resilient icon]]{{#if:{{{hideName|}}}|| {{#if:{{{nolink|}}}|Resilient|[[Resilient]]}}}}
  | s|support|S      = [[image:Spec7support.png|13px|link=Support icon]]{{#if:{{{hideName|}}}|| [[Support]]}}
+
  | s|support|S      = [[image:Spec7support.png|13px|link=Support icon]]{{#if:{{{hideName|}}}|| {{#if:{{{nolink|}}}|Support|[[Support]]}}}}
  | t|technical|T    = [[image:Spec1Technic.png|13px|link=Technical icon]]{{#if:{{{hideName|}}}|| [[Technical]]}}
+
  | t|technical|T    = [[image:Spec1Technic.png|13px|link=Technical icon]]{{#if:{{{hideName|}}}|| {{#if:{{{nolink|}}}|Technical|[[Technical]]}}}}
  | u|unpredictable|U = [[image:Spec4Unpred.png|13px|link=Unpredictable icon]]{{#if:{{{hideName|}}}|| [[Unpredictable]]}}
+
  | u|unpredictable|U = [[image:Spec4Unpred.png|13px|link=Unpredictable icon]]{{#if:{{{hideName|}}}|| {{#if:{{{nolink|}}}|Unpredictable|[[Unpredictable]]}}}}
 
  | #default        = None
 
  | #default        = None
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
[[Category:Player templates]]</noinclude>
 
[[Category:Player templates]]</noinclude>

Latest revision as of 19:24, 26 November 2020

None

[edit] Template documentation

Usage

This template displays player's specialty

{{Specialty|code,name|parameter}}
Parameter value Description
first parameter Use the below specialty value
nolink=true No link to specialty page
hideName=true Hide specialty name
Code,Name Display
h, head Spec5Head.png Head
p, powerful Spec3Power.png Powerful
q, quick Spec2Quick.png Quick
r, resilient Spec6Regainer.png Resilient
s, support Spec7support.png Support
t, technical Spec1Technic.png Technical
u, unpredictable Spec4Unpred.png Unpredictable

See also