Template:Character query/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
>OmegaK2
>OmegaK2
No edit summary
Line 42: Line 42:
<includeonly>
<includeonly>
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:SMW query templates]]
[[Category:Query templates]]
</includeonly>
</includeonly>

Revision as of 13:39, 28 November 2020

This subpage provides documentation for Template:Character query.

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