Template:Transclude

From Sugar Labs
Revision as of 18:05, 14 November 2009 by FGrose (talk | contribs)
Jump to navigation Jump to search

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

  1. note
    • Can be any text, which will be displayed before the transclusion in place of the default: Note: The contents of this section have been transcluded from [[{{{1}}}|another page]]:
  2. olpc
    • any non-whitespace text, used with {{#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=optional introductory text|olpc=1}}

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_wiki_logo.png

olpc:Community Jabber Servers

301 Moved Permanently

Moved Permanently

The document has moved here.


Apache/2.4.41 (Ubuntu) Server at wiki.laptop.org Port 80