Template:Item table/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>OmegaK2
(Created page with "{{documentation subpage}} {{lua|Module:Item2}} __TOC__ ==Overview== This template creates an advanced list for items and is intended to be used in SMW queries. ===Speci...")
 
>OmegaK2
No edit summary
Line 71: Line 71:
| the complete stat text of the item (both implicit and explicit [[stat]]s derived from [[mod]]s) in a single column
| the complete stat text of the item (both implicit and explicit [[stat]]s derived from [[mod]]s) in a single column
|}
|}
==Query Templates==
There are also several query templates based on this template in order to use query duplication:
* [[Template:SMW currency query]]
* [[Template:SMW base weapon query]]
* [[Template:SMW base armour query]]


<includeonly>
<includeonly>

Revision as of 18:43, 14 August 2016

This subpage provides documentation for Template:Item table.

Lua logo

This template uses the following modules:

Overview

This template creates an advanced list for items and is intended to be used in SMW queries.

Specialized Templates

There are also specialized sub templates for the following item types available:

Usage

In SMW ask queries, specify the following:

 |?Has name
 |?Has inventory icon
 |?Has infobox HTML
 |link=none
 |format=template
 |introtemplate=SMW item table/intro
 |template=SMW item table
 |outrotemplate=SMW item table/outro
 |named args=yes

Each of the name, inventory icon or HTML parameters can be omitted to build a shorted listed. For instance:

 |?Has name
 |link=none
 |format=template
 |template=SMW item table
 |named args=yes

Will only produce a link against the pages without the infobox and icon.

Parameters

Template:Userparam info

All these parameters are binary, so as long you specify something like icon=yes it will show up.

It is also required to specify the applicable properties in the query or it will show up as N/A

Parameter Corresponding
Properties
Description
level Property:Has level requirement the level requirement of the item
str Property:Has strength percentage the strength requirement of the item
int Property:Has intelligence percentage the intelligence requirement of the item
dex Property:Has dexterity percentage the dexterity requirement of the item
stat Property:Has stat text the complete stat text of the item (both implicit and explicit stats derived from mods) in a single column

Query Templates

There are also several query templates based on this template in order to use query duplication: