If it's for a single page, you can use the "Find and Replace" feature of the regular source editor. You can find it under "Advanced" or under the hamburger button at the top right, depending on the type of source editor you're using. Then enable regex searching by clicking on the button marked (.*) - see screenshot:
If you need to apply it to many pages, you can do it with MassEdit - choose "Find and replace content" under "Select Operation" and choose "Regular expressions" under "Select Matching".
Sorry, this is the corrected regex, actually tested this time...
^([=]{1,5}[^=].*[=]{1,5})$The issue is that custom scripts on are reloaded each time you reload a page, and not as the first priority. So I don't think there's a proper way around it.
Assuming no edge cases with strange syntax, I think the following regex would do:
Regex:
^[=]{2,4}.+[=]{2,4}$Replace with:
=$1=Interesting. It's not listed on Help:Extensions#Available_on_request
^ nice but there's no way for a user to use it as it has to be installed by Fandom.
Global_Lua_Modules/Debug seems to try to give some response to that exact issue. Although I haven't really tried to use it myself.
Edit: Also, it seems like it could be improved because nowdays' Scribunto allows creating an actual frame object that can actually preprocess Wikitext
A script can probably do that, at least for some of the special pages, but I don't know about an actual script that does.
On Fandom you can use JavaScript, CSS and Scribunto Lua
I don't think it'll be approved either because dev wiki policy prohibits scripts aiming for specific wikis. You'll need to request enabling custom JS on the wiki you're working on, put the code there, and submit for approval.
That said, you're going to great lengths to make the audio control "customizable". It doesn't seem worth it in my opinion. Consider also that such custom controls often fail to provide accessibilty.
Wikitext isn't HTML. It allows usage of some HTML tags but "audio" isn't one of them, neigther is "button". The only way to pull that out is by using custom JavaScript to inject HTML elements onto the page.
Also, the format you've used for "source" won't work. You can use "/wiki/Special:Redirect/file/{{{1}}}" instead.
That's not something a script is capable of doing
I think Fandom already blocked that API "hole" and you can't anymore add anything to a poll.
As for the original question - no, it's not possible to use a template from another wiki without copying it over. The only exception is templates on Community Central which can be used on any other Fandom wiki, but it's only recommended for specific usecases that require a global template.
What do you mean the JavaScript name?
That's a built-in menu, not something made by a custom script.
AjaxPoll simply takes a poll already posted on Discussions and displays it on a page. That's why it can never work on a wiki with no Discussions. Nor it'll work if the original poll post has been deleted.
You're right that any corrouption of the page storing the vote information can technically be tracked down and reverted, but the whole process seems as not worth it to me. The page also cannot be protected as that would prevent users from voting.
Of course, anyone who does want to create such a script despite the limitations - is welcome to. But I think that's the main reason why no one ever did.
Creating a voting/rating mechanism in user scripts is extremely problematic, as the only place the script can store the voting information is on a page visible to everyone and editable by anyone.
You'll have to explain better what it means to score pages. For example, score based on what? And where is the scoring supposed to be displayed?
Scripts don't usually create any new syntax so I don't think it'll help.
Check out the built-in Tabber though