<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3APre%2Fdoc</id>
	<title>Template:Pre/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3APre%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Pre/doc&amp;action=history"/>
	<updated>2026-04-08T00:39:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Template:Pre/doc&amp;diff=16706&amp;oldid=prev</id>
		<title>Caleb Cooper: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Pre/doc&amp;diff=16706&amp;oldid=prev"/>
		<updated>2022-09-14T07:55:19Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:55, 14 September 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Template:Pre/doc&amp;diff=16705&amp;oldid=prev</id>
		<title>wikipedia&gt;Caleb Cooper: Created page with &quot;{{Documentation subpage}} &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;  This template implements a version of the functionality provided by the H...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Pre/doc&amp;diff=16705&amp;oldid=prev"/>
		<updated>2022-09-14T07:48:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} &amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;  This template implements a version of the functionality provided by the H...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This template implements a version of the functionality provided by the [[HTML]] {{tag|pre|o}} tag.&lt;br /&gt;
&lt;br /&gt;
===TemplateData===&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;This template implements a version of the functionality provided by the HTML &amp;lt;pre&amp;gt; tag.&amp;quot;,&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Text&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The text which should be wrapped in pre tags.&amp;quot;,&lt;br /&gt;
            &amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
        &amp;quot;style&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Style&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: {&lt;br /&gt;
				&amp;quot;en&amp;quot;: &amp;quot;Optional css styling applied to the pre tag&amp;quot;&lt;br /&gt;
			}&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;width&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Width&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: {&lt;br /&gt;
				&amp;quot;en&amp;quot;: &amp;quot;The width of the pre box&amp;quot;&lt;br /&gt;
			}&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;space&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Space&amp;quot;,&lt;br /&gt;
            &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: {&lt;br /&gt;
				&amp;quot;en&amp;quot;: &amp;quot;The way white space is handled in the pre box&amp;quot;&lt;br /&gt;
			}&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;border&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Border&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
            &amp;quot;description&amp;quot;: {&lt;br /&gt;
				&amp;quot;en&amp;quot;: &amp;quot;Set to &amp;#039;no&amp;#039; if there should be no border around the box&amp;quot;&lt;br /&gt;
			}&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Usage===&lt;br /&gt;
&lt;br /&gt;
This template supports two parameters&lt;br /&gt;
&lt;br /&gt;
{{para|width}} The width of the pre &amp;quot;box&amp;quot; &amp;lt;br&amp;gt;&lt;br /&gt;
{{para|space}} The way white space is handled in the pre &amp;quot;box&amp;quot;&lt;br /&gt;
&lt;br /&gt;
{{markup&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{Pre|&lt;br /&gt;
This Pre-format&lt;br /&gt;
&lt;br /&gt;
can look&lt;br /&gt;
&lt;br /&gt;
like this.&lt;br /&gt;
}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|{{Pre|&lt;br /&gt;
This Pre-format&lt;br /&gt;
&lt;br /&gt;
can look&lt;br /&gt;
&lt;br /&gt;
like this.&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
Main differences include:&lt;br /&gt;
* It wraps text that overflows the page.&lt;br /&gt;
* It allows mid-line-breaks (but not always consistently).&lt;br /&gt;
&lt;br /&gt;
Main limitations include:&lt;br /&gt;
* If the text is a single long word, it won&amp;#039;t be wrapped and will still break out to the right hand of the page.&lt;br /&gt;
* HTML and wikimarkup aren&amp;#039;t disabled as in {{tag|pre}} and are rendered as usual (thus if a parameter contains any wikimarkup, enclose it in {{tag|nowiki}}); however, multiple spaces are preserved.&lt;br /&gt;
&lt;br /&gt;
As with {{tag|pre|o}} and {{tag|code|o}}, {{tl|pre}} displays text in the font specified as the monospace font in the user&amp;#039;s browser options, or specified in the user&amp;#039;s CSS pages.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Markup&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Pre|&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;First line, markup working:&amp;#039;&amp;#039;&amp;#039; and HTML comment &amp;lt;!--HIDDEN--&amp;gt; hidden.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Second line, long text wrapping:&amp;#039;&amp;#039;&amp;#039; all work and no play make jack a dull boy all work and no play make jack a dull boy all work and no play make jack a dull boy all work and no play make jack a dull boy all work and no play make jack a dull boy.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Third line with raw | pipe is handled&amp;#039;&amp;#039;&amp;#039;, but the space before the pipe is lost. Up to raw 20 pipes are handled, else use &amp;lt;nowiki&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;/nowiki&amp;gt;{{!}}&amp;lt;nowiki&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/nowiki&amp;gt; and {{!}} it&amp;#039;s {{!}} OK.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Fourth      line,     multiple spaces preserved&amp;#039;&amp;#039;&amp;#039; unlike in HTML and wikitext.&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Fifth line, following the previous one&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Last line&amp;#039;&amp;#039;&amp;#039; preceded by two blank lines in markup and in display.&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
; Result&lt;br /&gt;
&lt;br /&gt;
{{Pre|&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;First line, markup working:&amp;#039;&amp;#039;&amp;#039; and HTML comment &amp;lt;!--HIDDEN--&amp;gt; hidden.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Second line, long text wrapping:&amp;#039;&amp;#039;&amp;#039; all work and no play make jack a dull boy all work and no play make jack a dull boy all work and no play make jack a dull boy all work and no play make jack a dull boy all work and no play make jack a dull boy.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Third line with raw | pipe is handled&amp;#039;&amp;#039;&amp;#039;, but the space before the pipe is lost. Up to raw 20 pipes are handled, else use &amp;lt;nowiki&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;/nowiki&amp;gt;{{!}}&amp;lt;nowiki&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/nowiki&amp;gt; and {{!}} it&amp;#039;s {{!}} OK.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Fourth      line,     multiple spaces preserved&amp;#039;&amp;#039;&amp;#039; unlike in HTML and wikitext.&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Fifth line, following the previous one&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Last line&amp;#039;&amp;#039;&amp;#039; preceded by two blank lines in markup and in display.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
* {{tl|monodiv}}, a template with similar functionality but without border.&lt;br /&gt;
* {{tl|tag}}&lt;br /&gt;
* {{xtag|syntaxhighlight}}&lt;br /&gt;
* [[HTML element#pre|{{tag|pre|o}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other|&lt;br /&gt;
| &amp;lt;!-- CATEGORIES BELOW THIS LINE, PLEASE: --&amp;gt;&lt;br /&gt;
[[Category:Programming typing-aid templates]]&lt;br /&gt;
[[Category:Wikipedia XHTML tag-replacing templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Caleb Cooper</name></author>
	</entry>
</feed>