<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AMC%2FCode%2Fdoc</id>
	<title>Template:MC/Code/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AMC%2FCode%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Template:MC/Code/doc&amp;action=history"/>
	<updated>2026-04-10T04:10:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Template:MC/Code/doc&amp;diff=42524&amp;oldid=prev</id>
		<title>imported&gt;Outrowed: improve intro</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Template:MC/Code/doc&amp;diff=42524&amp;oldid=prev"/>
		<updated>2026-02-28T08:23:03Z</updated>

		<summary type="html">&lt;p&gt;improve intro&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{documentation header}}&lt;br /&gt;
&amp;lt;!-- Documentation here --&amp;gt;&lt;br /&gt;
{{lua|Delimited tag}}&lt;br /&gt;
{{shortcut|cd}}&lt;br /&gt;
This template is a short and quick way to use {{xtag|code}} tag. It accepts multiple arguments, which produce multiple {{xtag|code}} tags separated by single space characters when used.&lt;br /&gt;
&lt;br /&gt;
For long text or nested HTML tags/templates, it&amp;#039;s preferable to use {{xtag|code}} directly instead of using this template. Additionally, each call of a template may slow down the page load, and if more, may hit some [[w:Help:Template limits|template limits]], compared to {{xtag|code}}, which is not affected by this side-effect.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Code template parameters&lt;br /&gt;
|-&lt;br /&gt;
! Parameter !! Behavior !! Accepted values !! Default&lt;br /&gt;
|-&lt;br /&gt;
| Anonymous parameters, i.e. parameters that don&amp;#039;t have names, {{p|1}}, {{p|2}}, etc. || These are the text that code will display as inline &amp;lt;code&amp;gt;&amp;amp;lt;code&amp;amp;gt;&amp;lt;/code&amp;gt; elements. One &amp;lt;code&amp;gt;&amp;amp;lt;code&amp;amp;gt;&amp;lt;/code&amp;gt; element will be used to wrap each of the anonymous parameters. || Any text. || None&lt;br /&gt;
|-&lt;br /&gt;
| {{cd|d|delim|delimiter|d=or}} || The delimiter to use between the &amp;lt;code&amp;gt;&amp;amp;lt;code&amp;amp;gt;&amp;lt;/code&amp;gt; elements. || {{cd|or|and|br|list|or-list|and-list|&amp;amp;|,|none|d=,}} or any other text. {{cd|or|and|&amp;amp;|d=&amp;amp;}} have a special behavior where the delimiter is different at the end, and {{cd|,}} adds a space after the comma, but all other deimiters are simply placed between the &amp;lt;code&amp;gt;&amp;amp;lt;code&amp;amp;gt;&amp;lt;/code&amp;gt; elements. || {{cd|&amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;}}&amp;amp;nbsp;(a single space)&lt;br /&gt;
|-&lt;br /&gt;
| {{cd|wordbreak|wb|d=or}} || If specified, long words in the &amp;lt;code&amp;gt;&amp;amp;lt;code&amp;amp;gt;&amp;lt;/code&amp;gt; element will break into multiple lines. This might be required if you are dealing with URLs (see below). || {{cd|1|true|,}} or any other non-empty string. || (boolean) False&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Escape characters ===&lt;br /&gt;
Keep in mind pipes and equals signs are used to specifiy parameters in templates. If you want the text &amp;quot;number of cats = number of mice * 3 * multiplier&amp;quot; to be formatted propoerly, you must escape the {{cd|{{=}}}}. {{cd|&amp;lt;nowiki&amp;gt;{{cd|=}}&amp;lt;/nowiki&amp;gt;}} gives an error because the equal sign if interpreted as assigning an empty string to the paramer whose name is an empty string.&lt;br /&gt;
&lt;br /&gt;
==== Magic words ====&lt;br /&gt;
There are many ways to &amp;quot;escape&amp;quot; text on this wiki. First, we have magic words for the equals sign and pipe. And we can use the non-breaking space HTML entity for spaces.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Magic words&lt;br /&gt;
|-&lt;br /&gt;
! Wikitext !! Result !! Result in Code&lt;br /&gt;
|-&lt;br /&gt;
| {{cd|&amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt;}} || {{!}} || {{cd|{{!}}}}&lt;br /&gt;
|-&lt;br /&gt;
| {{cd|&amp;lt;nowiki&amp;gt;{{=}}&amp;lt;/nowiki&amp;gt;}} || {{=}} || {{cd|{{=}}}}&lt;br /&gt;
|-&lt;br /&gt;
| {{cd|&amp;lt;nowiki&amp;gt;&amp;amp;amp;nbsp;&amp;lt;/nowiki&amp;gt;}} || {{=}} || {{cd|&amp;amp;nbsp;}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You might also need to escape double curly braces, {&amp;lt;nowiki /&amp;gt;{like these}&amp;lt;nowiki /&amp;gt;}, and many other forms of formatting on this wiki. This can be done using {{cd|&amp;amp;lt;nowiki&amp;amp;gt;...&amp;amp;lt;/nowiki&amp;amp;gt;}}, or by putting {{cd|&amp;amp;lt;nowiki/&amp;amp;gt;}} between the braces. Non-breaking space ({{cd|&amp;amp;amp;nbsp;}}) works more often than {{cd|&amp;amp;lt;nowiki&amp;amp;gt;}} element does, so I suggest you use {{cd|&amp;amp;amp;nbsp;}}.&lt;br /&gt;
&lt;br /&gt;
Use the {{p|delimiter}} parameter (aliases {{p|delim}} or {{p|d}}) to change the separator between each string. Set this value to the name in words of the delimiter, such as &amp;quot;and&amp;quot;, &amp;quot;br&amp;quot;, &amp;quot;or-list&amp;quot;, &amp;quot;none&amp;quot;, etc. When using a list delimiter, use {{p|list-level}} to change the indentation (defaults to {{cd|**}}).&lt;br /&gt;
&lt;br /&gt;
=== HTML entities ===&lt;br /&gt;
If you want to include spaces at the start of end of a &amp;lt;code&amp;gt;&amp;amp;lt;code&amp;amp;gt;&amp;lt;/code&amp;gt; element, you need to either escape it with {{cd|&amp;amp;lt;nowiki&amp;amp;gt;...&amp;amp;lt;/nowiki&amp;amp;gt;}} or use {{cd|&amp;amp;amp;nbsp;}}.&lt;br /&gt;
&lt;br /&gt;
If you want to use &amp;lt;angle brackets&amp;gt;, &amp;lt;like this&amp;gt;, you might need to use more HTML entities. Usually, you won&amp;#039;t need to do this, inless you are describing how to use HTML elements or HTML entities on the page where you&amp;#039;re using this template.&lt;br /&gt;
&lt;br /&gt;
Finally, in some rare instances, you will need to use the legendary {{cd|&amp;amp;#38;amp;}}, or even the mythical {{cd|&amp;amp;#38;amp;amp;}}.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Caption text&lt;br /&gt;
|-&lt;br /&gt;
! Name !! HTML !! Result !! Result in Code&lt;br /&gt;
|-&lt;br /&gt;
| Non-breaking space || {{cd|&amp;amp;amp;nbsp;}} || &amp;amp;nbsp; || {{cd|&amp;amp;nbsp;}}&lt;br /&gt;
|-&lt;br /&gt;
| Less than          || {{cd|&amp;amp;amp;lt;}}   || &amp;amp;lt;   || {{cd|&amp;amp;lt;}}&lt;br /&gt;
|-&lt;br /&gt;
| Greater than       || {{cd|&amp;amp;amp;gt;}}   || &amp;amp;gt;   || {{cd|&amp;amp;gt;}}&lt;br /&gt;
|-&lt;br /&gt;
| Ampersand          || {{cd|&amp;amp;amp;amp;}}  || &amp;amp;amp;  || {{cd|&amp;amp;amp;}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
# {{t|code|text}} – {{code|text}}&lt;br /&gt;
# {{t|code|1|2|3|4|5}} – {{code|1|2|3|4|5}}&lt;br /&gt;
# Formatted code&lt;br /&gt;
## {{t|code|&amp;lt;nowiki&amp;gt;&amp;#039;&amp;#039;fancy text&amp;#039;&amp;#039;&amp;lt;/nowiki&amp;gt;}} – {{code|&amp;#039;&amp;#039;fancy text&amp;#039;&amp;#039;}}&lt;br /&gt;
## {{t|code|&amp;lt;nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;emphasized text&amp;#039;&amp;#039;&amp;#039;&amp;lt;/nowiki&amp;gt;}} – {{code|&amp;#039;&amp;#039;&amp;#039;emphasized text&amp;#039;&amp;#039;&amp;#039;}}&lt;br /&gt;
## {{t|code|&amp;lt;nowiki&amp;gt;link to [[Zombie]]&amp;lt;/nowiki&amp;gt;}} – {{code|link to [[Zombie]]}}&lt;br /&gt;
## {{t|code|&amp;lt;nowiki&amp;gt;[https://imgur.com/]&amp;lt;/nowiki&amp;gt;}} – {{code|[https://imgur.com/]}}&lt;br /&gt;
# Comma delimiter&lt;br /&gt;
## {{t|code|1|2|3|4|5|d{{=}},}} – {{code|1|2|3|4|5|d=,}}&lt;br /&gt;
## {{t|code|1|2|3|4|5|delim{{=}},}} – {{code|1|2|3|4|5|delim=,}}&lt;br /&gt;
## {{t|code|1|2|3|4|5|delimiter{{=}},}} – {{code|1|2|3|4|5|delimiter=,}}&lt;br /&gt;
# And delimiter&lt;br /&gt;
## {{t|code|1|2|3|4|5|d{{=}}and}} – {{code|1|2|3|4|5|d=and}}&lt;br /&gt;
## {{t|code|1|2|3|4|5|delim{{=}}and}} – {{code|1|2|3|4|5|delim=and}}&lt;br /&gt;
## {{t|code|1|2|3|4|5|delimiter{{=}}and}} – {{code|1|2|3|4|5|delimiter=and}}&lt;br /&gt;
# Or delimiter&lt;br /&gt;
## {{t|code|1|2|3|4|5|d{{=}}or}} – {{code|1|2|3|4|5|d=or}}&lt;br /&gt;
## {{t|code|1|2|3|4|5|delim{{=}}or}} – {{code|1|2|3|4|5|delim=or}}&lt;br /&gt;
## {{t|code|1|2|3|4|5|delimiter{{=}}or}} – {{code|1|2|3|4|5|delimiter=or}}&lt;br /&gt;
# Escape character usage&lt;br /&gt;
## {{t|code|&amp;amp;lt;nowiki&amp;amp;gt;&amp;lt;nowiki&amp;gt;something=one|two|three&amp;lt;/nowiki&amp;gt;&amp;amp;lt;/nowiki&amp;amp;gt;}} – {{code|&amp;lt;nowiki&amp;gt;something=one|two|three&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
## {{t|code|&amp;lt;nowiki&amp;gt;something{{=}}one{{!}}two{{!}}three&amp;lt;/nowiki&amp;gt;}} – {{code|something{{=}}one{{!}}two{{!}}three}}&lt;br /&gt;
## {{t|code|&amp;amp;lt;nowiki&amp;amp;gt; &amp;amp;lt;/nowiki&amp;amp;gt;}} –&amp;amp;nbsp;{{code|&amp;lt;nowiki&amp;gt; &amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
## {{t|code|&amp;amp;amp;nbsp;}} – {{code|&amp;amp;nbsp;}}&lt;br /&gt;
&lt;br /&gt;
=== Word Breaking ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Breaking example 1&lt;br /&gt;
|-&lt;br /&gt;
! Header text A !! Header text B !! Header text C !! Header text D !! Header text E&lt;br /&gt;
|-&lt;br /&gt;
| Some text || {{cd|Normally if you have a really long piece of text, like this, it doesn&amp;#039;t cause any issues, because the text will break &amp;#039;&amp;#039;&amp;#039;between&amp;#039;&amp;#039;&amp;#039; the words into multiple lines.}} || More text || More text || More text, extended to make my point.&lt;br /&gt;
|-&lt;br /&gt;
| {{cd|Normally if you have a really long piece of text, like this, it doesn&amp;#039;t cause any issues, because the text will break &amp;#039;&amp;#039;&amp;#039;between&amp;#039;&amp;#039;&amp;#039; the words into multiple lines.}} || Some text || More text || More text || More text, extended to make my point.&lt;br /&gt;
|-&lt;br /&gt;
| Yet more text. || Yet more text. || Yet more text. || Yet more text. || Yet more text.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
However, if we have an extremely long URL (this example is not actually in the game), like {{cd|minecraft/generation/overworld/structures/rare/experimental/trial_chambers/version_3/chambers/chamber_4/section_3/layer_3/step_1/loot_table/main_draw.json}}, it will not break when used in a table and will end up making its column far too wide.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;I have collapsed this table for your convenience. Good luck finding the collapse button after expanding it!&amp;#039;&amp;#039;&lt;br /&gt;
{| class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
|+ &amp;lt;span style=&amp;quot;white-space:nowrap&amp;quot;&amp;gt;Breaking example 2&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Header text A !! Header text B !! Header text C !! Header text D !! Header text E&lt;br /&gt;
|-&lt;br /&gt;
| Some text || {{cd|minecraft/generation/overworld/structures/rare/experimental/trial_chambers/version_3/chambers/chamber_4/section_3/layer_3/step_1/loot_table/main_draw.json}} || More text || More text || More text, extended to make my point.&lt;br /&gt;
|-&lt;br /&gt;
| {{cd|minecraft/generation/overworld/structures/rare/experimental/trial_chambers/version_3/chambers/chamber_4/section_3/layer_3/step_1/loot_table/main_draw.json}} || Some text || More text || More text || More text, extended to make my point.&lt;br /&gt;
|-&lt;br /&gt;
| Yet more text. || Yet more text. || Yet more text. || Yet more text. || Yet more text.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As you can see, having our words break would be nice here. The easiest way to do this to use the {{cd|wb|wordbreak|d=/}} parameter. It allows the line to break anywhere it needs to, even in the middle of a word. The table below shows what this does&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ Breaking example 3&lt;br /&gt;
|-&lt;br /&gt;
! Wiki text !! Code result !! Header text C !! Header text D !! Header text E&lt;br /&gt;
|-&lt;br /&gt;
| {{cd|&amp;lt;nowiki&amp;gt;{{cd|minecraft/generation/overworld/structures/rare/experimental/trial_chambers/version_3/chambers/chamber_4/section_3/layer_3/step_1/loot_table/main_draw.json|wb=1}}&amp;lt;/nowiki&amp;gt;|wb=1}} ||{{cd|minecraft/generation/overworld/structures/rare/experimental/trial_chambers/version_3/chambers/chamber_4/section_3/layer_3/step_1/loot_table/main_draw.json|wb=1}} || More text || More text || More text, extended to make my point.&lt;br /&gt;
|-&lt;br /&gt;
| {{cd|&amp;lt;nowiki&amp;gt;{{cd|minecraft/generation/overworld/structures/rare/experimental/trial_chambers/version_3/chambers/chamber_4/section_3/layer_3/step_1/loot_table/main_draw.json|wb=1}}&amp;lt;/nowiki&amp;gt;|wb=1}} ||{{cd|minecraft/generation/overworld/structures/rare/experimental/trial_chambers/version_3/chambers/chamber_4/section_3/layer_3/step_1/loot_table/main_draw.json|wb=1}} || More text || More text || More text, extended to make my point.&lt;br /&gt;
|-&lt;br /&gt;
| Yet more text. || Yet more text. || Yet more text. || Yet more text. || Yet more text.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{t|Samp}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Template categories/interwiki here --&amp;gt;&lt;br /&gt;
[[Category:Formatting templates]]&lt;br /&gt;
[[cs:Šablona:Code]]&lt;br /&gt;
[[es:Plantilla:Código]]&lt;br /&gt;
[[fr:Modèle:Code]]&lt;br /&gt;
[[ja:Template:Code]]&lt;br /&gt;
[[lzh:模板:Code]]&lt;br /&gt;
[[nl:Sjabloon:Code]]&lt;br /&gt;
[[pl:Szablon:Code]]&lt;br /&gt;
[[pt:Predefinição:Código]]&lt;br /&gt;
[[ru:Шаблон:Code]]&lt;br /&gt;
[[th:แม่แบบ:Code]]&lt;br /&gt;
[[uk:Шаблон:Code]]&lt;br /&gt;
[[zh:模板:Code]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;!-- Documentation categories/interwiki here --&amp;gt;&lt;br /&gt;
[[cs:Šablona:Code/doc]]&lt;br /&gt;
[[es:Plantilla:Código/doc]]&lt;br /&gt;
[[fr:Modèle:Code/doc]]&lt;br /&gt;
[[ja:Template:Code/doc]]&lt;br /&gt;
[[lzh:模板:Code/doc]]&lt;br /&gt;
[[nl:Sjabloon:Code/doc]]&lt;br /&gt;
[[pl:Szablon:Code/opis]]&lt;br /&gt;
[[pt:Predefinição:Código/doc]]&lt;br /&gt;
[[ru:Шаблон:Code/док]]&lt;br /&gt;
[[th:แม่แบบ:Code/doc]]&lt;br /&gt;
[[uk:Шаблон:Code/док]]&lt;br /&gt;
[[zh:模板:Code/doc]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Outrowed</name></author>
	</entry>
</feed>