Mabinogi World Wiki is brought to you by Coty C., 808idiotz, our other patrons, and contributors like you!!
Want to make the wiki better? Contribute towards getting larger projects done on our Patreon!

Mouseover box inline behavior

Jump to: navigation, search

Took me a while to look this over sorry. You're right, changed to spans. I think at some point, MediaWiki must have changed how it handled paragraph breaking and divs, because this didn't used to be an issues, but I've noticed it since the last upgrade elsewhere too. :(

Kadalyn (talk)10:44, 7 January 2021

No worries! Thanks for taking the time to look into it and making that change. :D

Starshine321 (talk)15:27, 7 January 2021
 

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in one of the groups: Users, staff, Editors in Training, Decepticons.
  • Your username or IP address has been automatically blocked by MediaWiki. The reason given is:
    Your IP address is listed as an open proxy in the DNSBL used by Mabinogi World Wiki.
    • Start of block: 07:24, 27 February 2021
    • Expiration of block: infinite
    • Intended blockee: 54.236.58.220
    Your current IP address is 54.236.58.220. Please include all above details in any queries you make.

You can view and copy the source of this page.

Return to Thread:User talk:Kadalyn/Mouseover box inline behavior/reply (3).

No worries, I should've checked. It's fixed now.

Kadalyn (talk)15:59, 8 January 2021

OTL the more I look into just how many places used mouseoverbox, the less sure I am of whether that edit in that template just created even more tech debt :'(... Something seems to behave a bit poorly in the abbr template as well, I first noticed it in the image policy section Mabinogi_World_Wiki:Policy#Images where there's a multi-line value being passed in for the contents. The contents (with the exception of the first line, which seems to have just disappeared) are just appearing on the page without hovering over the trigger, and the rest of the paragraph looks a bit off.

I noticed that the abbr template was wrapping the mouseoverbox template in some span elements, just like the daily sm template did, but I'm stumped on if the behavior can be fixed by similarly editing abbr, because just switching those elements from spans to divs (and then maybe styling it with display:inline or something so it's not a big ol' wide block) comes with its own set of issues. The trigger shows up in the html dom so hypothetically, it should be somewhere on the page, but it doesn't actually seem to be displaying anywhere :s I'm not too familiar with what else is going on with mouseoverbox's logic, I'm assuming there's some javascript magic somewhere that I don't know about, but I figured I'd just share yet another finding I stumbled upon 😢

Starshine321 (talk)14:51, 11 January 2021

Bleh, mediawiki is weird. So I made it conditionally use div or span based on whether or not the contents contain a newline. This is gross and there might be a better solution, but I don't know it.

Kadalyn (talk)16:07, 26 February 2021