FANDOM


A Transclusion is when the code from a page is put onto another. It is usually used with templates, but it can also be used with other namespaces

Template TransclusionEdit

To make a Template Transclusion, you must first have a Template. For this code, we will pretend that there is a template named Foo.

Typing {{Foo}} calls up all of the code on the Foo template page (see Namespaces for more info).

SubstitutionEdit

A different way to use a template is to substitute its content into a page. This allows you to modify the template once it is on the page. Use the following code:

{{SUBST:TEMPLATE}}

The SUBST substitutes in the code so that it can be edited on each page.

Namespace TransclusionEdit

If you desire a mainspace page to be put into another, then use the following code

{{:NAME OF PAGE}}

To use, replace NAME OF PAGE with the name of the page that you want transcluded.

If you want to be able to modify the transcluded page once it is on the page, then use the SUBST once again.

{{:SUBST:NAME OF PAGE}}

To use, replace NAME OF PAGE with the name of the page that you want transcluded.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.