Difference between revisions of "Template:CodeSample"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
(Created page with '<noinclude>Uses the named parameters ''title'', ''description'' and ''code'' to display a code block & its information.Category:Basic Templates</noinclude> <includeonly> {{#i…')
 
imported>StDoodle
m
Line 3: Line 3:
 
{{#if: {{{title|}}}|<h2>{{{title}}}</h2>}}
 
{{#if: {{{title|}}}|<h2>{{{title}}}</h2>}}
 
{{#if: {{{description|}}}|<p>{{{description}}}</p>}}
 
{{#if: {{{description|}}}|<p>{{{description}}}</p>}}
<div style="border: dashed 1px green; padding: 1em;">
+
<div style="margin-bottom: 1em; border: dashed 1px green; padding: 1em;">
 
{{{code}}}
 
{{{code}}}
 
</div></includeonly>
 
</div></includeonly>

Revision as of 12:18, 25 February 2010

Uses the named parameters title, description and code to display a code block & its information.