Hi Puxlit, welcome to Fandom Developers Wiki! Thanks for your edit to the MediaWiki:Custom-EditConflictAlert/i18n.json page.
Hello Puxlit. I am extremely new to Lua and have been working on a module of my own. For some odd reason, I decided to browse the current list of modules when yours caught my eye. Is there a way to use it from within a different module? If so, it would be perfect for what I am trying to do.
Andrewds1021 (talk) 03:56, February 12, 2020 (UTC)
- Not easily at the moment, but I'm happy to export a few functions so that it can be more readily used in other libraries. What are you after? Do you just want to get a message's MD5 digest in hex form, or do you need access to the raw 128-bit hash value? Are your messages going to be short, or will they be large enough to warrant an init/update/finalize sort of interface? puxlit (talk) 05:36, February 12, 2020 (UTC)
I am not familiar with MD5 so I am not sure at what point I would need functions like init. All I know I need is the hex message digest; actually just the first two characters. The input would be a page name; more specifically, an image name. What I am trying to do with my module is provide a simpler interface for users to take advantage of Vignette via hotlinked images.
Long story short, we occassionally get users on Community Central asking if there is a way to crop/zoom images. Typically the easiest solution is to edit offline and upload a new version. However, in a few cases, it actually made more sense to use Vignette via hotlinked images. To simplify this process, I developed a template (prototype here, final version developed offline). To provide more general use, I decided to add the ability to get images from other wikis (ex. affiliate wiki modules) and the ability to have the image link somewhere. However, this turned out to require a lot of parser functions. In the past, other users I have interacted with like Fngplg have said that Lua can be a good alternative to parser functions. Thus I decided to try and make a Lua module for the task.
Andrewds1021 (talk) 20:44, February 12, 2020 (UTC)
I forgot to mention where MD5 comes in. The image URL includes the first two digits of the MD5 hash in it (according to KockaAdmiralac). Currently, both versions (parser functions and Lua) require the user to already know what this special "code" is. However, if I could use your module, I could remove this limitation for the Lua version.
Andrewds1021 (talk) 20:52, February 12, 2020 (UTC)
Thanks for your patience. It seems like Vignette shenanigans are quite a common use case; I've had reason to implement a similar template before (for cropping and to prevent Wikia from picking notice template images as the article's thumbnail).
I've updated the module to export something amenable to library consumption. Example usage follows.
-- Import local hash = require('Dev:Hash') -- Your implementation local file_title = 'Izuku_Midoriya_school_profile.png' local file_hash = hash.MD5(file_title).hexdigest() local vignette_hash_path_components = string.format('/%s/%s', string.sub(file_hash, 0, 1), string.sub(file_hash, 0, 2))
I'll update the docs and test cases later. Please let me know if you have any additional questions. puxlit (talk) 11:07, February 17, 2020 (UTC); edited 11:40, February 17, 2020 (UTC)
- No worries. Thanks for making the change. If I had known about your template, it might have saved me some time on mine. Oh well.
- Andrewds1021 (talk) 20:04, February 19, 2020 (UTC)
twit -D 06:42, May 27, 2020 (UTC)
- Thanks babe. puxlit (talk) 08:00, May 27, 2020 (UTC)
Hi, I saw you updated AbuseLogRC a lot, so first of all, thank you for that. Since you seem to understand the code well, could you help figure out why the API throws me the error "[7ae65692a48c4983] Caught exception of type Error" on some wikis? I'm pretty sure this happens only on international wikis, since the script seems to be working on One Piece (EN) but not on One Piece (IT) (and other IT wikis). To be clear, the table is loaded correctly, but I get that API error.
leviathan_89 12:50, October 21, 2020 (UTC)
- Per our debugging session, we determined that the API error seems to occur on w:c:it.onepiece when performing
aflprop. Pending the approval of a small change, it will be possible to suppress such requests by configuring
false, while we wait for Wikia staff to address the underlying bug. puxlit (talk) 11:37, October 26, 2020 (UTC)
DropdownMenu on UCP
Hi, I saw on the DropdownMenu page that you are the maintainer for UCP, do you know when this will be fully sopported on UCP (I also sent a message on the talk page itself)? <: GotenSakurauchi (Message Wall • Contributions • Guestbook) 12:25, November 22, 2020 (UTC)
- Hey there, I've left a reply on DropdownMenu's talk page. Apologies for the tardy response! puxlit (talk) 10:51, December 1, 2020 (UTC)
AbuseLogRC Error spam
FileUsageAuto-update UCP compatibility
Hi Puxlit! I saw on the UCP compatibility list that you're the maintainer for FileUsageAuto-update. I wanted to ask if there's any news on its current status now that the UCP has taken over for the most part, as it seems to be a beloved feature for various wikis. If there's an update on when it might become available, that would be great to know! ReverieCode 10:56, 5 February 2021 (UTC)
- Hi Reverie! Yes, sorry it's taken so long to update! I'll be looking to finish off the UCP compatibility changes this coming weekend. puxlit (talk) 21:00, 9 February 2021 (UTC)
- Hey there, may we ask that you look into the matter more thoroughly? It's just that this is a rather important thing that many people use. Energy X
- Hello there, I hope you're doing well. As another user who used this script a lot, may I ask if there is an approximate timeline as to when this script will become compatible? No pressure, I would just like to know since it's been a while. ZioreRogue (talk) 07:50, 3 May 2021 (UTC)
- Thank you all for your patience thus far, and for expressing how important this script is to your workflows. I'll be looking to update FUAu over the next few days. 🤞 puxlit (talk) 09:37, 5 May 2021 (UTC)
Hi! The CategoryRenameAuto-update extension/module is giving this error message when I try to use it and you're listed as the maintainer - do you have any idea when it'll be fixed? (it's giving the same error message for all the pages in the category)
The page "Andoni Indar" could not be submitted because of error code:"redirect-appendonly; You have attempted to edit using the redirect-following mode, which must be used in conjunction with "section=new", "prependtext", or "appendtext".". Please update the link(s) on that page manually.
(I only noticed it was broken after I'd tried using it) 8lottie8 (talk) 11:29, 2 May 2021 (UTC)
- Thanks for the report. CRAu is not yet compatible with UCP, but I'll be looking to fix that over the next few days. puxlit (talk) 09:39, 5 May 2021 (UTC)