Difference between revisions of "Template:Example"
From ComputerCraft Wiki
m (Border thinned by 50%) |
m (Lightened inner-borders) |
||
Line 2: | Line 2: | ||
<table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;"> | <table style="width: 100%; border: solid 1px black; margin: 2px; border-spacing: 0px;"> | ||
− | <tr><td colspan="2" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid | + | <tr><td colspan="2" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid #C9C9C9 1px; background: #DBE5FF; line-height:28px;">[[File:Grid_paper.png|24px]] Example</td></tr> |
<tr style="background-color: #FFFFFF;"><td colspan="2" style="padding: .4em; padding-bottom: .8em;">{{{desc|No description provided.}}}</td></tr> | <tr style="background-color: #FFFFFF;"><td colspan="2" style="padding: .4em; padding-bottom: .8em;">{{{desc|No description provided.}}}</td></tr> | ||
<tr style="background-color: #E8E8E8;"> | <tr style="background-color: #E8E8E8;"> | ||
− | <td style="border-top: solid | + | <td style="border-top: solid #C9C9C9 1px; border-right: solid #C9C9C9 1px; padding: .4em; padding-right: .5em; width:120px;">'''Code'''</td> |
− | <td style="border-top: solid | + | <td style="border-top: solid #C9C9C9 1px; padding: .4em; padding-left: .5em;"> |
{{{code}}} | {{{code}}} | ||
</td> | </td> | ||
Line 14: | Line 14: | ||
</tr> | </tr> | ||
{{#if: {{{output|}}} | <tr> | {{#if: {{{output|}}} | <tr> | ||
− | <td style="border-right: solid | + | <td style="border-right: solid #C9C9C9 1px; padding: .4em; padding-right: .5em; width:120px;">'''Output'''</td> |
<td style="padding: .4em; padding-left: .5em;">{{{output}}}</td> | <td style="padding: .4em; padding-left: .5em;">{{{output}}}</td> | ||
</tr>}} | </tr>}} |
Revision as of 21:26, 30 November 2012
Wiki code
{{Example |desc=Prints a message |code=print("Hello world!") |output=Hello world! }}
Result
Example | |
Prints a message | |
Code |
print("Hello world!") |
Output | Hello world! |