Template:Skill link/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>Illviljan
mNo edit summary
>Vinifera7
mNo edit summary
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{documentation subpage}}
{{Documentation subpage}}
 
{{Lua|Module:Skill link}}
{{Template shortcut|sl}}


{{lua|Module:Skill link}}
<!-- {{template shortcut|sl}} -->
Query based skill link. Use this to link skills from [[Template:Skill]]
Query based skill link. Use this to link skills from [[Template:Skill]]


Line 11: Line 12:


==Parameters==
==Parameters==
===Page selection===
====Page search====
One of these is required. Do not specify more than one.
One of these is required. Do not specify more than one.


Line 20: Line 24:
| id
| id
| str
| str
| Id of the skill
| Id of the skill to link against
<!-- |-
| page
| str
| Name of the wiki page 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.
 
{| class="wikitable sortable"
! Parameter
! Value
! Description
|-
|-
| name
| name
| str
| str
| Name of the skill
| 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).
<!-- |-
| html
| str
| HTML to use for the itembox.
May also be used to hide the skill box entirely. -->
|-
| icon
| str
| File to use for the inline icon link.
|-
| skip_query
| boolean
| Skip querying for the skill.
|}
|}


Line 31: Line 69:
===Basic Usage===
===Basic Usage===


<pre>
{{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}}
</pre>


<pre>{{Skill link|id=IcestormUniqueStaff12}}, {{Skill link|name=Icestorm}}</pre>
Yields:
 
{{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}}
 
<pre>
{{Skill link
|Icestorm
|Icestorms
|large=True
}}
</pre>


Yields:
Yields:


{{Skill link|id=IcestormUniqueStaff12}}, {{Skill link|name=Icestorm}}
{{Skill link
|Icestorm
|Icestorms
|large=True
}}


 
{{Documentation categories|
<includeonly>
<!-- Categories and interwikis go here. -->
[[Category:Link formatting templates]]
[[Category:Query templates]]
[[Category:Query templates]]
[[Category:Skill templates]]
[[Category:Skill templates]]
 
}}
</includeonly>

Latest revision as of 07:46, 5 December 2020

This subpage provides documentation for Template:Skill link.

Lua logo

This template uses the following modules:

Shortcut

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, Icestorm, Icestorm, Icestorm

{{Skill link
|Icestorm
|Icestorms
|large=True
}}

Yields:

Icestorms