<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.forsakensaga.com/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://wiki.forsakensaga.com/index.php?action=history&amp;feed=atom&amp;title=Template%3APre%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.forsakensaga.com/index.php?title=Template:Pre/doc&amp;action=history"/>
	<updated>2026-08-18T22:09:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.forsakensaga.com/index.php?title=Template:Pre/doc&amp;diff=215&amp;oldid=prev</id>
		<title>Harrigton: Created page with &quot;{{Documentation subpage}} {{Uses TemplateStyles|Template:Pre/styles.css}} &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;  This template implements a version of the functionality provided by the HTML {{tag|pre|o}} tag.  ===TemplateData=== &lt;templatedata&gt; { 	&quot;description&quot;: &quot;This template implements a version of the functionality provided by the HTML &lt;pre&gt; tag.&quot;, 	&quot;params&quot;: { 		&quot;1&quot;: { 			&quot;label&quot;: &quot;Text&quot;, 			&quot;type&quot;: &quot;string&quot;, 			&quot;description&quot;: &quot;T...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.forsakensaga.com/index.php?title=Template:Pre/doc&amp;diff=215&amp;oldid=prev"/>
		<updated>2024-06-27T03:14:53Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{Uses TemplateStyles|Template:Pre/styles.css}} &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 &lt;a href=&quot;/index.php?title=HTML&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;HTML (page does not exist)&quot;&gt;HTML&lt;/a&gt; {{tag|pre|o}} tag.  ===TemplateData=== &amp;lt;templatedata&amp;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;, 	&amp;quot;params&amp;quot;: { 		&amp;quot;1&amp;quot;: { 			&amp;quot;label&amp;quot;: &amp;quot;Text&amp;quot;, 			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;, 			&amp;quot;description&amp;quot;: &amp;quot;T...&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;
{{Uses TemplateStyles|Template:Pre/styles.css}}&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;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&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; 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;/syntaxhighlight&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;
* {{tl|code}}&lt;br /&gt;
* {{xtag|syntaxhighlight}}&lt;br /&gt;
* [[HTML element#pre|{{tag|pre|o}}]]&lt;br /&gt;
* [[Help:Wikitext#Text_formatting|{{tag|code|o}}]]&lt;br /&gt;
{{semantic markup templates}}&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>Harrigton</name></author>
	</entry>
</feed>