[dismiss]
The wiki is currently a work in progress. If you'd like to help out, please check the Community Portal and our getting started guide. Also, check out our sister project on poewiki.net.
Template:Passive skill link/doc: Difference between revisions
Jump to navigation
Jump to search
>OmegaK2 (Created page with "{{documentation subpage}} {{lua|Module:Passive skill}} ==Overview== This template creates links to passive skills based on performing an mediawikiwiki:Extension:Cargo/Q...") |
m (13 revisions imported) |
||
(12 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Documentation subpage}} | ||
{{ | |||
{{Lua|Module:Passive skill link}} | |||
{{Template shortcut|Psl}} | |||
==Overview== | ==Overview== | ||
Line 8: | Line 10: | ||
==Parameters== | ==Parameters== | ||
=== | ===Passive skill selection=== | ||
One of these is required. Do not specify more than one. | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! Parameter | ! Parameter | ||
Line 15: | Line 17: | ||
! Description | ! Description | ||
|- | |- | ||
| | | id | ||
| str | |||
| Id of the passive skill | |||
|- | |||
| passive_name | |||
| str | | str | ||
| Name of the passive skill | | Name of the passive skill | ||
|- | |- | ||
| | | page | ||
| str | |||
| Name of the wiki page to link against | |||
|- | |||
| q_where | |||
| str | | str | ||
| Id of the passive skill | | Id of the passive skill | ||
|} | |} | ||
=== | |||
===Output overrides=== | |||
All of these are optional and can be used to customize the passive skill link. | |||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
! Parameter | ! Parameter | ||
! Value | ! Value | ||
! Description | ! Description | ||
|- | |||
| name | |||
| str | |||
| This parameter can be used to specify different link text than the passive skill name. This should be used mainly for grammatical purposes. If the link text is significantly different to the passive 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 inventory icon will be shown below the passive skill (suitable for tables). | |||
|- | |- | ||
| format | | format | ||
Line 35: | Line 54: | ||
* tablerow: returns the image and stat text for use in a wikitable (2 cells). Will not work with HTML tables. | * tablerow: returns the image and stat text for use in a wikitable (2 cells). Will not work with HTML tables. | ||
* nil: default behavior | * nil: default behavior | ||
|{{ | |- | ||
| skip_query | |||
| boolean | |||
| Skip querying for the passive skill. | |||
|- | |||
| icon | |||
| str | |||
| File to use for the inline icon link. | |||
|- | |||
| html | |||
| str | |||
| HTML to use for the infobox. | |||
May also be used to hide the infobox entirely. | |||
|} | |||
==Examples== | |||
===Default=== | |||
<pre>{{passive skill link|Acrobatics}}</pre> | |||
yields: | |||
{{passive skill link|Acrobatics}} | |||
===tablerow=== | |||
<pre> | |||
{| class="wikitable" | |||
|- | |||
! Name | |||
! Stat text | |||
|- | |||
{{passive skill link|Acrobatics|format=tablerow}} | |||
|} | |||
</pre> | |||
yields: | |||
{| class="wikitable" | |||
|- | |||
! Name | |||
! Stat text | |||
|- | |||
{{passive skill link|Acrobatics|format=tablerow}} | |||
|} | |||
===Integer Id=== | |||
<pre> | |||
{| class="wikitable" | |||
|- | |||
! Name | |||
! Stat text | |||
|- | |||
{{passive skill link|q_where = passive_skills.int_id=54307|format=tablerow}} | |||
|} | |||
</pre> | |||
yields: | |||
{| class="wikitable" | |||
|- | |||
! Name | |||
! Stat text | |||
|- | |||
{{passive skill link|q_where = passive_skills.int_id=54307|format=tablerow}} | |||
|} | |} | ||
{{Documentation categories| | |||
<!-- | <!-- Categories and interwikis go here. --> | ||
[[Category:Query templates]] | [[Category:Query templates]] | ||
[[Category:Passive templates]] | [[Category:Passive templates]] | ||
}} |
Latest revision as of 06:49, 30 September 2024

This subpage provides documentation for Template:Passive skill link.
Overview
This template creates links to passive skills based on performing an cargo query.
Only one result will be returned at a time and if more then one are found an error will be shown.
Parameters
Passive skill selection
One of these is required. Do not specify more than one.
Parameter | Value | Description |
---|---|---|
id | str | Id of the passive skill |
passive_name | str | Name of the passive skill |
page | str | Name of the wiki page to link against |
q_where | str | Id of the passive skill |
Output overrides
All of these are optional and can be used to customize the passive skill link.
Parameter | Value | Description |
---|---|---|
name | str | This parameter can be used to specify different link text than the passive skill name. This should be used mainly for grammatical purposes. If the link text is significantly different to the passive 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 inventory icon will be shown below the passive skill (suitable for tables). |
format | str | Can be any of the following
|
skip_query | boolean | Skip querying for the passive skill. |
icon | str | File to use for the inline icon link. |
html | str | HTML to use for the infobox.
May also be used to hide the infobox entirely. |
Examples
Default
{{passive skill link|Acrobatics}}
yields: Lua error: Error: Table passive_skills not found..
tablerow
{| class="wikitable" |- ! Name ! Stat text |- {{passive skill link|Acrobatics|format=tablerow}} |}
yields:
Lua error: Error: Table passive_skills not found..Name | Stat text |
---|
Integer Id
{| class="wikitable" |- ! Name ! Stat text |- {{passive skill link|q_where = passive_skills.int_id=54307|format=tablerow}} |}
yields:
Lua error: Error: Table passive_skills not found..Name | Stat text |
---|