Template:Skill link: Difference between revisions
>OmegaK2 (Switching to Module:Item link.) |
>OmegaK2 m (Protected "Template:Sl": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
Revision as of 00:38, 5 September 2017
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:
Module Error: No results found for item using search term "item_name = Icestorm", Lua error in Module:Item_util at line 39: No item search term specified. Use metadata_id, page, item_name_exact or item_name., Lua error in Module:Item_util at line 39: No item search term specified. Use metadata_id, page, item_name_exact or item_name., Icestorm
{{Skill link |Icestorm |Icestorms |large=True }}
Yields:
Module Error: No results found for item using search term "item_name = Icestorm"
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.