User:Zoombie

From GodWiki
Jump to: navigation, search
«
What? Were you expecting something profound?
»
— Zoombie, Somewhere
Deities of Godville
Zoombie 
Hero Moogie
Personality Yes
Motto I may be wrong


Chronicle Expansions

Everything below is my personal headcanon. Go get your own.

Title 1

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce molestie enim at velit consectetur, sit amet accumsan turpis venenatis. Etiam purus lectus, volutpat vel enim et, faucibus consequat ligula. Sed auctor congue eleifend. Curabitur a laoreet est, at varius tortor. Nam congue metus enim, ut mollis tortor imperdiet vel. Suspendisse vitae auctor lacus, non luctus urna. Integer sit amet metus sit amet tellus tristique varius sit amet id felis. Morbi elementum maximus justo non eleifend. Duis ornare tempor commodo. Sed eu ante congue, dignissim dolor vestibulum, tristique ex. Maecenas quis vestibulum magna. Aliquam eget placerat ligula. Suspendisse sit amet commodo nisl. Vestibulum turpis felis, accumsan faucibus tempor at, auctor at ipsum. Aliquam rutrum volutpat purus, ac sagittis felis fermentum id. Ut pharetra felis a semper ornare.

No, this isn't a table. ( °.°)╯︵ ┻━┻


GodWiki Case Files

Welp! I guess I've gotten myself deep into things now that I'd need some list to remind myself of stuff

Nested collapsible toggle button bug

  • Link to sandbox: Sandbox
  • Screenshots: Default state Closed Reopened
  • Current Findings: In a nested collapsible, the child collapsible's toggle state follows the parent collapsible's toggle state regardless of its own toggle state. What happens is if the parent collapsible is by default expanded and the child collapsible is collapsed, when the parent collapsible is collapsed then expanded again, the child collapsible's toggle will show collapse even if it isn't expanded. See Sandbox or screenshots above for illustration.
This seems to be an issue due to the old MediaWiki version GodWiki is using. Relevant link
  • Possible Solution(s): Report to devs. Can't do anything on this end.
  • Status: Reported to devs.

Zoombie:

Hello, devs! Someone told me you might be interested in this. I was tinkering with making nested collapsibles in GodWiki a while back. I notice that there's a bug in how the collapse/expand toggle is displayed. What happens is if the parent collapsible is collapsed, the child collapsibles all inherit the parent's toggle state regardless of their own toggle states. If I click the parent collapsible to collapse and then expand again, the parent collapsible's toggle should display 'collapse' and the child collapsible should display whatever toggle state they are in but this is not happening. The child collapsible also displays 'collapse' even if it should display 'expand'. This happens whether I use tables or divs for my collapsibles. I did some research and it says that this could be due to having an old version of MediaWiki. I have a working sample on my wiki sandbox that you can check. There's also a link there to the help topic regarding wrong toggle states in nested collapsible. Here is the link to my sandbox: https://wiki.godvillegame.com/User:Zoombie/Sandbox This might just be a tiny cosmetic visual bug but I'm still reporting this because this is really easy to overlook and this might have been going on for a long time. Also, the current MediaWiki version that GodWiki is running on is about to reach its end-of-life. Link: https://www.mediawiki.org/wiki/Version_lifecycle The next lifetime support version (1.35.x) has the VisualEditor extension bundled which I hear some people have been asking for. Thanks for taking the time to read this.

Update: Got a reply.

Godville:

Yes, we do plan to update Godwiki the next LTS version sometime in the future and hope it will address the "collapsible" issue you mentioned as well. Thanks for the detailed feedback!

What does {{Spacer}} do?

  • Link to sandbox: None yet. Effect can be seen in this page. See screenshot below and Help thread for more details.
  • Screenshots: Screenshot
  • Current Findings:
Stumbled upon this while trying to fix the layout on the top part of my Userpage. Documentation states that it is for layout purposes for floating elements. Currently, it is attached at the end of the Infobox template as seen in this screenshot. Might need to find out which other templates use this.
Update: Found a lead here: Talk:Main_Page/Archive#Fixes_for_mobile_content_layout but I have no idea what to do with it.
Update: I think it might be fulfilling the same purpose as a clearfix. Relevant links: [1] [2] [3].
This is a bit worrying since {{Spacer}} is deeply embedded. It is transcluded/embedded on {{Infobox}}. {{Infobox}} is then used as a base for {{Usergod}} and using {{Usergod}} on a page provides no way (that I can find) to access {{Spacer}}. And I am reluctant to touch templates right now.
I guess the question now becomes: Is {{Spacer}} still necessary to have in the templates it is in? (Answer: Yes. I just don't need it on my page because I am using flexbox and my page is structured in an unconventional way.) There is {{Clear}} that seems to have a similar function. What is the difference between the two other than width? (Answer: Both of them basically brute force the layout to behave properly and act as a buffer between floated elements and other page elements. They essentially make sure floated elements play nice with other page elements and doesn't invade their space and vice versa. The difference can really only be seen on wider screens. {{Clear}} takes up the whole width of the screen and pushes other page elements below it. It basically makes sure any other page elements after it do not take up any space beside the element it is attached to. {{Spacer}} doesn't take up the whole width of the screen and instead takes up only part of it (i.e. the width of the Infobox it is part of) so that other page elements can still exist beside the floated element (i.e. Infobox). Using {{Clear}} on Infobox would break page layout on desktop.)
More stuff that might shed some light on this problem: [4] [5]
I feel like this is an issue with the way the jquery bundled with the mediawiki software handles collapsibles. Hopefully, the update will fix this issue.
  • Possible Solution(s):
    • Remove {{Spacer}} from Infobox template. (This might break the whole site)
      Update: It did. (•⌓• ) Not gonna do this again.
    • Rewrite templates that use {{Spacer}} to remove the need for it. (This might be a better approach and this might lessen technical debt for future contributors to inherit. This is a lot of work though and I've yet to grasp wikicode to read and edit templates properly.)
    • Just hardcode everything here. (This gives me a lot of control in my page but will do nothing for anyone who might have this same problem in the future.)
  • Status: Partially fixed on my page with this. It's still there (screenshot) but the extra <div> is containing it so it doesn't mess with the flexbox. This is how it's supposed to look like without {{Spacer}}.
Need to see now if it can be implemented site-wide so that there's no need for {{Spacer}}.
Completely fixed on this page now. I substituted the template and added | spacer = no to the generated template. This added a lot of wikicode that I don't really need to my page though so maybe hardcoding this might be a better move instead. 😅

Main Page layout alignment

There seems to be an alignment issue regarding contents of the Featured Article section and the Introduction to the Godwiki section. (Please see screenshots above.) Sandbox version has manual line breaks <br> inserted between each section header and their content to force the contents one line down in order to not overlap with the span containing the collapsible toggle. Deployed version does not have those manual line breaks. Regardless, there is some strange alignment going on. This is not noticeable much on mobile as the sections are stacked. Laying down findings here to make it easier to organize my thoughts.
This looks like a margin issue. Section headers in wikis use the <h2> tag which has the property margin: 1em. The unit em depends on the font size of the element being styled. (See this link for more info on px, em, and rem. It also has interactive examples to play around.) (See also this link for default CSS properties of headings.)
  • Possible Solution(s):
    • Adjust the font size of the section header in the Featured Article section and match it to the font size of the paragraph in the Introduction to the Godwiki section. Simply changing or removing the margin property in the section header in the Featured Article section unless the margin property of the first paragraph in the Introduction to the Godwiki section is also modified. (See the following screenshots for attempts via Chrome DevTools: [6] [7]. Note how the contents of both sections still do not align when only the margin property of the section header in the Featured Article section is modified.)
    • Alternatively, calculate how much the margin for the section header in the Featured Article section should be adjusted to. (Not sure how feasible this is or if it is going to be accurate.)
  • Status: Solved. Possible solutions written above were not entirely correct. Changed ==Title== to <h2 style = margin: 0;>Title</h2> to remove margin from h2 and added the extra blank line on start of Featured Article content to match the code on Introduction to the Godwiki.

Pages Needin' Fixin'

  • Link to sandbox: Sandbox2
  • What is this?: This is a list of pages that needs some fixes done. Fixes mostly consist of missing templates, missing categories, and some typos and formatting. It will not include stubs or articles needing pictures or any such categories as those are already listed somewhere. Most fixes here are minor so this list could be useful for teaching newbies how to format and edit things in the wiki and give them some real hands-on experience on those things.

Collapsible diary entry

  • Link to sandbox: Sandbox
  • What is this?: I'm developing a way to make the diary entry collapsible. See Sandbox for comparison between current methods and my method.

Ideabox template

  • Link to sandbox: Sandbox and the template
  • What is this?: Just a template for simulating the ideabox look in GW. This is just me messing around with wikicode and feeling my way through making templates. Features include strict variable checking so any non-numerical input on the votes will not show up, and the idea and category is included in the layout.

Moving pages issue

Current Findings:

WardPhoenix brought up this link when I asked about moving pages. I also encountered it when trying to fix 101 Headed Dalmation to 101 Headed Dalmatian. The note on the move page states:

Note that the page will not be moved if there is already a page at the new title, unless it is a redirect and has no past edit history. This means that you can rename a page back to where it was renamed from if you make a mistake, and you cannot overwrite an existing page.

So I checked the history of 101 Headed Dalmatian and it's not empty. There are 4 entries in it. It seems that the contents of the page's history did not move to the new page. The same thing happened with One-And-A-Halfling and One-and-a-Halfling. I don't know if there are other pages with the same problem and I could be wrong about this but based on the dates of previous moves of the pages mentioned, this seems to happen to pages moved before 2016.
Possible Solution(s): Ask devs to delete the old page so we can have a fresh start so to speak?

Status: Unsolved

Links and other resources

  • Recommendations for mobile-friendly wiki articles [8]
  • Advance wiki typesetting / text formatting [9]
  • Collapsible elements on MediaWiki [10]
  • CSS tricks for CSS examples and tips and tricks [11]
  • W3schools for some basic stuff and list of CSS properties [12]
  • MDN Web Docs for more reference on CSS properties [13]
  • caniuse for support tables for CSS properties [14]
  • nifty one line layouts [15]
  • codepen for playing around with front-end (HTML, CSS, JS) coding [16]
  • typography stuff [17]

Random Notes

  • Confirmation of Motorcyclops' existence: screenshot
  • Use min-width: 7em for buttons when they are in columns to prevent borders from overlapping when viewed on narrow screens.
  • Just realized how much GW is tied to the game. It's possible they even use the same database. At the very least, GW database is linked to the one the game uses. How else would you explain the fact that only monsters with GW articles have blue links in the diary while those with no GW articles don't get blue links?
  • Copied from wikipedia:

    One way to inspect the core CSS and JS files is to inspect a page with Web development tools while loading any Wikipedia page with ?debug=true URL parameter (this will separate different CSS files, prevent minification and preserve comments).

  • APIs are fun and interesting.

What have I gotten myself into? (•⌓• )


Ideabox Stuff

Since this seems to be a thing here...( °.°)╯︵

Diary

65
yes
20
no
2 in ER
Tried to jump start the day. Ended up frying it.
/01/28/21 06:45PM (UTC+8) Thursday
80
yes
9
no
2 in ER
Spent a few hours choosing my wardrobe. Now I can say I'm fashionably late.
/01/31/21 09:28AM (UTC+8) Sunday
63
yes
17
no


Found a wellspring of truth. It told me my life is a lie.
/01/31/21 09:31AM (UTC+8) Sunday
50
yes
18
no
1 dupe
Saw %random_friend% chasing h{is
/02/08/21 01:04PM (UTC+8) Monday
79
yes
7
no
1 dupe
The %monster% whispered a map location with its dying breath. It smelled nasty but it might be useful.
/02/09/21 06:38PM (UTC+8) Tuesday
78
yes
9
no


Burned some incense to use as smokescreen to escape from the %monster%. Good thing I always bring some with me.
/02/09/21 06:36PM (UTC+8) Tuesday
87
yes
14
no
1 dupe
%random_friend% dropped by and told me, “Hang in there!”. I mean, it's not like I have a choice. I don't want to fall.
/02/10/21 05:23PM (UTC+8) Wednesday
86
yes
8
no


Felt sorry for the gold coin sitting alone in the trader's tip jar. Dropped %gold% in the jar so the little one can make friends.
/02/13/21 01:56PM (UTC+8) Saturday
74
yes
15
no
1 dupe
Found an interesting spot on the map after %pet_name% sneezed on it. I'll go check it out after cleaning this mess.
/02/23/21 05:49PM (UTC+8) Tuesday
65
yes
16
no
1 dupe
Thought I saw a joke whizz by. I didn't get it either.
/02/23/21 05:43PM (UTC+8) Tuesday

Earthly News

62
yes
13
no


Watching a heated discussion about rituals devolve into a dance off...
/01/28/21 06:44PM (UTC+8) Thursday
56
yes
9
no
2 dupes
Flinging everything he's got at the %monster% to see what sticks...
/01/30/21 12:17AM (UTC+8) Saturday
63
yes
8
no


Using sand castle models to plan out h{is
/02/02/21 03:07PM (UTC+8) Tuesday
58
yes
21
no


Complaining to the other heroes about h{is
/02/12/21 10:50PM (UTC+8) Friday
62
yes
12
no
1 dupe
Playing the last fight in {his
/02/27/21 08:13PM (UTC+8) Saturday
53
yes
14
no
1 dupe
Giving {him
/02/27/21 08:11PM (UTC+8) Saturday

Quests

61
yes
20
no
1 in ER
teach the big bad wolf some breathing exercises
/02/23/21 05:46PM (UTC+8) Tuesday

Monsters

29
yes
41
no


Infrequent Visitor
/02/01/21 01:55PM (UTC+8) Monday
36
yes
36
no
1 in ER
Gregorian Enchanter
/02/21/21 05:08PM (UTC+8) Sunday

Artifacts

25
yes
33
no
1 in ER
powder keg of beer
/01/29/21 11:22PM (UTC+8) Friday

Newspaper

61
yes
10
no
4 in ER
After receiving numerous complaints about light pollution from residents, the mayor of %random_town% would like to inform heroes that nighttime worship is now prohibited within the town.
/02/27/21 04:32PM (UTC+8) Saturday / Broken News

Meh. I just wanna show off my template

To anyone reading any of this: If you have any comments/suggestions/solutions to any of the above things I am looking into or you have any layout stuff you want looking into, feel free to leave me a message. Either friend me in-game and private message me; look for me in the forums; or leave a message on my Talk page.