Fandom Developers Wiki

This is the talk page for discussing improvements to the WallGreeting page.

Not working[]

I've got a wiki where this isn't working. See https://bubble-gum-simulator.fandom.com/wiki/Message_Wall:Mr.Bladen SlyCooperFan1 (talk) 02:55, October 15, 2020 (UTC)

Update for namespace compatability[]

Hello!

The script worked before with the user subpage. I have seen that it was updated to respect the Message_Wall_Greeting namespace. Now it seems like it no longer viewing the user subpage (whether a MWG-namespace page exists or not) - it's only viewing the MWG-namespace page if one exists.

This may actually be a preffered behavior (unless staff are going to protect editing this namespace) - but in this case the script documentation should be updated, as well as the embedded EDIT GREETING button, which is currently linking to the user subpage despite viewing another page. Nam 07:18, October 15, 2020 (UTC)


USERNAME Template Compatibility[]

Hey!

I've noticed that the USERNAME template doesn't work on greetings when in the Message Wall namespace, but it does on the Message Wall Greeting namespace. Any possibility that can be fixed?

E12Dragon | Talk | Contributions | 2020 October 25 21:30 (UTC)

It looks like all JS-based exstensions don't work on there, including collapsibles which are a basic MediaWiki feature. I wonder if this is something that can be worked-around. Nam 02:23, November 1, 2020 (UTC)
Update: I tried (on my dev tools) to make the script to allow collapsibles and etc. by calling mw.hook('wikipage.content').fire($('#MessageWallGreeting'));, and it looks like some problems in the script prevent it.
  • Trying to create an array from .InputUserName elements throws an error when they don't exist, breaks all the 'wikipage-content' hook (Also the WallGreeting script should allow the InputUsername script, not mimic it and forcing it on wikis).
  • It looks like the code that adds an edit button throws an exception when the user is not the wall owner.
  • The script adds itself to the 'wikiapage.content' hook but does not remove itself when done, causing the previous problem to replicate.
Edit: I think I have fixed the problems. See below.
Nam 10:42, December 21, 2020 (UTC)
Cool! That's good to hear. Thanks for your help with this!
35?cb=20201125073221.png120?cb=20201125073158.png| 40?cb=20201125075830.png | 27/12/2020 01:05

A few improvements and fixes[]

  • Calling mw.hook('wikipage.content').fire - in order to allow JS-based features such as collapsibles to work in the greeting.
    • That applies to the InputUsername script too when installed, and I removed the code that tries to just replicate that script.
  • Giving precedence for the user subpage (User:USERNAME/Message Wall Greeting) when exists, over the Message Wall Greeting:USERNAME page, since the later is only for backward compatability and since normal users cannot delete it when they want to move to the new one.
  • Edit button:
    • Fixing an issue that prevented it from appearing sometimes
    • matching the button target to the page displayed (user subpage or Greeting-namespace page)
    • Directing edits in the Greeting-namespace to the 2017 editor, since the 2010 editor or ?action=edit don't work on it.
    • Displaying the edit button even when the greeting itself does not exist or cannot be retrieved.
    • Handling the error when the icons library isn't ready
  • Not displaying the greeting on a single-thread view, when a box for leaving a new message does now exist (similar to legacy).

Nam 22:09, December 23, 2020 (UTC)

Remove Edit Button[]

Hello! I was wondering if it is possible to remove the edit button that appears above the greeting? I know that I am the only one who can see the edit button, and that viewers don't see it, but I was wondering if it is possible to just remove it completely. Thank you!

21:42, January 22, 2021 (UTC)

I would assume you are talking about hiding it for you personally, not for everyone on the wiki. You can put the following code in your personal CSS:
#MessageWallGreeting .MessageWallEditButton {
    display: none;
}
Nam 21:01, January 23, 2021 (UTC)
Yes I was. Thank you so much!

03:19, January 24, 2021 (UTC)

It's not working for my wiki[]

Hello! I recently installed this on my wiki, the Coding Help Wiki. I created a page for my message wall greeting HERE but it isn't showing up on my Message Wall. I also have another greeting HERE. Is it not working because I have BOTH pages? So do I just delete one?

Thanks!


Cleverduck09

CONTACT | SANDBOX | GUESTBOOK | CONTRIBS
"NOT ALL THOSE WHO WANDER ARE LOST"

14:23, 31 March 2021 (UTC)

Hello!
I believe most scripts on your ImportJS page don't work, because some of them are not compatible with UCP (WallGreetingButton, for example) and those may break everything below them. Use Dev wiki:UCP to see which scripts are compatible, everything that isn't should be either deleted or moved to bottom. Also, for some reason you have WallGreeting imported twice.
Nam 21:48, 31 March 2021 (UTC)