Welcome to the DFO World Wiki. With many major updates since the release of DFO, many items are missing. Visit Item Database Project to learn more.
Please remember to click "show preview" before saving the page.
Thanks for the updated logo snafuPop!

Shop list template error

Fragment of a discussion from User talk:Dfoplayer
Jump to: navigation, search

Just replying to follow this thread, as I've come across this issue a lot as well.

edit: Also worth noting the issue occurs inconsistently depending on the item/page in question. For example if you look at the current version of User:Queerchemist/Equipment there are redlinks that don't have this issue, but if you look at this older revision the issue is present.

edit2: Actually the issue even occurs with links that shouldn't be broken at all. If you look at Undaunted Determination, the items in the shop under "Uses" are all existing pages and should work just fine.

00:37, 16 April 2019

That was a long rabbit hole. At first I thought it was pretty simple. The icon and/or item page does not exist.

In Red Tail Jonathan, where is the page Pure Energy Crystal Pouch? Since the page and respective icon doesn't exists, the Template:Item produces the wiki code [[<missing Pure Energy Crystal Pouch icon.png> |20x20|link=Pure Energy Crystal Pouch]], and renders what you see on all the pages.

Example failure below

{{Item|Pure Energy Crystal Pouch}}

results in

Jonathan Upgrade Box.png Pure Energy Crystal Pouch

Then, looking at Queerchemist's examples, I noticed it has to do something with the #show query not rendering 'Pure Energy Crystal Pouch' compared to 'Swiftly Mobile Plate Shoulder', as shown on User:Queerchemist/Equipment. Why? No idea, but 'default=' does not seem to work the way we want it to. Nice table btw.

I think the best solution is to make wiki code to detect if a page does not exists, which I'm not familiar with, YET. This will allow us to skip the template code and just render red links.

In the mean time, I'm not sure where to start looking for broken items, but Special:WhatLinksHere/Template:Shop_list_row is a start.

10:42, 16 April 2019

Okay. Most of it is working. Not sure why Undaunted Determination is still broken, as well as Monolium. It looks like the NPC's shop list are working just fine. When you call the shop list from a page that has the item as a currency, it breaks. Yet, if you look at below, the Template:Item works for Undaunted Determination and Monolium. . Epic Soul Box (1).png Epic Soul Box (1) Heblon Recipe Chest.png Prophet's Dusk Bead Chest

11:55, 18 April 2019

Oh. It looks like the semantic has been updated and the lists in the individual item pages are now working.

19:28, 24 April 2019