Template:Character query: Difference between revisions
Jump to navigation
Jump to search
>Illviljan mNo edit summary |
>Illviljan mNo edit summary |
||
| Line 4: | Line 4: | ||
|where = name="Character" | |where = name="Character" | ||
AND id = "{{{stat|{{{1}}}}}}" | AND id = "{{{stat|{{{1}}}}}}" | ||
|no html | |no html | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 17:35, 13 January 2018
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:
Error: Table generic_stats not found.
The above documentation is transcluded from Template:Character query/doc.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.