Skip to main content
Jump to: navigation, search

Difference between revisions of "Template:Codeblock"

(New page: <noinclude>Category:Templates Displays a block of code inside a small table cell instead of a full-width cell. ===Usage=== ; <nowiki>{{codeblock|some code}} -></nowiki> <table><tr><td>...)
 
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<noinclude>[[Category:Templates]]
 
<noinclude>[[Category:Templates]]
 
Displays a block of code inside a small table cell instead of a full-width cell.
 
Displays a block of code inside a small table cell instead of a full-width cell.
===Usage===
+
 
; <nowiki>{{codeblock|some code}} -></nowiki>
+
{{Usage|<pre>{{codeblock|some code}}</pre>|2={{codeblock|some code}}}}
<table><tr><td>
+
</noinclude><includeonly><table><tr><td>
some code
+
</td></tr></table></noinclude>
+
<includeonly><table><tr><td>
+
 
  {{{1}}}
 
  {{{1}}}
 
</td></tr></table></includeonly>
 
</td></tr></table></includeonly>

Latest revision as of 17:09, 12 February 2008

Displays a block of code inside a small table cell instead of a full-width cell.

Markup Rendering
{{codeblock|some code}}
some code


Back to the top