Difference between revisions of "Template:Example"

From ComputerCraft Wiki
Jump to: navigation, search
m (Filled to 100%)
m (Border thinned by 50%)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
<table style="width: 100%; border: solid 2px 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 black 1px; background: #DBE5FF; line-height:28px;">[[File:Grid_paper.png|24px]]&nbsp;&nbsp;Example</td></tr>
 
<tr><td colspan="2" style="font-weight: bold; font-size: large; padding-bottom: .3em; border-bottom: solid black 1px; background: #DBE5FF; line-height:28px;">[[File:Grid_paper.png|24px]]&nbsp;&nbsp;Example</td></tr>

Revision as of 21:22, 30 November 2012


Wiki code

{{Example
 |desc=Prints a message
 |code=print("Hello world!")
 |output=Hello world!
 }}

Result

Grid paper.png  Example
Prints a message
Code
print("Hello world!")
Output Hello world!