Can someone tell me what the difference is here:
{{TemplateData}} versus {{/TemplateData}}
My system does not recognize the second call as a subpage. Per anothers suggestions ZI tried to see if I have something set up wrong & I looked at Special:ExpandPages & I can not figure this out. john
On 2015-10-19 14:25, John Foster wrote:
Can someone tell me what the difference is here:
{{TemplateData}} versus {{/TemplateData}}
"{{TemplateData}}" will embed the page called "Template:TemplateData".
"{{/TemplateData}}" will embed the subpage "TemplateData" of the current page, assuming that its namespace allows subpages. For example, if you place this on a page called "Foo", it will embed "Foo/TemplateData".
Hallo
It will not work on page Foo. It works in template namespace only (?). On page Foo it transclude "template:/TemplateData" . Does it need a specific extension, or just a new version of MediaWiki?
Christian
On Mon, Oct 19, 2015 at 9:32 PM, Bartosz Dziewoński matma.rex@gmail.com wrote:
On 2015-10-19 14:25, John Foster wrote:
Can someone tell me what the difference is here:
{{TemplateData}} versus {{/TemplateData}}
"{{TemplateData}}" will embed the page called "Template:TemplateData".
"{{/TemplateData}}" will embed the subpage "TemplateData" of the current page, assuming that its namespace allows subpages. For example, if you place this on a page called "Foo", it will embed "Foo/TemplateData".
-- Bartosz Dziewoński
MediaWiki-l mailing list To unsubscribe, go to: https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 2015-10-19 22:20, Christian Bruun-Ghalbia wrote:
It will not work on page Foo. It works in template namespace only (?). On page Foo it transclude "template:/TemplateData"
Hmm, I actually think the main namespace doesn't allow subpages by default, so that's probably the reason. See https://www.mediawiki.org/wiki/Manual:$wgNamespacesWithSubpages on how to enable them.
mediawiki-l@lists.wikimedia.org