Difference between revisions of "Template:Example"

From ComputerCraft Wiki
Jump to: navigation, search
(Change size because it looks better)
m (Protected "Template:Example": This template is a live template; please edit using a sandbox! ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(One intermediate revision by the same user not shown)
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 #C9C9C9 1px; background: #DBE5FF; line-height:28px;">[[File:Grid_paper.png]]&nbsp;&nbsp;Example</td></tr>
+
<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]]&nbsp;&nbsp;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>

Latest revision as of 11:28, 3 December 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!