Topic on Project:Support desk

How to Transclude Rendered Page, Instead of Page Source?

5
Summary by Johnywhy
  • You could in theory set up $wgEnableScaryTransclude using an interwiki link that points to the current wiki, to solve this problem. You would have to add an interwiki prefix that points to the current wiki.
  • might help, not tested:
Johnywhy (talkcontribs)
Bawolff (talkcontribs)

Its generally not possible to transclude a page so that its rendered in the context of its original name instead of the current name (If that's what is meant).

The usual approach to this is to instead of using things like {{PAGENAME}} use {{subst:PAGENAME}}, or pass the page name you want explicitly as a parameter, e.g. {{mytemplate|page={{PAGENAME}}}}

Johnywhy (talkcontribs)
Bawolff (talkcontribs)

You could in theory set up $wgEnableScaryTransclude using an interwiki link that points to the current wiki, to solve this problem. You would have to add an interwiki prefix that points to the current wiki.

Johnywhy (talkcontribs)

Thx.