Template talk:Combo skills table

From Guild Wars 2 Wiki
Jump to navigationJump to search

Here's an idea on handling weapons: First, set the list of weapons in a variable based on the input profession.

{{#vardefine:combo_weapons|{{#switch:{{{profession}}}
  | warrior = axe, mace, sword, greatsword, hammer, longbow, rifle, shield, warhorn, harpoon gun, spear
  | guardian = mace, scepter, sword, greatsword, hammer, staff, focus, shield, torch, spear, trident
...
}} }}

Then loop over that list to produce the weapon rows.

{{#arraymap:{{#var:combo_weapons}}|,|@@@|
! [[@@@#{{{profession}}}{{!}}@@@]]
{{!}}{{#ask:[[Is for profession::{{{profession}}}]][[Is for weapon::@@@]][[Has combo effect::Fire field]]|link=none|format=template|template=Skill icon|sep=<br>}}
{{!}}{{#ask:[[Is for profession::{{{profession}}}]][[Is for weapon::@@@]][[Has combo effect::Blast finisher]]|link=none|format=template|template=Skill icon|sep=<br>}}
{{!}}{{#ask:[[Is for profession::{{{profession}}}]][[Is for weapon::@@@]][[Has combo effect::Projectile finisher]]|link=none|format=template|template=Skill icon|sep=<br>}}
{{!}}{{#ask:[[Is for profession::{{{profession}}}]][[Is for weapon::@@@]][[Has combo effect::Leap finisher]]|link=none|format=template|template=Skill icon|sep=<br>}}
{{!}}{{#ask:[[Is for profession::{{{profession}}}]][[Is for weapon::@@@]][[Has combo effect::Whirl finisher]]|link=none|format=template|template=Skill icon|sep=<br>}}
{{!}}- class=line
}}

Dr Ishmael User Dr ishmael Diablo the chicken.png 01:53, 13 July 2014 (UTC)

Thanks. I haven't dealt with making a template in so long, and when I did it was mainly copying other stuff. So I'll try to figure out what this even means.
Also, do you know of a way to exclude results from a list? I think that's going to be needed for stuff like Ice Bow skills, maybe. Mora 02:02, 13 July 2014 (UTC)
Your current queries should be fine in terms of not selecting things like Ice Bow skills, because you're always querying for Property:Has skill context while those skills don't have that property set. —Dr Ishmael User Dr ishmael Diablo the chicken.png 02:24, 13 July 2014 (UTC)

There were a few skills that weren't transferred with the template:

I'm not sure how to include these skills. I'm also unsure how to remove historical skills from the template to take Duplicate off of the mesmer table. Mora 07:06, 13 July 2014 (UTC)

excluding historical skills was easy, did that with [[Is historical::N]]. Dunno about other problems, though possibly the infoboxes for the transform skills from Elixr X should include engineer. -Chieftain AlexUser Chieftain Alex sig.png 10:06, 13 July 2014 (UTC)
pets could be done with
{{{!}} {{STDT|ranger}}
! Slot
! Fields
! Blast finisher
! Projectile finisher
! Leap finisher
! Whirl finisher
{{#arraymap: Bear, Bird, Canine, Devourer, Drake, Feline, Fish, Jellyfish, Moa, Porcine, Spider |,|@@@|
{{!}}- class="line"
! [[@@@]]
{{!}}{{#ask:[[Is for pet.Has pet family::@@@]][[Is historical::N]][[Has combo effect::Dark field]]|link=none|format=template|template=Skill icon|outro= ([[Dark field|dark]])<br>|sep= ([[Dark field|dark]])<br>}}<!--
  -->{{#ask:[[Is for pet family::@@@]]        [[Is historical::N]][[Has combo effect::Dark field]]|link=none|format=template|template=Skill icon|outro= ([[Dark field|dark]])<br>|sep= ([[Dark field|dark]])<br>}}<!--
  -->{{#ask:[[Is for pet.Has pet family::@@@]][[Is historical::N]][[Has combo effect::Ethereal field]]|link=none|format=template|template=Skill icon|outro= ([[Ethereal field|ethereal]])<br>|sep= ([[Ethereal field|ethereal]])<br>}}<!--
  -->{{#ask:[[Is for pet family::@@@]]        [[Is historical::N]][[Has combo effect::Ethereal field]]|link=none|format=template|template=Skill icon|outro= ([[Ethereal field|ethereal]])<br>|sep= ([[Ethereal field|ethereal]])<br>}}<!--
  -->{{#ask:[[Is for pet.Has pet family::@@@]][[Is historical::N]][[Has combo effect::Fire field]]|link=none|format=template|template=Skill icon|outro= ([[Fire field|fire]])<br>|sep= ([[Fire field|fire]])<br>}}<!--
  -->{{#ask:[[Is for pet family::@@@]]        [[Is historical::N]][[Has combo effect::Fire field]]|link=none|format=template|template=Skill icon|outro= ([[Fire field|fire]])<br>|sep= ([[Fire field|fire]])<br>}}<!--
  -->{{#ask:[[Is for pet.Has pet family::@@@]][[Is historical::N]][[Has combo effect::Ice field]]|link=none|format=template|template=Skill icon|outro= ([[Ice field|ice]])<br>|sep= ([[Ice field|ice]])<br>}}<!--
  -->{{#ask:[[Is for pet family::@@@]]        [[Is historical::N]][[Has combo effect::Ice field]]|link=none|format=template|template=Skill icon|outro= ([[Ice field|ice]])<br>|sep= ([[Ice field|ice]])<br>}}<!--
  -->{{#ask:[[Is for pet.Has pet family::@@@]][[Is historical::N]][[Has combo effect::Light field]]|link=none|format=template|template=Skill icon|outro= ([[Light field|light]])<br>|sep= ([[Light field|light]])<br>}}<!--
  -->{{#ask:[[Is for pet family::@@@]]        [[Is historical::N]][[Has combo effect::Light field]]|link=none|format=template|template=Skill icon|outro= ([[Light field|light]])<br>|sep= ([[Light field|light]])<br>}}<!--
  -->{{#ask:[[Is for pet.Has pet family::@@@]][[Is historical::N]][[Has combo effect::Lightning field]]|link=none|format=template|template=Skill icon|outro= ([[Lightning field|lightning]])<br>|sep= ([[Lightning field|lightning]])<br>}}<!--
  -->{{#ask:[[Is for pet family::@@@]]        [[Is historical::N]][[Has combo effect::Lightning field]]|link=none|format=template|template=Skill icon|outro= ([[Lightning field|lightning]])<br>|sep= ([[Lightning field|lightning]])<br>}}<!--
  -->{{#ask:[[Is for pet.Has pet family::@@@]][[Is historical::N]][[Has combo effect::Poison field]]|link=none|format=template|template=Skill icon|outro= ([[Poison field|poison]])<br>|sep= ([[Poison field|poison]])<br>}}<!--
  -->{{#ask:[[Is for pet family::@@@]]        [[Is historical::N]][[Has combo effect::Poison field]]|link=none|format=template|template=Skill icon|outro= ([[Poison field|poison]])<br>|sep= ([[Poison field|poison]])<br>}}<!--
  -->{{#ask:[[Is for pet.Has pet family::@@@]][[Is historical::N]][[Has combo effect::Smoke field]]|link=none|format=template|template=Skill icon|outro= ([[Smoke field|smoke]])<br>|sep= ([[Smoke field|smoke]])<br>}}<!--
  -->{{#ask:[[Is for pet family::@@@]]        [[Is historical::N]][[Has combo effect::Smoke field]]|link=none|format=template|template=Skill icon|outro= ([[Smoke field|smoke]])<br>|sep= ([[Smoke field|smoke]])<br>}}<!--
  -->{{#ask:[[Is for pet.Has pet family::@@@]][[Is historical::N]][[Has combo effect::Water field]]|link=none|format=template|template=Skill icon|outro= ([[Water field|water]])<br>|sep= ([[Water field|water]])<br>}}<!--
  -->{{#ask:[[Is for pet family::@@@]]        [[Is historical::N]][[Has combo effect::Water field]]|link=none|format=template|template=Skill icon|outro= ([[Water field|water]])<br>|sep= ([[Water field|water]])<br>}}
{{!}}{{#ask:[[Is for pet.Has pet family::@@@]][[Is historical::N]][[Has combo effect::Blast finisher]]|link=none|format=template|template=Skill icon|sep=<br>|outro=<br>}}<!--
  -->{{#ask:[[Is for pet family::@@@]]        [[Is historical::N]][[Has combo effect::Blast finisher]]|link=none|format=template|template=Skill icon|sep=<br>|outro=<br>}}
{{!}}{{#ask:[[Is for pet.Has pet family::@@@]][[Is historical::N]][[Has combo effect::Projectile finisher]]|link=none|format=template|template=Skill icon|sep=<br>|outro=<br>}}<!--
  -->{{#ask:[[Is for pet family::@@@]]        [[Is historical::N]][[Has combo effect::Projectile finisher]]|link=none|format=template|template=Skill icon|sep=<br>|outro=<br>}}
{{!}}{{#ask:[[Is for pet.Has pet family::@@@]][[Is historical::N]][[Has combo effect::Leap finisher]]|link=none|format=template|template=Skill icon|sep=<br>|outro=<br>}}<!--
  -->{{#ask:[[Is for pet family::@@@]]        [[Is historical::N]][[Has combo effect::Leap finisher]]|link=none|format=template|template=Skill icon|sep=<br>|outro=<br>}}
{{!}}{{#ask:[[Is for pet.Has pet family::@@@]][[Is historical::N]][[Has combo effect::Whirl finisher]]|link=none|format=template|template=Skill icon|sep=<br>|outro=<br>}}<!--
  -->{{#ask:[[Is for pet family::@@@]]        [[Is historical::N]][[Has combo effect::Whirl finisher]]|link=none|format=template|template=Skill icon|sep=<br>|outro=<br>}}
|\n}}
{{!}}}
This wouldn't produce the pet names however. If you choose to use it, stick it in a separate template (inline queries are harder to locate later on if we need to amend them. -Chieftain AlexUser Chieftain Alex sig.png 10:53, 13 July 2014 (UTC)

A few skills not working properly, any ideas on how to fix or add them?[edit]

There are a number of skills that aren't working properly with the template, some previously mentioned while others have yet to be.

  • Warrior icon small.pngRampage.png Rampage - The skills  Dash (Rampage).png Dash (Leap Finisher), Throw Boulder.png Throw Boulder (Projectile Finisher), and  Seismic Leap.png Seismic Leap (Blast Finisher). It would seem like the Rampage skills might work similarly to the Banner/Conjure skills (Bundles) or possibly the Death/Reaper Shrouds (Profession Mechanic). Perhaps it's something to do with the Skill Type, or how the abilities are acquired, that causes Rampage to not technically work.
  • Guardian icon small.pngWings of Resolve.png Wings of Resolve - Not appearing under Virtues as a Leap Finisher. Perhaps the template coding is searching for BASE Guardian Virtues rather than ALL Guardian Spec Virtues? To be honest, that's all I'm able to come up with for this..
  • Engineer icon small.pngElixir X.png Elixir X - Each transformation and their respective skills ( Rampage.png Rampage,  Plaguelands.png Plague,  Tornado.png Tornado, and  Whirlpool.png Whirlpool). One possible idea is there's an extra step or two too many for the template to read them properly. Another possibility is that none of the transformations are directly connected to an Engineer, but rather to other professions. It could also be a similar issue to why Rampage isn't displaying properly.
  • Mesmer icon small.pngMirror Images.png Duplicate - Historical skill that shouldn't be appearing at all. However, it's showing up as a Mesmer Leap Finisher.

I don't have the know-how to fix these, so I'ma have to let someone who can do so.. There might possibly be other skills not being displayed properly as well, though I couldn't say for sure. Leviticus Lo User Leviticus Lo Clones.png 20:22, 28 February 2018 (UTC)

Nevermind on Wings of Resolve. Gimmethegepgun noticed the skill fact was labeled improperly. Leviticus Lo User Leviticus Lo Clones.png 20:36, 28 February 2018 (UTC)

Fixed "Duplicate" by changing Has availability to Is historical. Looking at others.
Also your signature has font-size-adjust:0, which breaks in current versions of firefox. --Chieftain AlexUser Chieftain Alex sig.png 22:01, 28 February 2018 (UTC)
Ah, alright. I noticed you added Rampage to the list, but none of its skills are appearing in the table. I'm guessing wiki isn't reading the Rampage skillset like it does for Banners and Conjures. Besides that, happen to have any ideas for Elixir X?
Also, thanks for the heads-up. I've adjusted my signature to use "font-size:small" instead. Leviticus Lo User Leviticus Lo Clones.png 03:37, 2 March 2018 (UTC)