User:FurloSK/SemanticTestQuery

From Pillars of Eternity Wiki
Jump to: navigation, search

This page shows some testing queries from annotated User:FurloSK/SemanticTestItem page.

MediaWiki Sources[edit | edit source]

Testing "Pages using duplicate arguments in template calls"[edit | edit source]

c
~ d

#show queries[edit | edit source]

  • The category of SemanticTestItem is {{#show: User:FurloSK/SemanticTestItem | ?Category }}
  • The has value of SemanticTestItem is {{#show: User:FurloSK/SemanticTestItem | ?Has value }}

#ask queries[edit | edit source]

Fine items[edit | edit source]

{{#ask:

 [[Has enchantment::~*Fine*]]
 |? Has icon
 |#
 |? Has item type
 |? Has enchantment

}}

Soulbound items[edit | edit source]

{{#ask:

 |? Has icon
 |#
 |? Has item type
 |? Has soulbound requirements level
 |? Has soulbound enchantments level
 |order=,

}}


Items that appeared in expansion[edit | edit source]

Shown in table (using template User:FurloSK/SemanticTestMultipleValuesTemplate) with subquerying:

{{#ask: first appeared in::+
? first appeared in # format=template sep=__SEPARATOR__ template=User:FurloSK/SemanticTestMultipleValuesTemplate

}}

Shown directly: {{#ask:

first appeared in::+
|? first appeared in

}}

Value counts[edit | edit source]

Showing counting property 1: {{#ask: has name::SemanticTestItem |? counting property 1= |sep=/ |mainlabel=- |format=list |link=none }}

  • counting property 1 value #2: {{#ask: has name::SemanticTestItem |? counting property 1= |sep=/ |mainlabel=- |format=list |link=none }}
  • counting property 1 values count < 2: no
  • counting property 1 values count < 4: no
  • counting property 1 has only one value whose value is "value1": no-count

Showing counting property 2: {{#ask: has name::SemanticTestItem |? counting property 2= |sep=/ |mainlabel=- |format=list |link=none }}

  • counting property 2 has only one value whose value is "Incredible value!": no-count

Weapons that DOES contain Fine enchantment[edit | edit source]

{{#ask:

Has enchantment::~*Fine*
|? Has enchantment

}}

Weapons that does NOT contain Fine enchantment[edit | edit source]

{{#ask:

[[Has name::!~ Has enchantment::~*Fine*]]
|? Has enchantment

}}

Weapons that does ONLY contain Fine enchantment[edit | edit source]

{{#ask:

Has enchantment::~*Fine*
[[Has name::!~ Has enchantment::!~*Fine*]]
|? Has enchantment

}}

Other tests[edit | edit source]

{{#ask:

User:FurloSK/SemanticTestProperty::~*Fine*
[[User:FurloSK/SemanticTestProperty::!~User:FurloSK/SemanticTestProperty::!~*Fine*]]
|? has name
|? User:FurloSK/SemanticTestProperty

}} {{#ask:

User:FurloSK/SemanticTestProperty::~*Fine*
[[User:FurloSK/SemanticTestProperty::~!User:FurloSK/SemanticTestProperty::!~*Fine*]]
|? has name
|? User:FurloSK/SemanticTestProperty

}}

Others[edit | edit source]

All items with value>200 and Fine enhancement.

{{#ask:

[[has value::>200]]
[[User:FurloSK/SemanticTestProperty::~Fine]]
|?has value=value
|?User:FurloSK/SemanticTestProperty=enhancements
|? mysubobject
|? mysubobject.subenhancementname
|? mysubobject#subenhancementname
|? enhancementname
|? subenhancementname
|format=ul
|headers=plain
|intro=Shown in ul list:

}}

Shown in table (using template User:FurloSK/SemanticTestTemplate)

Image Name Enhancements Value Location

{{#ask:

[[has value::>200]]
[[User:FurloSK/SemanticTestProperty::~Fine]]
?has icon # ?has name ?User:FurloSK/SemanticTestProperty ?has value # ?is acquired # format=template template=User:FurloSK/SemanticTestTemplate headers=no mainlabel=- link=all sep=
  • }}