Ir para o conteúdo

Predefinição:Character query/doc

De DropWiki PoE 2
Revisão de 23h04min de 29 de janeiro de 2025 por 2804:7f0:b342:7285:2d1e:1c01:abfd:fada (discussão) (Criou página com '{{Documentation subpage}} ==Overview== This template is intended to query a single value for a stat from the Character page. Essentially, this is a shortcut for: <pre>{{#cargo_query: |tables = generic_stats |fields = CONCAT(value) |where = name="Character" AND id = "{{{stat|{{{1}}}}}}" |no html }}</pre> ==Parameters== {| class="wikitable sortable" ! Parameter ! Type ! Description ! Optional |- | stat | str | The stat_id to query for | {{no}} |} ==Example=...')
(dif) ← Edição anterior | Revisão atual (dif) | Versão posterior → (dif)

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 Não

Example

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

Yields:

Erro: a tabela generic_stats não foi encontrada.