Template:Query stat related skill gems: Difference between revisions
Jump to navigation
Jump to search
>OmegaK2 No edit summary |
>OmegaK2 No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{SMW skill gem query | <includeonly>{{SMW skill gem query | ||
|conditions={{#ifeq: {{{type|active}}}| active | [[Has item class::Active Skill Gems]] | [[Has item class::Support Skill Gems]]}} [[Has subobject.Has {{#if: {{{quality}}}|quality |}}stat id::{{{stat_id_query|+}}}]] {{{conditions|}}} | |conditions={{#ifeq: {{{type|active}}}| active | [[Has item class::Active Skill Gems]] | [[Has item class::Support Skill Gems]]}} [[Has subobject.Has {{#if: {{{quality|}}}|quality |}}stat id::{{{stat_id_query|+}}}]] {{{conditions|}}} | ||
|intro={{#ifeq: {{{type|active}}}| active |[[Active skill gem]]|[[Support skill gem]]}}s that have {{#if: {{{quality}}}|quality |}}[[stat]]s related to [[{{{stat_page}}}]]. | |intro={{#ifeq: {{{type|active}}}| active |[[Active skill gem]]|[[Support skill gem]]}}s that have {{#if: {{{quality|}}}|quality |}}[[stat]]s related to [[{{{stat_page}}}]]. | ||
|default=Currently, there are no {{#ifeq: {{{type|active}}}| active |[[active skill gem]]|[[support skill gem]]}}s that have {{#if: {{{quality}}}|quality |}}[[stat]]s related to [[{{{stat_page}}}]]. | |default=Currently, there are no {{#ifeq: {{{type|active}}}| active |[[active skill gem]]|[[support skill gem]]}}s that have {{#if: {{{quality|}}}|quality |}}[[stat]]s related to [[{{{stat_page}}}]]. | ||
}}</includeonly><noinclude>{{documentation}}</noinclude> | }}</includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 15:48, 30 August 2016
Overview
This template will perform a query based on Template:Item table with some fields already filled out based on the parameters.
Sub templates
- Template:Query stat related skill gems/page to create entire wiki pages in regards to stat related queries
Parameters
Parameter | Description | Optional |
---|---|---|
type | Type of the stat/gem to query for.
Can be either |
✗
|
stat_id_query | Id(s) to query for. This is the portion inside the " " in the Cargo where clause.
|
✗
|
where | Can be specified alternatively to stat_id_query to provide your own where clause (i.e. for multiple stat ids) | ✓
|
stat_page | Wiki page to link against in the intro and default descriptions | ✗
|
quality | If set, perform the query for quality stats instead of regular stats | ✓
|
Examples
{{Query stat related skill gems |type=active |stat_id_query=%attack_speed% |stat_page=attack speed |quality=1 }}
yields:
Template:SMW skill gem query ru:Шаблон:Query stat related skill gems
The above documentation is transcluded from Template:Query stat related skill gems/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.