Page MenuHomeMiraheze

Help needed trying to get transcluded templates to function.
Closed, ResolvedPublic

Description | templatewiki

I'm not a bureaucrat on templatewiki but I've been working on it. Template wiki is a Miraheze in house project.

This below for me is just a technical headache and I don't have the patience for it. I'd rather somebody else sorts it out please!?

Templates from template wiki can't be transcluded because the templates expect the local wiki to have the Lua modules already installed, instead of fetching the modules from template wiki.

If for example say on modularwiki I do {{raw:templatewiki:Cite book}}, I get Script error: No such module "citation/CS1". because instead of including it with the transclusion, it's looking for the module on modularwiki. So then I try to also separately transclude the module with {{raw:templatewiki:Module:Citation/CS1}} I get Error: Lua error at line 1: unexpected symbol near '{'.

It'd be defeating the point of templatewiki to import all the Lua modules that get errored about into the local wiki as required. Besides that, when importing modules there's an option "Include templates" which also defeats the point of transcluding templates from templatewiki.

Maybe Wikia/Fandom have found a workaround for this for their template repository?

How do I get templatewiki working to allow other wikis to transclude templates with Lua modules please!?

Event Timeline

Ok, so I've been taking a look into this, and I've not been able to find much on that seems all that helpful. I'm going to take a look at some methods of getting around these requirements, but we'll see if they work.

Per Void. If the tasks are upstream there are no additional measures we can take but wait for them to be resolved and update.