Been working on troubleshooting the wiki this weekend. Started over with templates and just used some direct import of the Infobox template (from Miraheze, where its hosted).

What I dont know is about this function called "main". It obviously is needed for my Infobox to display correctly. Cant find anything on Miraheze's documentation (or even just generic Mediawiki documentation) about this "main" function.

#MediaWiki #Troubleshooting #MirahezeWiki

The missing "main" function error is not just on the Infobox template page of my wiki. Its on other pages as well (example attached)

I would guess that its problem with function 'main' not existing is because of the line that reads "

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}

***
My guess is that I could replace the above code with {{Documentation}} and maybe that would clear the script error?

#Mediawiki #MirahezeWiki #MediawikiScriptError

So, of the tmeplates that have script errors, there are two common parts of script that I have confirmed clears the errors when removed from those template page

The first one is "{{Documentation}}" . Yes that is the way that Mediawiki knows to insert documentation . If removing that from the affected templates is what woks, than it works. However, I imagine that {{Documentation}} is the way that templates can transclude the /doc page). Using 2 sets of brackets with the word "Documentation" inside it is the most basic way to bring in a Documentation page.

Interestingly enough, the OTHER code causing these errors is something like this:
{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}

Seeing "main" in that code would definitely make sense on why Im getting the Script error: "The function "main" does not exist. ". Unlike the {{Documentation}} reference, I am not sure how to remove this without causing issue.

#MediawikiTemplates #Scribunto