Template:Character query

From Path of Exile 2 Wiki
Revision as of 19:46, 23 November 2015 by >OmegaK2 (Created page with "<includeonly>{{#ask: -Has subobject::Character [[Has stat id::{{{stat}}}]] |?Has stat value#= |mainlabel=- |limit=1 }}</includeonly><noinclude> {{documentation}} <...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template documentation[view] [edit] [history] [purge]


Overview

This template is intended to query a single value for a stat from the Character page.

Essentially, this is a shortcut for:

{{#cargo_query:
|tables = generic_stats
|fields = CONCAT(value)
|where = name="Character"
 AND id = "{{{stat|{{{1}}}}}}"
|no html
}}

Parameters

Parameter Type Description Optional
stat str The stat_id to query for No

Example

{{Character query
 |stat=maximum_life_leech_rate_%_per_minute
}}

Yields:

{{#ask:

-Has subobject::Character
Has stat id::maximum_life_leech_rate_%_per_minute
|?Has stat value#= 
|mainlabel=- 
|limit=1

}}