User:Mtew/Sandbox/templates/Skill infobox

From Guild Wars 2 Wiki
Jump to navigationJump to search

<includeonly>{| class="infobox skill" ! colspan="2" class="title" | {{{name|{{#titleparts:{{PAGENAME}}||-1}}}}} |- | colspan="2" class="image" | {{{icon|[[File:{{{name|{{#titleparts:{{PAGENAME}}||-1}}}}}.jpg]]}}} |- ! [[Race]] | {{ #if: {{{race|}}} | [[{{ucfirst:{{lookup|PR noun|{{{race}}}|{{{race}}}}}}}]] | All }} |- {{ #if: {{{profession|}}} | ! [[Profession]] {{!}} [[{{ucfirst:{{lookup|prof noun|{{{profession}}}|{{{profession}}}}}}}]] {{!}}- }} {{ #if: {{{weapon|}}} | ! [[Weapon]] {{!}} [[{{{weapon}}}]] {{!}}- }} {{ #if: {{{type|}}} | ! [[Spell type|Type]] {{!}} [[{{{type}}}]] {{!}}- }} {{ifexists|File:{{#titleparts:{{{name|{{PAGENAME}}}}}||-1}} animation.gif| ! Animation {{!}} [[:File:{{#titleparts:{{{name|{{PAGENAME}}}}}||-1}} animation.gif|Click to view]] {{!}}- }} |} {{ #if: {{{description|}}} | {{Quotation|game|{{{description|''No description available.''}}} }} }}</includeonly><noinclude> == Description == <pre> {{Skill infobox | name = | icon = | race = | profession = | weapon = | type = | description = }} </pre> This infobox is used on skill articles. '''Note:''' Currently the infobox does not perform internal checks or auto-categorization. All skills are categorized into [[:Category:Skills]] until there is more information available on how skills can be separated in Guild Wars 2. As such all parameters are completely optional as of now. === Parameters === ; name : Optional. Skill name. Defaults to the page name. ; icon : Optional. Skill icon link. Defaults to <code>[[File:<name>.jpg]]</code>. ; race : Optional. The race this skill is linked to. ; profession : Optional. The profession this skill is linked to. ; weapon : Optional. The weapon type this skill is linked to. ; type : Currently optional. The skill type. ; description : Currently optional. The in-game description. == Examples == <pre>{{ {{FULLPAGENAME}} }}{{ Skill infobox }} {{clear}}{{ {{FULLPAGENAME}} | name = sample skill }}{{ Skill infobox | name = sample skill }}</pre> {{clear}}<pre>{{ {{FULLPAGENAME}} | icon = sample icon }}{{ Skill infobox | icon = sample icon }}</pre> {{clear}}<pre>{{ {{FULLPAGENAME}} | race = Asura }{{ Skill infobox | race = Asura }}</pre> {{clear}}<pre>{{ {{FULLPAGENAME}} | profession = Elementalist }}{{ Skill infobox | profession = Elementalist }}</pre> {{clear}}<pre>{{ {{FULLPAGENAME}} | weapon = Sword }}{{ Skill infobox | weapon = Sword }}</pre> {{clear}}<pre>{{ {{FULLPAGENAME}} | type = Glyph }}{{ Skill infobox | type = Glyph }}</pre> {{clear}}<pre>{{ {{FULLPAGENAME}} | description = sample description }}{{ Skill infobox | description = sample description }}</pre> {{clear}}<pre>{{{ {{FULLPAGENAME}} | name = sample skill | icon = sample icon | race = Asura | profession = Elementalist | weapon = Sword | type = Glyph | description = sample description }}{ Skill infobox | name = sample skill | icon = sample icon | race = Asura | profession = Elementalist | weapon = Sword | type = Glyph | description = sample description }}</pre> {{clear}}<pre>{{ {{FULLPAGENAME}} | name = sample skill using abbreviations | icon = sample icon | race = a | profession = e | weapon = Sword | type = Glyph | description = sample using abbreviations description }}{{ Skill infobox | name = sample skill using abbreviations | icon = sample icon | race = a | profession = e | weapon = Sword | type = Glyph | description = sample using abbreviations description }}</pre> </noinclude>