User:StDoodle/Code sandbox: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>StDoodle
mNo edit summary
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>Uses the named parameters ''title'', ''description'' and ''code'' to display a code block & its information.</noinclude>
Uses the named parameters ''title'', ''description'' and ''code'' to display a code block & its information.</noinclude>
<includeonly>
<includeonly>
<nowiki>
{{#if: {{{title|}}}|<h2>{{{title}}}</h2>}}
&lt;div style="border: dashed 1px green; padding: 1em;&quot;&gt;
{{#if: {{{description|}}}|<p>{{{description}}}</p>}}
&lt;syntaxhighlight lang&#x3d;&quot;c&quot;&gt;
<div style="border: dashed 1px green; padding: 1em;">
//sample code
</nowiki>
{{{code}}}
{{{code}}}
<nowiki>
</div></includeonly>
&lt;/syntaxhighlight&gt;
&lt;/div&gt;</nowiki></includeonly>

Latest revision as of 11:43, 25 February 2010

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