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!

NPC/Dungeon/Lore Navigation Templates

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

Sorry to bother you again. I'm not that good at Semantic Mediawiki coding. Is there a way/code to exclude certain dungeons from showing up in the list, like removed dungeons, with the inline queries?

10:36, 4 September 2018

Most definitely.

First, I want to know how is "Removed dungeons" labeled. If we can re-use, say a "removed" category, we should be able to #ask Semantics to filter. {{#ask: [[Category:!Removed Content]] }} If not, we need to create another property. Can you give me an example of removed content?


On the subject on improving the nav list, add |sort=Has dungeon entrance level requirement to your #ask, as shown in my EtchASketch. The Grand Flores list now matches the one on page "Category:Grand_Flores_dungeons" instead of alphabetical order.

10:55, 4 September 2018

Thanks for the reply.

The best example would be Time Gate. If the Removed Content filter is applied then Black Crusade, Tangled Time Gate, and Time Break should not appear.

11:25, 4 September 2018

Oh, I'm sorry, I misread. From Semantic page, "It is not possible to ask for all pages of a query that are not in a specific category". #ask: [[Category:!Removed Content]] actually looks for "!Removed Content" category.

Setting a property in Template:RemovedContent solves half the problem, say "Is Removed=True". Semantic wiki can not search for pages that do not have properties. Since normal dungeons do not have "Is Removed=False", the #ask query can not filter on that.

I'll look into a workaround. :/

11:47, 4 September 2018

What we could do is use Dynamic Page list to filter categories. {{#dpl: |category = Time Gate Dungeons |notcategory = Removed Content

Example. Downside is that we lose semantic properties, like sorting by lvl requirement.


If we can find a way to combine DPL with semantics, major changes to DFO wiki's list could be updated. Way back in 2016, we discussed on how should skill lists by displayed using DPL. With semantics, sorting by level should be a snap.

Although, now that I am thinking about it, do you happen to have any thoughts if we have "Removed Content" skills? IF not, we should move Template:ClassSkills into semantic wiki for better sorting.

08:50, 9 September 2018

I currently have no issues about Removed Content skills or any removed content for that matter.

Though, is it possible for the inline queries to detect Removed Content pages by using an #if statement? If so, could it output '(Removed)' after the page name to allow users to know beforehand? Ex. Arctic Booster (Removed).

09:54, 9 September 2018

Found a work around. Using set operations, we can perform a set difference to "subtract" <removed content> from <all results>.

Using this, (User:Dfoplayer/TestFilterRemovedContent) the code in your navigational table should look like { {User:Dfoplayer/TestFilterRemovedContent|catePara=Time Gate Dungeons|sortPara=Has dungeon entrance level requirement}}

I think this is a good start. If you like it, I'll a few more days to make it scalable to work with other templates. Navigation requires a single line list while the skills should be in a table format.

12:05, 9 September 2018

Looks good to me. Thanks for all your hard work. :)

12:50, 9 September 2018