Template:Transclude: Difference between revisions
Appearance
link to wiki-devel |
m fix typo |
||
| Line 22: | Line 22: | ||
{{Transclude|olpc:Community Jabber Servers|olpc=1}} | {{Transclude|olpc:Community Jabber Servers|olpc=1}} | ||
See http://wiki-devel | See http://wiki-devel.sugarlabs.org/go/Template:Transclude for the appearance of this page with interwiki transclusion enabled. | ||
</noinclude> | </noinclude> | ||
Revision as of 19:50, 14 November 2009
Note: The contents of this section have been transcluded from [[{{{1}}}|another page]]:
[[{{{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 two optional parameters
- note
- Can be any text, which will be displayed before the transclusion in place of the default: <small>'''Note:''' The contents of this section have been transcluded from [[{{{1}}}|another page]]:</small><br>
- heading
- any non-whitespace text, used with the {{#if: parser function to replace the default page title heading with another block of introductory text, or none (<nowiki></nowiki>). Default: (empty string).
- olpc
- any non-whitespace text, used with the {{#if: parser function to bring in the OLPC Wiki image ahead of the transclusion. Default: (empty string).
Example syntax:
{{Transclude|the transcluded wiki page|note=|heading=optional introductory text|olpc=}}
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
[Template fetch failed for http://wiki.laptop.org/go/Community_Jabber_Servers?action=render: HTTP 401]See http://wiki-devel.sugarlabs.org/go/Template:Transclude for the appearance of this page with interwiki transclusion enabled.