User talk:Jfarris964/Crafting

From Guild Wars 2 Wiki
Jump to navigationJump to search

Hi![edit]

  • We were all wiki noobs at some point
  • To transclude pages you use {{:User:Jfarris964/Sandbox/Crafting/Recipes}} to get

{{:User:Jfarris964/Sandbox/Crafting/Recipes}} (Removed the ACTUAL transclusion so that the Talk Page didn't continue to grow as the tables did)

So {{:FullPageName}} to transclude. You have the <noinclude></noinclude> on your sandbox nicely, but note there is an extra line above that got carried over since there is an extra line between the </noinclude> and the next stuff on that page.
  • The auto list is like an advanced wiki course thing. I myself only figured it out earlier this week. Is this what you were wanting to create? User Mattsta Sig1.jpgUser Mattsta Sig2.jpg 21:42, 29 March 2012 (UTC)
The <noinclude></noinclude> is there for the time being only as a reference to show what I was trying to do and possibly solicite some help in doing it. What you did on your Sandbox is amazing. I was looking through the code trying to figure out what each part of it does. I think with a little more time, I could. I REALLY appreciate your response and left you a message on the talk page of that Sandbox. If you don't mind, I'd like to copy the code as you have it written and tweak it for my needs. I want to get your approval before doing so. It's your work and I do NOT want to claim credit for it. I've also added a reference to your help at the bottom of my user page. Thank you SO much for taking the time to respond to my request. Jfarris964 15:43, 30 March 2012 (UTC)
I replied to what you wrote over on my sandbox talk page and yeah go ahead and copy and play with the code. To help you get started on understanding this, |format= is the format that it uses at the start of the dpl and |secseparators= sets the format and calls everything for every time it looks at a page in the category so will probably be what you will want to change to move things around. The commas call what you set in |include= but note that they call the items in the order they are listed here (I don't really know how the commas actually work and just play with whether it needs 1 or 2 commas until it works. That code is set to look in Category:Recipe which is where all the recipes are at, so I added
²{#ifeq: ²{#expr: ²{#expr:²{#ifeq: , ¦ Weaponsmith ¦ 1 ¦ 0}² or ²{#ifeq: ,, ¦ Weaponsmith ¦ 1 ¦ 0}²}² or ²{#expr:²{#ifeq: ,, ¦ Weaponsmith ¦ 1 ¦ 0}² or ²{#ifeq: ,, ¦ Weaponsmith ¦ 1 ¦ 0}²}² }² ¦ 1 ¦
which is a big long thing that just says only display if Weaponsmith is listed as one of the disciplines. If you want to display a different discipline then you can just change that out with Weaponsmith (like putting in Cook in all 4 places will return the Cook recipes). And this:
²{#ifeq: ,, ¦ ,, ¦  ¦ [[File:Redirect Arrow.png|20px]] }²
makes the arrows that offset recipes that have a different name than the pagename (like Mighty Bronze Axe recipe is on Bronze Axe page). Added this because it was displaying Mighty Bronze Axe in the middle of the B's (since it is sorting it by Bronze Axe instead of Mighty). Then the rest is the table code. Oh and \n is to move to a new line when it runs the output. Hope that helps and not just confuse you more. And thanks for adding me in your help reference on your user page. :) User Mattsta Sig1.jpgUser Mattsta Sig2.jpg 21:32, 30 March 2012 (UTC)
Mattsta...Is there any way to use the dpl, then parse the data using variables, then use those variables to populate the table? The way it is now, I can't understand why some of the things are in the list multiple times (mat-3, name, etc.) and how or where they're used in populating the table. Basically....I'm REALLY confused!! Lol.Jfarris964 22:05, 30 March 2012 (UTC)
I don't know if there is a way to set the inputs to variables so that you can just call stuff by their variables. I haven't been using the dpl for long but haven't seen any way to do that. The items listed multiple times are related to that. I needed to use an input more than once and since it seems to just use the next variable down the list I got it working by calling it in the right order in the input. So like mat-2, mat-3, mat-4 I called twice because I have {{#if: mat-3 | [[mat-3]] }}. Just having [[mat-3]] left [[]] in the box if there wasn't a mat-3 and I only got that working by calling it twice in the input. User Mattsta Sig1.jpgUser Mattsta Sig2.jpg 02:18, 31 March 2012 (UTC)

Things to do[edit]

  • This is a list of things I'd like to try and figure out for my own tables
    • Collapsable tables for each Discipline (Show / Hide)
    • Sortable tables by Column
    • Add a "Req Rank" column?

Jfarris964 21:08, 30 March 2012 (UTC)


Will this include linking base components to what items they Can create, Secondary components to same, and last of all the stat's and effects of completed items? Don't get me wrong i am extremely interested in this project as it may be a intregral and very important part of the in game economy. my own goal is to determine the effectiveness of marketing in game crafted items to the marketplace and determine at any given time the most profitible merchandise to craft and sell on amy given day ie the cost of components vs the profit they generate. This can be a most important tool if taken to it's maximum potential of being able to trace completed items and thier base and market value back thru the chain of components and the cost of those components on any given day and the expected profit margin to expect thru the in game marketplace. Rudhraighe 14:36, 31 March 2012 (UTC)
While this may also be an end goal for me as well, right now, it's a personal project to collect and organize all of the various crafting recipes into one place and present them in a useable manner. Currently, you have to click through link after link after link to see anything. If you'd like to help, I'd appreciate it, but as of this moment, I'd like to keep the scope of the project simple. Once the simple version is complete...I see no reason not to use this as a base to expand the functionality. Jfarris964 17:05, 1 April 2012 (UTC)

another example[edit]

User:Till034/Sandbox/2 I did it a long tile ago. It might help you. Feel free to ask questions i.I'll try to answer asap.--Till034 22:22, 2 April 2012 (UTC)

DPL caching[edit]

Please always allow cached results on DPL, it will highly reduce costs and loading time. If you want up to date results immediatly, you can click on the clock to purge the cache (wiki's cache is automatically purged every X hours). --Till034 15:47, 3 April 2012 (UTC)

How do I allow cached results? Would I make the change on my Template? Jfarris964 16:29, 3 April 2012 (UTC)
Already did it here. You can test with and without, and look the loading time of your page. You should notice a major difference. --Till034 16:35, 3 April 2012 (UTC)
You're right...that makes a huge difference on loading time. The only question I have is will new values be populated when new recipes are added, or will it just show me the old table all the time until I purge the cache?Jfarris964 16:49, 3 April 2012 (UTC)
I don't have access to the values of Wiki's config, but cache is usually renewed every hour when an article is consulted, or every time an article is edited. DPL will look into that cache, instead of reparsing every matching article. Source --Till034 17:04, 3 April 2012 (UTC)

Thank you!!![edit]

First of all, I'd like to thank Mattsta for helping me with figuring out DPL's and how to parse the data for my Crafting Tables. His input was very valuable and I learned a lot about how DPL's work and how to implement them.

Second, I'd like to thank Till034 for giving me some pointers on how to make my page load faster when using DPL's. It was a simple change that he made to my template that will decrease the loading time and increase the useability of this page dramatically.

Thank you all!!! I really appreciate the help!!! Jfarris964 16:55, 3 April 2012 (UTC)

No problem, that's the way a wiki lives ! ;) --Till034 17:04, 3 April 2012 (UTC)