Board Thread:Support Requests - Getting Technical/@comment-31818441-20201018010649/@comment-31818441-20201019135542

Andrewds1021 wrote: Okay. I have done an investigation and here is what I have so far.

The script errors are from Template:Underlinked. This template, for some reason, is being switched back-and-forth between two different versions that use two different Lua Modules. Depending on which version of the template you are looking at, it uses either Module:Unsubst or Module:Message_box.

The former is used directly in the template with some other convoluted wikitext that even I can't figure out. Additionally, that module was deleted today from the wiki. This implementation of the template appears to come from Wikipedia (here) so I assume that is where the deleted module came from as well (here).

The latter is called by Template:Mbox which is called by Template:Ambox which is what the template in question calls. This implementation is from Templates Wiki as Parkour2906 mentioned above. Ambox appears to have been properly copied from Templates Wiki but Mbox and its associated module appear to have been copied from Wikipedia (template, module).

The issue here is that the Wikipedia modules utilize a part of the extension that is not supported on Fandom. So copy-pasting solutions from Wikipedia may not (in this case, do not) work.

The quickest solution is to recopy Mbox and its associated module from Templates Wiki. On Fandom, the module is called "Mbox" instead of "Message box"; the same name as the template. It appears that copying the module was already done by Mediocre Clarinet Player earlier today (here). So to was reverting Underlinked to the Template Wiki version. So that means the only thing left is to fix template Mbox.

Edit:

Here is an additional note about module Mbox. The versions on Fandom Developers Wiki, Template Wiki, and Fandom Starter Pages are different. So when trying to use the module, be sure to look at the correct version of the documentation. For those that don't know, Fandom Starter Pages is the legacy wiki that Fandom uses as a template when creating new legacy wikis. I am not sure what the template is for UCP wikis but the modules seem to be identical. The template "Underlinked" doesn't show a script error anymore but it doesn't display properly