Difference between revisions of "Template:1010PrAD"
From CompSciWiki
m |
|||
Line 2: | Line 2: | ||
{|style="width: 100%; font-weight: normal" cellpadding="5" cellspacing="0" | {|style="width: 100%; font-weight: normal" cellpadding="5" cellspacing="0" | ||
|- | |- | ||
− | !style="min-width: 65%; font-weight: normal; padding: 15px; background: #E1E7EE; border-left: 1px solid grey; border-top: 1px solid grey; border-bottom: 1px solid grey" align="left" valign="top"| | + | !width: 70%; style="min-width: 65%; font-weight: normal; padding: 15px; background: #E1E7EE; border-left: 1px solid grey; border-top: 1px solid grey; border-bottom: 1px solid grey" align="left" valign="top"| |
=Problem= | =Problem= | ||
{{{Problem|Problem goes here.}}} | {{{Problem|Problem goes here.}}} |
Revision as of 12:09, 9 April 2010
This template is used for the Program-A-Day page. Instructions and example usage are below.
Example Code Usage
{{1010PrAD |ProblemName=The name of the program |Problem=The problem |SideSectionTitle=...by students |SideSection= [[Image:OperatingSystemExample.jpg|center]] <BR> An image or By Students section |Solution=The solution... |SolutionCode=public class MySolution { public static void main ( String [] args ) { System.out.println("Hello, world!"); } } }}
Current Issues
- In the SolutionCode parameter, all OR pipe characters ( | character ) should be replaced with the pipe wiki template:
{{!}}
- Syntax highlighting will have to wait for the Wikimedia system to be updated to a more recent version.
- Note that there is NO WORDWRAP in use inside <pre> tags. Please be sure to restrict the number of characters per line in your SolutionCode parameter and inside any <pre> tags.