Template talk:Total guild materials

From Guild Wars 2 Wiki
Jump to navigationJump to search

This page take a while to load. This was created so people could know the total for each building. Should this be a form and then a separate page to increase load times? Anzenketh (talk) 17:49, 1 November 2015 (UTC)

The page isn't taking a long time for me. The page will take much longer if you make changes since the page has to be re-parsed (because of all the queries), but the server will just give you the cached version after that.--Relyk ~ talk < 19:28, 1 November 2015 (UTC)
I figured that was what it was doing. I may have just been a slow time. Off to add them to the pages. Anzenketh (talk) 19:33, 1 November 2015 (UTC)

If something comes after this it does not work well[edit]

If something comes after this the item after will display closer to the top. {{clear}} does not work. Anzenketh (talk) 19:45, 1 November 2015 (UTC)

The template adds whitespace wherever you have a new line. It's a weakness with MediaWiki parsing. The solution is to mash it together. The #ask function also likes adding whitespace.--Relyk ~ talk < 19:57, 1 November 2015 (UTC)
You didn't close the <div> tag. clear fixes it as a bandage after that I think.--Relyk ~ talk < 20:01, 1 November 2015 (UTC)
I changed the output statement on {{base ingredients}} to use DL, DD and DT elements - otherwise the interpreter screws up and doesn't close the dl+div properly. -Chieftain AlexUser Chieftain Alex sig.png 11:20, 4 November 2015 (UTC)

Broke again[edit]

This seems to have broke again. I can not tell why see User:Anzenketh/Sandbox/Page/2 Anzenketh (talk) 21:35, 1 November 2015 (UTC)

There's a limit to the length of the value we can store in a #var. Because you're using it multiple times on the same page, each subsequent call is re-using the same variables from before, so you're just adding on to the output of the first call.
Doing each building by itself is fine, except for the Market, Workshop, and War Room - they simply have too many different materials and exceed the #var limit by themselves. —Dr Ishmael User Dr ishmael Diablo the chicken.png 22:57, 1 November 2015 (UTC)
Well that puts the squash on that idea. If you link to a query page would it work. Or would it also have the same problems? Anzenketh (talk) 00:25, 2 November 2015 (UTC)
Same problem, because it all uses the same templates. —Dr Ishmael User Dr ishmael Diablo the chicken.png 00:52, 2 November 2015 (UTC)
So the easiest way would be to create an list of lists for tracking all ingredients and then iterate through that too.--Relyk ~ talk < 04:58, 2 November 2015 (UTC)
I fixed it. I separated the template so it isn't breaking {{Base guild materials}}. I suggest using the same solution on that and the other templates.--Relyk ~ talk < 06:17, 2 November 2015 (UTC)
Is it really fixed? The list on the War Room page is incomplete, it's missing the materials from the upgrades with high guild level reqs.

I think I broke it again possibly, at least going to this template from Tavern Restoration 1 breaks. -Chieftain AlexUser Chieftain Alex sig.png 17:52, 12 December 2015 (UTC)

Fixed an issue with the {{total guild materials lookup}} lacking an expr (resulting in many empty lists created). --BryghtShadow (talk) 21:20, 12 December 2015 (UTC)

Not sure total is that useful[edit]

Imo, just listing the materials required for each upgrade (on one page) is possibly more useful. Quick and dirty example:

Guild upgrade Guild level Required materials
[[Tavern Restoration 1]]
^
[[Guild Enhancement: Experience]]
^
[[Guild Enhancement: Karma]]
^
[[Scribing: Guild Gathering Bonus Banner]]
^
[[Scribing: Guild Karma Banner]]
^
[[Scribing: Guild Experience Banner]]
^
[[Guild Hall Music: City Themes]]
^
[[Guild Hall Music: Super Adventure Box]]
^
[[Guild Hall Swiftness +11%]]
^
[[Scribing: Guild Magic Find Banner]]
^
[[Guild Waypoint 5% Discount]]
^
[[Scribing: Guild Road Marker]]
^
[[Scribing: Guild Gold from Kills Banner]]
^
[[Tavern Restoration 2]]
^
[[Super Guild Anthem]]
^
[[Guild Anthems]]
^
[[Guild Hall Swiftness +22%]]
^
[[Scribing: Guild Banquet]]
^
[[Scribing: Guild Karma and Experience Banner]]
^
[[Guild Waypoint 10% Discount]]
^
[[Scribing: Guild Gold and Magic Find Banner]]
^
[[Scribing: Guild Gathering and Swiftness Banner]]
^
[[Scribing: Guild World Events]]
^
[[Guild Hall Swiftness +33%]]
^
[[Scribing: Guild Heroes Banner]]
^
[[Guild Waypoint 15% Discount]]
^

-Chieftain AlexUser Chieftain Alex sig.png 12:21, 4 November 2015 (UTC)

I agree. No one is going to build all upgrades in any building at the same time. They'll each be considered on a per case basis. However, it should be hidden by default because it may be quite long. Also, why are some prices for items available at the TP prices or from vendors listed as n/a (examples: Mithril Ingot, Bottle of Elonian Wine). ~ 1Maven (talk) 18:38, 11 December 2015 (UTC)
There is some bug with the relyk's code. He has used the same symbol pattern (@@@) all of the way down despite referring to different patterns. This replaces (for some reason unknown) class "gw2-tpprice" with class "gwMithril Ingot-tpprice" which is obviously some buggy shit but it doesn't happen if you use different patterns, such as: @@@ then %%% then $$$. -Chieftain AlexUser Chieftain Alex sig.png 12:20, 12 December 2015 (UTC)
Which obviously requires a sufficient amount of bitching about first to fix.--Relyk ~ talk < 13:57, 12 December 2015 (UTC)
Now that the bug has been fixed, do you think we should:
  1. Add Alex's suggestion in addition?
  2. Replace current template with Alex's suggestion?
  3. Add Alex's suggestion in a new template that would need to be referenced everywhere this one is?
  4. Leave as is (but it should be collapsed due to size and minimal usefulness)?
My choice is #1 ~ 1Maven (talk) 16:46, 12 December 2015 (UTC)