I've set up a MediaWiki on a wiki farm, and want to have Wikipedia-style templates available, like {{reflist}}
, {{merge from|article}}
, {{cite book|...}}
, etc.
Following DRY principle, it would seem best to transclude them, which is possible using syntax like {{raw:w:reflist}}
, and this is recommended by Wikia Help:Shared templates.
This works for simple templates, however, for more complicated ones like reflist
, I get Script error: No such module "Check for unknown parameters"
. I guess the raw
transclusion can bring in some template dependencies, but not Lua module dependencies?
Also, the Wikia page says "Parameters cannot be used with shared templates", which would be bad (but I'm not sure is actually true). Also Manual:$wgEnableScaryTranscluding says "It's somewhat inefficient."
Another option is just copying the template code over, which seems to be the recommended way on Template:Reflist/Transwiki guide, but this requires copying many templates and Lua modules, which aren't automatically updated when the upstream template gets bug fixes.
What's the smoothest way to do this? Is there another option I haven't discovered?