Template talk:Weapon skill table

From Guild Wars 2 Wiki
Jump to navigationJump to search

504 Gateway Time-out[edit]

So i was meaning to split this template as used on Chain (edit) up into subpages by Soldiers/Adventurers/Scholars as the query's timing out, but as that seems to run into query size or depth constraints i figured i'd settle with by single professions. And that would work for all but Engineer, for which it would seem that the Negative Bash skill causes a query timeout, presumably due to inadvertent interaction with sorting (though removing certain ones of the other query constraints seems to make it work as well, while removing others still leaves it timeouting. Perhaps it's compounded by them somehow making it more than the one result that it should be?), based on the following queries; the first and third of which work, while the second one does not; with the forth not working unless either one of the sorting conditions or the query conditions are removed or seemingly any other skill, that also matches the other conditions, than "Negative Bash" is used:

{{#arraymap:
<!-- Results of {{#ask: [[Has skill activation type::Chain]][[Is for profession::Engineer]][[Is for game mode::Default||PvE]] | format=plainlist | link=none }}, except without "Negative Bash". -->
Equalizing Blow
Gleam Saber
Positive Strike
Smack
Sun Edge
Sun Ripper
Thwack
Whack
|\n|@@@|
    {{weapon skill table|query=[[Has skill activation type::Chain]][[@@@]]|weapon heading=plain}}
|\n}}

{{weapon skill table|query=[[Has skill activation type::Chain]][[Negative Bash]]|weapon heading=plain}}

{{weapon skill table|query=[[Has skill activation type::Chain]][[Negative Bash]]|sort=|weapon heading=plain}}

<!-- Reduced "Template:Weapon skill table" query. -->
<!-- Note how this query works fine with any other value from the query above (or from e.g. the results of the following query: {{#ask: [[Has skill context::Weapon||Profession mechanic||Bundle||Transform]][[Has weapon type sort order::<<100]][[Is for game mode::Default||PvE]][[Is historical::N]][[Has chain sequence position::>1]][[Has chain sequence position::<4]] | limit=500 | link=none | format=list }}) inserted in place of "Negative Bash", while only working with "Negative Bash" if any of the query or sort conditions is removed. -->
{{#ask:
 [[Has skill context::Weapon||Profession mechanic||Bundle||Transform]]
 [[Is for game mode::Default||PvE]]
 [[Is historical::N]]
 [[Has skill activation type::Chain]]
 [[Negative Bash]]
 | format = table
 | link = none
 | limit = 5
 | offset = 0
 | searchlabel =
 | default = ''No skills found.''
 | sort = Has profession sort order,
          Has specialization sort order,
          Has skill context sort order,
          Has weapon type sort order,
          Has attunement sort order,
          Has skill slot sort order,
          Has skill type sort order,
          Has skill sort order,
          Has chain sequence position
}}

Anyone any ideas what could cause this and whether it's a SMW bug?

PS: {{weapon skill table|query=[[Has skill activation type::Chain]]|profession=!Engineer|weapon heading=plain}} seems to load rather fast, so perhaps splitting may not even be necessary if there's a solution to this.

PPS: The same problem applies to Sequence skill (edit), where splitting it however seems impossible due to any query condition being added to it being ignored due to restictions on query size or depth. Nightsky (talk) 15:26, 2 December 2022 (UTC)

What a strange bug. No idea what caused this exactly but since you already tracked it down to one single page: I removed the content of Negative Bash, purged it and re-added it. Both pages Chain and Sequence skill are now working fine again.
Side note: if we need ever to split the page due to "Post-expand include size" then we can always move the common skills on a subpage, there should never be enough profession skills to reach the cap. --Tolkyria (talk) 19:55, 2 December 2022 (UTC)