Difference between revisions of "Template:Example"

From ComputerCraft Wiki
Jump to: navigation, search
Line 11: Line 11:
 
</td>
 
</td>
 
</tr>
 
</tr>
{{#if:{{{output|}}}|<tr>
+
{{#if: {{output|}}} | <tr>
 
<td style="padding-right: .5em; border-right: solid #DDD 1px;">'''Output'''</td>
 
<td style="padding-right: .5em; border-right: solid #DDD 1px;">'''Output'''</td>
 
<td style="padding-left: .5em;">{{{output}}}</td>
 
<td style="padding-left: .5em;">{{{output}}}</td>

Revision as of 12:04, 26 February 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!