Template:Skill link: Difference between revisions
Jump to navigation
Jump to search
(Attempting overhaul. Getting rid of icon only feature since it is pretty much pointless and would make the template overly-complicated.) |
No edit summary |
||
Line 25: | Line 25: | ||
| Searing Bond | | Searing Bond | ||
= <span class="gem-link str-skill">[[{{#switch: {{{1}}} | = <span class="gem-link str-skill">[[{{#switch: {{{1}}} | ||
| #default = {{{1} | | #default = {{{1}}}{{#if: {{{2|}}} | {{!}}{{{2}}} }} | ||
}}]]</span> | |||
| Arctic Armour | | Arctic Armour | ||
| Bear Trap | | Bear Trap | ||
Line 57: | Line 57: | ||
| Whirling Blades | | Whirling Blades | ||
= <span class="gem-link dex-skill">[[{{#switch: {{{1}}} | = <span class="gem-link dex-skill">[[{{#switch: {{{1}}} | ||
| #default = {{{1} | | #default = {{{1}}}{{#if: {{{2|}}} | {{!}}{{{2}}} }} | ||
}}]]</span> | |||
| Arc | | Arc | ||
| Arctic Breath | | Arctic Breath | ||
Line 92: | Line 92: | ||
| Flammability | | Flammability | ||
= <span class="gem-link int-skill">[[{{#switch: {{{1}}} | = <span class="gem-link int-skill">[[{{#switch: {{{1}}} | ||
| #default = {{{1} | | #default = {{{1}}}{{#if: {{{2|}}} | {{!}}{{{2}}} }} | ||
}}]]</span> | |||
| Added Fire Damage | | Added Fire Damage | ||
| Blood Magic | | Blood Magic | ||
Line 119: | Line 119: | ||
| Multistrike | | Multistrike | ||
= <span class="gem-link str-suppt">[[{{#switch: {{{1}}} | = <span class="gem-link str-suppt">[[{{#switch: {{{1}}} | ||
| Blood Magic = Blood Magic (Support Gem) | | Blood Magic = Blood Magic (Support Gem)|{{{2|{{{1}}}}}} | ||
| Iron Grip = Iron Grip (Support Gem) | | Iron Grip = Iron Grip (Support Gem)|{{{2|{{{1}}}}}} | ||
| Knockback = Knockback (Support Gem) | | Knockback = Knockback (Support Gem)|{{{2|{{{1}}}}}} | ||
| Stun = Stun (Support Gem) | | Stun = Stun (Support Gem)|{{{2|{{{1}}}}}} | ||
| #default = {{{1} | | #default = {{{1}}}{{#if: {{{2|}}} | {{!}}{{{2}}} }} | ||
}}]]</span> | |||
| Added Cold Damage | | Added Cold Damage | ||
| Additional Accuracy | | Additional Accuracy | ||
Line 143: | Line 143: | ||
| Trap | | Trap | ||
= <span class="gem-link dex-suppt">[[{{#switch: {{{1}}} | = <span class="gem-link dex-suppt">[[{{#switch: {{{1}}} | ||
| Point Blank = Point Blank (Support Gem) | | Point Blank = Point Blank (Support Gem)|{{{2|{{{1}}}}}} | ||
| #default = {{{1} | | #default = {{{1}}}{{#if: {{{2|}}} | {{!}}{{{2}}} }} | ||
}}]]</span> | |||
| Added Chaos Damage | | Added Chaos Damage | ||
| Added Lightning Damage | | Added Lightning Damage | ||
Line 163: | Line 163: | ||
| Power Charge on Critical | | Power Charge on Critical | ||
= <span class="gem-link dex-suppt">[[{{#switch: {{{1}}} | = <span class="gem-link dex-suppt">[[{{#switch: {{{1}}} | ||
| #default = {{{1} | | #default = {{{1}}}{{#if: {{{2|}}} | {{!}}{{{2}}} }} | ||
}}]]</span> | |||
| #default | | #default | ||
= <span class="gem-link gen-skill">[[{{#switch: {{{1}}} | = <span class="gem-link gen-skill">[[{{#switch: {{{1}}} | ||
| #default = {{{1} | | #default = {{{1}}}{{#if: {{{2|}}} | {{!}}{{{2}}} }} | ||
}}]]</span> | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Revision as of 14:43, 14 April 2013
Query based skill link. Use this to link skills from Template:Skill
Overview
Creates a link to a skill page.
Pages with broken skill links will be added to the maintenance category Category:Pages with broken skill links.
Parameters
Page selection
Page search
One of these is required. Do not specify more than one.
Parameter | Value | Description |
---|---|---|
id | str | Id of the skill to link against |
skill_name | str | Name of the skill to search for. This can pose a problem if there are multiple skills with the same name - in that case use id instead. |
Output overrides
All of these are optional and can be used to customize the item link.
Parameter | Value | Description |
---|---|---|
name | str | This parameter can be used to specify different link text than the skill name. This should be used mainly for grammatical purposes. If the link text is significantly different than the skill name, consider using a normal wikilink instead of this template. |
large | boolean | If set to true, instead of the small icon in front of the name, a large icon will be shown below the skill (suitable for tables). |
icon | str | File to use for the inline icon link. |
skip_query | boolean | Skip querying for the skill. |
Examples
Basic Usage
{{Skill link|Icestorm}}, {{Skill link|skill_name=Icestorm}}, {{Skill link|id=IcestormUniqueStaff12}}, {{Skill link |skip_query=true |page=Skill:IcestormUniqueStaff12 |name=Icestorm |icon=File:Icestorm skill icon.png}}
Yields:
Icestorm, [[{{{1}}}]], [[{{{1}}}]], [[{{{1}}}]]
{{Skill link |Icestorm |Icestorms |large=True }}
Yields:
[[Icestorm |Icestorms]]
The above documentation is transcluded from Template:Skill link/doc.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.