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!

Reason for the huge gaps in skill nav

Jump to: navigation, search
Revision as of 16 September 2017 at 00:33.
The highlighted comment was created in this revision.
Collapse

I have come to the conclusion the reason why there are big-ass gaps in places like Black Hole is because the category setting code and the way that the nav is displayed are both in the same place.

Categories need to be set before or after the skill nav, and this just needs to be fiddled around with. I've tried but it's been too long. If anyone wants to take a stab at it, it should probably be sorted into something like this:

<!-------------------------------------------
              Categories
---------------------------------------------->

[[Category:Skills]]
[[Category:{{{Type}}} Skills]]<!-- Active or Passive-->

{{#switch:{{{Gender}}}
|Both =[[Category:Male {{{Class}}} Skills]][[Category:Female {{{Class}}} Skills]]
|Female=[[Category:Female {{{Class}}} Skills]]
|Male=[[Category:Male {{{Class}}} Skills]]
|[[Category:{{{Class}}} Skills]]
}}


<!-------------------------------------------
              Skill Nav
---------------------------------------------->

{{#switch:{{{Gender}}}
|Both={{SkillNav|Male {{{Class|???}}}|{{{Type2|}}}|Male}}
{{SkillNav|Female {{{Class|???}}}|{{{Type2|}}}|Female}}
|{{SkillNav|{{{Gender|}}} {{{Class|???}}}|{{{Type2|}}}|{{{Gender|}}}}}
}}

{{SkillNav|General|{{{Type2|}}}}}

This should condense all the whitespace that gets added when setting categories and the like, and get rid of the ugly gaps.

Don't be afraid to duplicate a similar if statement in the two categories.

17:25, 15 September 2017
Collapse

Hmmm. Interesting.

Probably my fault for making simple if-else statements. I'll look into this over the next week. No guarantees though, as you said "it's been too long."

And I put WAY too many curly braces...

17:33, 15 September 2017