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

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

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

Should be working now. Here is a test User:Dfoplayer/EtchASketch

The main issue was that in there were white space between the if block for skillNav. I did that for readability, but i guess it generates < br > tags.

I removed those new lines, but made a comment of saying where the next if block

21:54, 23 September 2017

Generally I remember investigating and it was any search with no results returns <br/> or <p>&nbsp;</p> which then gets shunted out of the table up or down making the big honking whitespaces.

14:04, 15 February 2018