Note: You are currently viewing documentation for Moodle 3.1. Up-to-date documentation for the latest stable version of Moodle is probably available here: Frank Ralf/Subpage transclusion.

User:Frank Ralf/Subpage transclusion: Difference between revisions

From MoodleDocs
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
This is only for testing purposes.
This is only for testing purposes.


== General information - <nowiki>{{/general information}}</nowiki> ==
== MediaWiki documentation ==
 
"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
 
== General information ==
 
Instead of just linking to a subpage like so:
 
<nowiki>[[/general information]]</nowiki>
 
you can use MediaWiki's [http://www.mediawiki.org/wiki/Help:Transclusion#Subpages 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:
<nowiki>{{/general information}}</nowiki>  
 
{{Note|
Below the following line comes the external (transcluded) content.
}}
 
----


{{/general information}}
{{/general information}}
Line 8: Line 30:


{{Moodle 1.9}}
{{Moodle 1.9}}
This is information only relevant for Moodle 1.9. This information is written directly on this page.


== Moodle 2.0 ==
== Moodle 2.0 ==


{{Moodle 2.0}}
{{Moodle 2.0}}
This is information only relevant for Moodle 2.0. This information is written directly on this page.
== See also: ==
* [[MoodleDocs:Transclusion]]

Latest revision as of 09:33, 12 August 2011

This is only for testing purposes.

MediaWiki documentation

"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

General information

Instead of just linking to a subpage like so:

[[/general information]] 

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:

{{/general information}} 
Note:

Below the following line comes the external (transcluded) content.



Transcluded subpage

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)

Moodle 1.9

Template:Moodle 1.9

This is information only relevant for Moodle 1.9. This information is written directly on this page.

Moodle 2.0

Template:Moodle 2.0

This is information only relevant for Moodle 2.0. This information is written directly on this page.


See also: