Difference between revisions of "Template:Transclude"

From Sugar Labs
Jump to navigation Jump to search
Line 10: Line 10:
 
<includeonly>[[Category:Page with transclusion]]</includeonly>
 
<includeonly>[[Category:Page with transclusion]]</includeonly>
 
<div style="border-top:1px solid orange; border-bottom:1px solid orange; margin:0px; background-color:lightyellow;">
 
<div style="border-top:1px solid orange; border-bottom:1px solid orange; margin:0px; background-color:lightyellow;">
<small>{{{2|'''Note:''' The contents of this section have been transcluded from [[{{{1}}}|another page]]:}}}</small>{{:{{{1}}}}}</div>
+
<small>{{{2|'''Note:''' The contents of this section have been transcluded from [[{{{1}}}|another page]]:}}}</small>
 +
{{:{{{1}}}}}</div>

Revision as of 21:24, 23 August 2009

The purpose of this template is to reveal sections of pages that come from transcluded pages. Pages tagged with this will be included in the Category:Page with transclusion and will display the contents of the page in a lightyellow color as a reminder for the whole (just in case there are links to subsections that fail to make the warning visible.

The template takes an extra (optional) parameter that can be any text and will be displayed before the transclusion.

{{Transcluded|the transcluded wiki page|optional text}}

Note: The contents of this section have been transcluded from [[{{{1}}}|another page]]:

{{:{{{1}}}}}