Template:Character query: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>Illviljan
mNo edit summary
>Illviljan
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#cargo_query:
<includeonly>{{#cargo_query:
|tables = generic_stats
|tables = generic_stats
|fields = stat_text
|fields = CONCAT(value)
|where = name="Character"
|where = name="Character"
  AND id = "{{{stat|{{{1}}}}}}"
  AND id = "{{{stat|{{{1}}}}}}"
|format = ul
|no html
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 17:36, 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:

1200