Topic on Project:Support desk

Templates not Transcluding on 1.41 wiki

3
71.185.78.14 (talkcontribs)

Hi Everyone,

I've been trying to set up templates on my wiki but every time I call for them on a page they just appear as a link. For example, I'd make a page called Welcome in the template namespace and write "Welcome to my Wiki!" and then put

Version:1.41 Php:8.2.18 MariaDB:10.6.16 Extensions (I think are important) are templatestyles, templatedata, templatewizard, cargo, lockdown, parserfunctions, scribunto, and visual editor.

When disabling templatestyles, templatedata, templatewizard, parserfunctions, and scribunto. The template function still doesn't work. I don't get any error messages either. I've also tried importing templates just in case I was setting them up wrong but that didn't work either.

Any input is appreciated.

71.185.78.14 (talkcontribs)

UPDATE: I figured out how to make templates work on my wiki. My localsettings.php file had $wgNonincludableNamespaces = array(); defined to protect certain namespaces. For some reason, this caused all templates to not work. Trying to define $wgNonincludableNamespaces[NS_SPECIAL] = true; instead of using an array still causes templates to not work in the main namespace. Is this a bug in 1.41.0 or am I missing something?

Bawolff (talkcontribs)

$wgNonincludableNamespaces[NS_SPECIAL] = true; is incorrect syntax. See manual:$wgNonincludableNamespaces for information on how to use this setting.

Please also include the exact configuration settings you used in your post.

Reply to "Templates not Transcluding on 1.41 wiki"