<?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%3APre2%2Fdoc</id>
	<title>Template:Pre2/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%3APre2%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Pre2/doc&amp;action=history"/>
	<updated>2026-04-07T17:07:42Z</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:Pre2/doc&amp;diff=15605&amp;oldid=prev</id>
		<title>Caleb Cooper: Created page with &quot;{{Documentation subpage}} {{Commons Import}} &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;  {{tl|{{PAGENAME}}}} uses &lt;code&gt;Wikipedia:HTML element#...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Pre2/doc&amp;diff=15605&amp;oldid=prev"/>
		<updated>2020-11-08T17:34:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{Commons Import}} &amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;  {{tl|{{PAGENAME}}}} uses &amp;lt;code&amp;gt;Wikipedia:HTML element#...&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;
{{Commons Import}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{tl|{{PAGENAME}}}} uses &amp;lt;code&amp;gt;[[Wikipedia:HTML element#Other containers|&amp;amp;lt;pre&amp;amp;gt;]]&amp;lt;/code&amp;gt; tags, but with text that is either [[Wikipedia:word wrap|wrapped]] or is contained in a horizontal scrollbox. This means the text will not stretch past the right side of the screen.&lt;br /&gt;
&lt;br /&gt;
If you want to disable [[Wikipedia:WP:Wikitext|wikitext]] in it, you should use &amp;amp;lt;nowiki&amp;gt; tags inside the template (see [[#wikitext|below]]).&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
===Wrapped text===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Pre2|Text to be displayed. And more and more and more... and an empty line&lt;br /&gt;
&lt;br /&gt;
And then more and more...}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:produces:&lt;br /&gt;
{{Pre2|Text to be displayed. And more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and an empty line.&lt;br /&gt;
&lt;br /&gt;
And then more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more.}}&lt;br /&gt;
&lt;br /&gt;
===Scrollbox===&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Pre2|scroll|Text to be displayed. And more and more and more... and an empty line.&lt;br /&gt;
&lt;br /&gt;
And then more and more...}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:produces:&lt;br /&gt;
{{Pre2|scroll|Text to be displayed. And more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and an empty line.&lt;br /&gt;
&lt;br /&gt;
And then more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more and more.}}&lt;br /&gt;
&lt;br /&gt;
===Style===&lt;br /&gt;
When the text contains links is better to change the text color, thus highlighting:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Pre2|style=color:green|Text to be a [[Wikipedia:Hyperlink|link]]. WARNING! To include A{{=}}B inside of text, you must use Template:{{=}}. Like this: A{{((}}{{=}}{{)}}B.}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:produces:&lt;br /&gt;
&lt;br /&gt;
{{Pre2|style=color:green|Text to be a [[Wikipedia:Hyperlink|link]]. WARNING! To include A{{=}}B inside of text, you must use Template:{{=}}. Like this: A{{((}}{{=}}{{))}}B.}}&lt;br /&gt;
&lt;br /&gt;
==&amp;lt;span id=&amp;quot;wikitext&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;Using wikitext==&lt;br /&gt;
&lt;br /&gt;
To disable [[Wikipedia:WP:Wikitext|wikitext]] (e.g. &amp;lt;nowiki&amp;gt;[[&amp;lt;/nowiki&amp;gt;[[Wikipedia:WP:Wikilink|links]]&amp;lt;nowiki&amp;gt;]]&amp;lt;/nowiki&amp;gt;), {{tag|nowiki}} tags must be used in the form:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{Pre2|&amp;amp;lt;nowiki&amp;gt;Your [[Wikipedia:text|text]]{{dn|name=Pre2}}, which &amp;#039;&amp;#039;might&amp;#039;&amp;#039; include {{tl|templates}}.&amp;lt;noinclude&amp;gt;[[Category:Example]]&amp;lt;/noinclude&amp;gt;&amp;amp;lt;/nowiki&amp;gt;}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will produce this:&lt;br /&gt;
&lt;br /&gt;
{{Pre2|&amp;lt;nowiki&amp;gt;Your [[Wikipedia:text|text]]{{dn|name=Pre2}}, which &amp;#039;&amp;#039;might&amp;#039;&amp;#039; include {{tl|templates}}.&amp;lt;noinclude&amp;gt;[[Category:Example]]&amp;lt;/noinclude&amp;gt;&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
as opposed to (note, that {{tag|noinclude}} part is no present):&lt;br /&gt;
&lt;br /&gt;
{{Pre2|Your [[Wikipedia:text|text]]{{dn|name=Pre2}}, which &amp;#039;&amp;#039;might&amp;#039;&amp;#039; include {{tl|templates}}.&amp;lt;noinclude&amp;gt;[[:Category:Example]]&amp;lt;/noinclude&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* {{tl|pre}}, which mimics &amp;amp;lt;pre&amp;amp;gt; tags as rendered with the monobook Wikipedia skin&lt;br /&gt;
* [[Wikipedia:HTML element#Other block elements|&amp;lt;nowiki&amp;gt;&amp;lt;pre&amp;gt;…&amp;lt;/pre&amp;gt;&amp;lt;/nowiki&amp;gt;]]&lt;br /&gt;
* [[Wikipedia:Word wrap|Word wrap]]ping&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- CATEGORIES HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:Programming typing-aid templates]]&lt;br /&gt;
[[Category:Wikipedia XHTML tag-replacing templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
</feed>