Changes

Jump to navigation Jump to search
452 bytes added ,  19:35, 14 November 2009
enable alternate heading
Line 1: Line 1: −
<div style="border:1px solid orange; margin:0px; padding-left:6px; padding-right:6px; background-color:lightyellow;">
+
<div style="border:1px solid orange; margin:0px; padding-left:6px; padding-right:6px; background-color:lightyellow;">{{#if: {{{olpc|}}}|<span class="plainlinks" style="clear:left; float: left; margin: .5em 1.7em .5em 0; background: white;">[http://wiki.laptop.org/go/The_OLPC_Wiki http://wiki.laptop.org/skins/common/images/OLPC_wiki_logo.png]</span>|}}{{{note|<small>'''Note:''' The contents of this section have been transcluded from [[{{{1}}}|another page]]:</small><br>}}}{{#if: {{{heading|}}}|{{{heading}}}|<div style="clear:both"></div><h1>[[{{{1}}}]]</h1> }}<div style="clear:both"></div>{{:{{{1}}}}}</div><includeonly>[[Category:Page with transclusion]]</includeonly><noinclude>
<small>{{{note|'''Note:''' The contents of this section have been transcluded from [[{{{1}}}|another page]]:}}}</small><br>
  −
{{#if: {{{olpc|}}}|<span class="plainlinks">[http://wiki.laptop.org/go/The_OLPC_Wiki http://wiki.laptop.org/skins/common/images/OLPC_wiki_logo.png]</span>|}}<h1>[[{{{1}}}]]</h1>{{:{{{1}}}}}</div><includeonly>[[Category:Page with transclusion]]</includeonly><noinclude>
   
[[Category:Template]]
 
[[Category:Template]]
   Line 9: Line 7:  
The template takes two optional parameters
 
The template takes two optional parameters
 
# '''note'''
 
# '''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 <nowiki>[[{{{1}}}|another page]]:</nowiki>
+
#* Can be any text, which will be displayed before the transclusion in place of the default: <nowiki><small>'''Note:''' The contents of this section have been transcluded from [[{{{1}}}|another page]]:</small><br> </nowiki>
 +
# '''heading'''
 +
#* any non-whitespace text, used with the <nowiki>{{#if:</nowiki> parser function to replace the default page title heading with another block of introductory text, or none (<nowiki><nowiki></nowiki></nowiki>). Default: (empty string).
 
# '''olpc'''
 
# '''olpc'''
#* any non-whitespace text, used with <nowiki>{{#if:</nowiki> parser function to bring in the OLPC Wiki image ahead of the transclusion. Default: (empty string).
+
#* any non-whitespace text, used with the <nowiki>{{#if:</nowiki> parser function to bring in the OLPC Wiki image ahead of the transclusion. Default: (empty string).
    
Example syntax:
 
Example syntax:

Navigation menu