User:Frank Ralf/Subpage transclusion
Note: You are currently viewing documentation for Moodle 3.3. Up-to-date documentation for the latest stable version of Moodle is probably available here: Frank Ralf/Subpage transclusion.
This is only for testing purposes.
"One can cut and paste the text to be transcluded into a subpage, then use the name of the subpage in the transclusion template. This approach can only be used with subpages from User, Talk or Wikipedia pages; currently, subpages cannot be created from main article pages.
Example: you want to discuss the deletion and redirecting of Pussycat to Cat. First, create the subpage Talk:Pussycat/Let's delete Pussycat!, write your comment into it, then transclude it in Talk:Pussycat and Talk:Cat using the template Talk:Pussycat/Let's delete Pussycat!. Comments posted in either talk page will be shown in both." http://www.mediawiki.org/wiki/Help:Transclusion#Subpages
Instead of just linking to a subpage like so:
you can use MediaWiki's transclusion mechanismen to directly integrate the content of the subpage at any other place in the wiki.
The following template is used to pull the content from a subpage of this page:
Below the following line comes the external (transcluded) content.
This information lives on a subpage which is transcluded in the main article. Clicking the edit link will lead directly to the subpage. --Frank Ralf 07:42, 22 February 2011 (UTC)
Even more sub content
... --Frank Ralf 18:09, 22 February 2011 (UTC)
This is information only relevant for Moodle 1.9. This information is written directly on this page.
This is information only relevant for Moodle 2.0. This information is written directly on this page.