User:Blackice/sandbox

From Guild Wars 2 Wiki
Jump to navigationJump to search

Hi. This is my sandbox. Here's some sand: Burning Ember.pngPile of Silky Sand

Semantic Mediawiki playground[edit]

Playing with the tree format[edit]

Documentation: Help:Tree format

Listing all festival merchants in Tyria[edit]

{{#ask: [[Tyria]]
  OR [[Has service::Festival Merchant]]
  OR [[-Located in.Has service::Festival Merchant]]
  OR [[-Located in.-Located in.Has service::Festival Merchant]]
  OR [[-Located in.-Located in.-Located in.Has service::Festival Merchant]]
  | format = tree
  | parent = Located in
}}



Listing all Fiery Greatsword skills[edit]

{{#ask: [[Fiery Greatsword]] OR [[Is for weapon::Fiery Greatsword]]
  | format = tree
  | parent = Is for weapon
  | link = none
  | template = skill icon
}}



That doesn't look so good. :( Probably because the Fiery Greatsword isn't a skill.

Listing events starting near a point of interest[edit]

{{#vardefine: dist | 160 }}
{{#vardefine: x | {{#show: Temple of Kormir | ?Has x coordinate# }} }}
{{#vardefine: y | {{#show: Temple of Kormir | ?Has y coordinate# }} }}

{{#ask: 
 [[Has context::Event]]
 [[Has x coordinate::<{{#expr: {{#var: x}} + {{#var: dist}} }}]]
 [[Has x coordinate::>{{#expr: {{#var: x}} - {{#var: dist}} }}]]
 [[Has y coordinate::<{{#expr: {{#var: y}} + {{#var: dist}} }}]]
 [[Has y coordinate::>{{#expr: {{#var: y}} - {{#var: dist}} }}]]
 | format = ul
}}

Result:

Creating links to Special:Ask[edit]

Not sure what's the best way to do this, but the following works for me:

{{#ask:
 [[Has context::NPC]]
 [[Has race::Human]]
 [[Has appearance::+]]
 [[Category:Path of Fire content]]
 | ?Has appearance
 | format = gallery
 | imageproperty = Has appearance
 | limit = 0
 | searchlabel = gallery link
}}

Result: gallery link