<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.openfortress.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ACodeBlock%2FDoc</id>
	<title>Template:CodeBlock/Doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.openfortress.wiki/w/index.php?action=history&amp;feed=atom&amp;title=Template%3ACodeBlock%2FDoc"/>
	<link rel="alternate" type="text/html" href="https://www.openfortress.wiki/w/index.php?title=Template:CodeBlock/Doc&amp;action=history"/>
	<updated>2026-05-03T16:16:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://www.openfortress.wiki/w/index.php?title=Template:CodeBlock/Doc&amp;diff=285&amp;oldid=prev</id>
		<title>Kate: Created page with &quot;&lt;noinclude&gt;{{doc|0}}&lt;/noinclude&gt;__NOTOC__ This template formats the text as a block of code.  ==Parameters and Examples== ===Main=== The main parameters are described below. {| class=standard-table width=100% ! style=width:10% | Name ! style=width:30% | Description ! Example ! style=width:27% | Preview |- | align=center | {{Code|{{Param|1}}}} | Your code.&lt;br&gt;It is recommended to wrap the template content with the {{Code|select=1|&amp;#60;nowiki&amp;#62;}} tag. | {{CodeBlock|marg...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.openfortress.wiki/w/index.php?title=Template:CodeBlock/Doc&amp;diff=285&amp;oldid=prev"/>
		<updated>2025-01-04T02:50:41Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;noinclude&amp;gt;{{doc|0}}&amp;lt;/noinclude&amp;gt;__NOTOC__ This template formats the text as a block of code.  ==Parameters and Examples== ===Main=== The main parameters are described below. {| class=standard-table width=100% ! style=width:10% | Name ! style=width:30% | Description ! Example ! style=width:27% | Preview |- | align=center | {{Code|{{Param|1}}}} | Your code.&amp;lt;br&amp;gt;It is recommended to wrap the template content with the {{Code|select=1|&amp;lt;nowiki&amp;gt;}} tag. | {{CodeBlock|marg...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;{{doc|0}}&amp;lt;/noinclude&amp;gt;__NOTOC__&lt;br /&gt;
This template formats the text as a block of code.&lt;br /&gt;
&lt;br /&gt;
==Parameters and Examples==&lt;br /&gt;
===Main===&lt;br /&gt;
The main parameters are described below.&lt;br /&gt;
{| class=standard-table width=100%&lt;br /&gt;
! style=width:10% | Name&lt;br /&gt;
! style=width:30% | Description&lt;br /&gt;
! Example&lt;br /&gt;
! style=width:27% | Preview&lt;br /&gt;
|-&lt;br /&gt;
| align=center | {{Code|{{Param|1}}}}&lt;br /&gt;
| Your code.&amp;lt;br&amp;gt;It is recommended to wrap the template content with the {{Code|select=1|&amp;amp;#60;nowiki&amp;amp;#62;}} tag.&lt;br /&gt;
| {{CodeBlock|margin=5px|&amp;lt;nowiki&amp;gt;{{CodeBlock|Hello, World!}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
| {{Capsule|margin=5px|{{CodeBlock|margin=0|Hello, World!}}}}&lt;br /&gt;
|-&lt;br /&gt;
| align=center | {{Code|{{Param|margin}}}}&lt;br /&gt;
| Controls margins.&lt;br /&gt;
| {{CodeBlock|margin=5px|&amp;lt;nowiki&amp;gt;{{CodeBlock|margin=0 20px 0 20px|Hello, World!}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
| {{Capsule|margin=5px|{{CodeBlock|margin=0 20px 0 20px|Hello, World!}}}}&lt;br /&gt;
|-&lt;br /&gt;
| align=center | {{Code|{{Param|style}}}}&lt;br /&gt;
| The style of the template. The following styles are available:&lt;br /&gt;
:* {{Code|1}} - Outlined version;&lt;br /&gt;
:* {{Code|style=3|Default}} - Default style that is based on Markdown.&lt;br /&gt;
| {{CodeBlock|margin=5px|&amp;lt;nowiki&amp;gt;{{CodeBlock|style=1|Hello, World!}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
| {{Capsule|margin=5px|{{CodeBlock|margin=0|style=1|Hello, World!}}}}&lt;br /&gt;
|-&lt;br /&gt;
| align=center | {{Code|{{Param|height}}}}&lt;br /&gt;
| Controls the height of the block.&lt;br /&gt;
| {{CodeBlock|margin=5px|&amp;lt;nowiki&amp;gt;{{CodeBlock|height=52px|&amp;lt;nowiki&amp;gt;1. Hello World&lt;br /&gt;
	2. Hello World&lt;br /&gt;
		3. Hello World&lt;br /&gt;
			4. Hello World&amp;lt;&amp;amp;#47;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
| {{Capsule|margin=5px|{{CodeBlock|height=52px|margin=0|&amp;lt;nowiki&amp;gt;1. Hello World&lt;br /&gt;
	2. Hello World&lt;br /&gt;
		3. Hello World&lt;br /&gt;
			4. Hello World&amp;lt;/nowiki&amp;gt;}}}}&lt;br /&gt;
|-&lt;br /&gt;
| align=center | {{Code|{{Param|lines}}}}&lt;br /&gt;
| &amp;#039;&amp;#039;Manual:&amp;#039;&amp;#039; Numbered lines.&lt;br /&gt;
| {{CodeBlock|margin=5px|&amp;lt;nowiki&amp;gt;{{CodeBlock|lines=4|&amp;lt;nowiki&amp;gt;Hello World&lt;br /&gt;
	Hello World&lt;br /&gt;
		Hello World&lt;br /&gt;
			Hello World&amp;lt;&amp;amp;#47;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
| {{Capsule|margin=5px|{{CodeBlock|lines=4|margin=0|&amp;lt;nowiki&amp;gt;Hello World&lt;br /&gt;
	Hello World&lt;br /&gt;
		Hello World&lt;br /&gt;
			Hello World&amp;lt;/nowiki&amp;gt;}}}}&lt;br /&gt;
|-&lt;br /&gt;
| align=center | {{Code|{{Param|start}}}}&lt;br /&gt;
| What number to start numbering from (default value is 1). The value can be negative.&lt;br /&gt;
| {{CodeBlock|margin=5px|&amp;lt;nowiki&amp;gt;{{CodeBlock|start=12|lines=5|&amp;lt;nowiki&amp;gt;Hello World&lt;br /&gt;
Hello World&lt;br /&gt;
Hello World&lt;br /&gt;
Hello World&lt;br /&gt;
Hello World&amp;lt;&amp;amp;#47;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
| {{Capsule|margin=5px|{{CodeBlock|start=12|lines=5|&amp;lt;nowiki&amp;gt;Hello World&lt;br /&gt;
Hello World&lt;br /&gt;
Hello World&lt;br /&gt;
Hello World&lt;br /&gt;
Hello World&amp;lt;/nowiki&amp;gt;}}}}&lt;br /&gt;
|-&lt;br /&gt;
| align=center | {{Code|{{Param|highlight}}}}&lt;br /&gt;
| Adds syntax highlighting for the language specified. {{Bug|Condenses code into one line.}}&lt;br /&gt;
| {{CodeBlock|margin=5px|&amp;lt;nowiki&amp;gt;{{CodeBlock|highlight=c|int main() {return 0;} }}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
| {{Capsule|margin=5px|{{CodeBlock|highlight=c|&amp;lt;nowiki&amp;gt;int main() {&lt;br /&gt;
return 0;&lt;br /&gt;
}&amp;lt;/nowiki&amp;gt;}}}}&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Header===&lt;br /&gt;
The parameters for adding a header with the code source and the name of the programming language are described below.&lt;br /&gt;
{{note|The header is enabled automatically when you enter one of the following parameters.}}&lt;br /&gt;
{| class=standard-table width=100%&lt;br /&gt;
! style=width:10% | Name&lt;br /&gt;
! style=width:30% | Description&lt;br /&gt;
! Example&lt;br /&gt;
! style=width:27% | Preview&lt;br /&gt;
|-&lt;br /&gt;
| align=center | {{Code|{{Param|src}}}}&lt;br /&gt;
| The source of your code.&lt;br /&gt;
| {{CodeBlock|margin=5px|&amp;lt;nowiki&amp;gt;{{CodeBlock|src=light.rad|forcetextureshadow props_foliage/urban_tree01.mdl}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
| {{Capsule|margin=5px|{{CodeBlock|src=light.rad|margin=0|forcetextureshadow props_foliage/urban_tree01.mdl}}}}&lt;br /&gt;
|-&lt;br /&gt;
| align=center | {{Code|{{Param|lang}}}}&lt;br /&gt;
|The name of the language displayed on the right side of the header.&lt;br /&gt;
| {{CodeBlock|margin=5px|&amp;lt;nowiki&amp;gt;{{CodeBlock|lang=csharp&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;using System;&lt;br /&gt;
&lt;br /&gt;
namespace HelloWorld&lt;br /&gt;
{&lt;br /&gt;
    internal class Program&lt;br /&gt;
    {&lt;br /&gt;
        static void Main(string[] args)&lt;br /&gt;
        {&lt;br /&gt;
            Console.WriteLine(&amp;quot;Hello World&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;&amp;amp;#47;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
| {{Capsule|margin=5px|{{CodeBlock|lang=csharp|margin=0|&amp;lt;nowiki&amp;gt;using System;&lt;br /&gt;
&lt;br /&gt;
namespace HelloWorld&lt;br /&gt;
{&lt;br /&gt;
    internal class Program&lt;br /&gt;
    {&lt;br /&gt;
        static void Main(string[] args)&lt;br /&gt;
        {&lt;br /&gt;
            Console.WriteLine(&amp;quot;Hello World&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/nowiki&amp;gt;}}}}&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Kate</name></author>
	</entry>
</feed>