Template:Project: Difference between revisions

From base48
imported>B42
(base logo as default image)
imported>B42
(handle case when image parameter is set to empty string)
Line 5: Line 5:
   <div style="margin-top: 0.3em; margin-bottom: 0.3em; width: 290px; font-weight: bolder; font-size: 1.4em; text-align: center;  color: #333;">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</div>
   <div style="margin-top: 0.3em; margin-bottom: 0.3em; width: 290px; font-weight: bolder; font-size: 1.4em; text-align: center;  color: #333;">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</div>
   <!-- Project logo -->
   <!-- Project logo -->
   <div style="width: 290px; text-align: center; margin: 5px;">[[File:{{{image|Base-small.png}}}|frameless|290px]]</div>
   <div style="width: 290px; text-align: center; margin: 5px;">[[File:{{#if: {{{image|}}}|{{{image}}}|Base-small.png}}|frameless|290px]]</div>
   <!-- Project Details -->
   <!-- Project Details -->
   <div style="border: 1px solid #CCC; margin: 5px; padding: 0.5em; background-color: #FFF;">
   <div style="border: 1px solid #CCC; margin: 5px; padding: 0.5em; background-color: #FFF;">

Revision as of 21:03, 12 February 2013