Template:Character query: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>OmegaK2
(Created page with "<includeonly>{{#ask: -Has subobject::Character [[Has stat id::{{{stat}}}]] |?Has stat value#= |mainlabel=- |limit=1 }}</includeonly><noinclude> {{documentation}} <...")
 
>Illviljan
mNo edit summary
Line 1: Line 1:
<includeonly>{{#ask:  
<includeonly>{{#cargo_query:
[[-Has subobject::Character]]
|tables = generic_stats
  [[Has stat id::{{{stat}}}]]
|fields = stat_text
|?Has stat value#=  
|where = name="Character"
|mainlabel=-
  AND id = "{{{stat|{{{1}}}}}}"
|limit=1
|format = ul
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 17:31, 13 January 2018

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

Example

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

Yields:

  • +20% to Maximum total Life Recovery per second from Leech