Difference between revisions of "Template:Transclude"
Jump to navigation
Jump to search
301 Moved Permanently
Apache/2.4.58 (Ubuntu) Server at wiki.laptop.org Port 80
(update with collapsible section controls) |
|||
Line 36: | Line 36: | ||
See http://wiki-devel.sugarlabs.org/go/Template:Transclude for the appearance of this page with interwiki transclusion enabled. | See http://wiki-devel.sugarlabs.org/go/Template:Transclude for the appearance of this page with interwiki transclusion enabled. | ||
+ | ==Limitation== | ||
+ | * If the template is entered after a formatted indent such as *, #, :, the surrounding division frame will not capture the actual transclusion. | ||
</noinclude> | </noinclude> |
Revision as of 21:43, 10 May 2010
Note: The contents of this section have been transcluded from another page, [[{{{1}}}]]:
[[{{{1}}}]]
{{:{{{1}}}}}The purpose of this template is to reveal those sections of pages that come from transcluded pages. Pages using this template will be included in the Category:Page with transclusion and will display the contents of the transcluded page in a lightyellow color as a reminder of its off-page source.
Usage
The template takes 1 required,
- wiki page title
- Enter the local wiki page title (or interwiki prefix:remote title, if interwiki transclusion is allowed by the administrators).
and 4 optional parameters:
- collapsed
- Default: (empty string) - This shows the transcluded page.
- Enter
collapsed=collapsed
to have the transcluded page collapsed on page load (if javascript is enabled).
- note
- Default: <small>'''Note:''' The contents of this section have been transcluded from another page, [[{{{1}}}]]:</small>
- You may enter any text, which will be displayed before the transclusion in place of the default.
- heading
- Default: (empty string) - This shows the page title heading above the transclusion (by means of this wikicode, <h1>[[{{{1}}}]]</h1>.
- Entering any non-whitespace text will be used with the {{#if: parser function to replace the default page title heading with another block of introductory text.
- To hide the page title header, enter
<nowiki></nowiki>
.
- olpc
- Default: (empty string) - no effect.
- Entering any non-whitespace text will be used with the {{#if: parser function to bring in the OLPC Wiki logo image ahead of the transclusion.
Example syntax:
{{Transclude|the transcluded wiki page|note=|heading=optional introductory text|collapsed=collapsed}}
The example wiki text below produces this transclusion:
{{Transclude|olpc:Community Jabber Servers|olpc=1}}
Note: The contents of this section have been transcluded from another page, olpc:Community Jabber Servers:
olpc:Community Jabber Servers
Moved Permanently
The document has moved here.
Apache/2.4.58 (Ubuntu) Server at wiki.laptop.org Port 80
See http://wiki-devel.sugarlabs.org/go/Template:Transclude for the appearance of this page with interwiki transclusion enabled.
Limitation
- If the template is entered after a formatted indent such as *, #, :, the surrounding division frame will not capture the actual transclusion.