Template talk:Total guild materials
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)
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 Alex 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 22:57, 1 November 2015 (UTC)
- Same problem, because it all uses the same templates. —Dr Ishmael 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 Alex 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 |
---|---|---|
[[Guild Enhancement: Experience]] | ^
| |
[[Guild Enhancement: Karma]] | ^
| |
[[Tavern Restoration 1]] | ^
| |
[[Scribing: Guild Gathering Bonus Banner]] | ^
| |
[[Scribing: Guild Karma Banner]] | ^
| |
[[Scribing: Guild Experience Banner]] | ^
| |
[[Guild Hall Music: Super Adventure Box]] | ^
| |
[[Guild Hall Music: City Themes]] | ^
| |
[[Guild Hall Swiftness +11%]] | ^
| |
[[Scribing: Guild Magic Find Banner]] | ^
| |
[[Guild Waypoint 5% Discount]] | ^
| |
[[Scribing: Guild Road Marker]] | ^
| |
[[Scribing: Guild Gold from Kills Banner]] | ^
| |
[[Super Guild Anthem]] | ^
| |
[[Tavern Restoration 2]] | ^
| |
[[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 Alex 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 Alex 12:20, 12 December 2015 (UTC)
- Now that the bug has been fixed, do you think we should:
- Add Alex's suggestion in addition?
- Replace current template with Alex's suggestion?
- Add Alex's suggestion in a new template that would need to be referenced everywhere this one is?
- 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)
- Now that the bug has been fixed, do you think we should: