<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limswiki.org/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://www.limswiki.org/index.php?action=history&amp;feed=atom&amp;title=Template%3APre%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Template:Pre/doc&amp;action=history"/>
	<updated>2026-04-04T15:31:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://www.limswiki.org/index.php?title=Template:Pre/doc&amp;diff=13281&amp;oldid=prev</id>
		<title>Shawndouglas: Created as needed.</title>
		<link rel="alternate" type="text/html" href="https://www.limswiki.org/index.php?title=Template:Pre/doc&amp;diff=13281&amp;oldid=prev"/>
		<updated>2013-10-31T18:02:30Z</updated>

		<summary type="html">&lt;p&gt;Created as needed.&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;
===Usage===&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't be wrapped and will still break out to the right hand of the page.&lt;br /&gt;
* HTML and wikimarkup aren't disabled as in {{tag|pre}} and are rendered as usual (thus if a parameter contains any wikimarkup, enclose it in {{tag|nowiki}}); similarly, multiple spaces are treated as a single one.&lt;br /&gt;
* If there are only two lines, they will be stuck together, even if the source has a blank line between them.&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's browser options, or specified in the user's CSS pages.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
'''Markup'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{Pre|&lt;br /&gt;
'''First line, markup working:''' and HTML comment &amp;lt;!--HIDDEN--&amp;gt; hidden.&lt;br /&gt;
&lt;br /&gt;
'''Second line, long text wrapping:''' 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;
'''Third line with raw | pipe is handled''', but the space before the pipe is lost. Up to raw 19 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's {{!}} OK.&lt;br /&gt;
&lt;br /&gt;
'''Fourth      line,     multiple spaces collapsed into one''' as in HTML and wikitext.&lt;br /&gt;
'''Fifth line, stuck with the previous one''' if no blank line between them.&lt;br /&gt;
&lt;br /&gt;
'''Last line''', is actually standalone with or without a blank line.&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;
'''First line, markup working:''' and HTML comment &amp;lt;!--HIDDEN--&amp;gt; hidden.&lt;br /&gt;
&lt;br /&gt;
'''Second line, long text wrapping:''' 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;
'''Third line with raw | pipe is handled''', but the space before the pipe is lost. Up to raw 19 pipes are handled, else use &amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt; and {{!}} it's {{!}} OK.&lt;br /&gt;
&lt;br /&gt;
'''Fourth      line,     multiple spaces collapsed into one''' as in HTML and wikitext.&lt;br /&gt;
'''Fifth line, stuck with the previous one''' if no blank line between them.&lt;br /&gt;
&lt;br /&gt;
'''Last line''', is actually standalone with or without a blank line.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
* {{xtag|syntaxhighlight}}&lt;br /&gt;
* {{tl|pre2}}, a template with similar functionality but induces optional line wrap and optional scroll bars.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||&lt;br /&gt;
&amp;lt;!-- CATEGORIES HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:Programming typing-aid templates|{{PAGENAME}}]]&lt;br /&gt;
[[Category:LIMSwiki XHTML tag replacing templates|{{PAGENAME}}]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Shawndouglas</name></author>
	</entry>
</feed>