Difference between revisions of "Template:Portlet"

From Organic Design wiki
(Test for breakages)
(Using unnamed parameters)
Line 1: Line 1:
 
<includeonly>[[Category:Portlet]]</includeonly>
 
<includeonly>[[Category:Portlet]]</includeonly>
 
<div class='portlet' id='p-navigation' style='width:{{{width}}}px'>
 
<div class='portlet' id='p-navigation' style='width:{{{width}}}px'>
<div style='font-size:8pt;'>{{{Name}}}</div>
+
<div style='font-size:8pt;'>{{{1}}}</div>
 
<div class='pBody' style='white-space:nowrap'>
 
<div class='pBody' style='white-space:nowrap'>
 
{{{2}}}
 
{{{2}}}
Line 7: Line 7:
 
</div>
 
</div>
 
<noinclude>
 
<noinclude>
|&larr;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{{width}}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&rarr;|  
+
|&larr;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{{3}}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&rarr;|  
  
This template  expects a title and content to create a formatted list surrounded by a grey box. It uses the class=''portlet'' div tag defined in [[MediaWiki:Wikiskin.css]]. A third optional parameter {{{width}}} is allowed which defines the portlet width in pixels
+
This template  expects a title and content to create a formatted list surrounded by a grey box. It uses the class=''portlet'' div tag defined in [[MediaWiki:Wikiskin.css]]. A third optional parameter {{{3}}} is allowed which defines the portlet width in pixels
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 08:38, 28 April 2007

{{{1}}}

{{{2}}}

|←          {{{3}}}           →|

This template expects a title and content to create a formatted list surrounded by a grey box. It uses the class=portlet div tag defined in MediaWiki:Wikiskin.css. A third optional parameter {{{3}}} is allowed which defines the portlet width in pixels