<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://scwiki.hu/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://scwiki.hu/index.php?action=history&amp;feed=atom&amp;title=Template%3APre2%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://scwiki.hu/index.php?title=Template:Pre2/doc&amp;action=history"/>
	<updated>2026-05-14T14:41:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://scwiki.hu/index.php?title=Template:Pre2/doc&amp;diff=26278&amp;oldid=prev</id>
		<title>imported&gt;Alistar Bot: Hygiene</title>
		<link rel="alternate" type="text/html" href="https://scwiki.hu/index.php?title=Template:Pre2/doc&amp;diff=26278&amp;oldid=prev"/>
		<updated>2020-03-17T22:06:37Z</updated>

		<summary type="html">&lt;p&gt;Hygiene&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation}}&lt;br /&gt;
{{tl|Pre2}}} uses &amp;lt;code&amp;gt;{{WP|ref=no|HTML_element#Other_containers|&amp;amp;lt;pre&amp;amp;gt;}}&amp;lt;/code&amp;gt; tags, but with text that is either {{WP|ref=no|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;
As it uses real &amp;amp;lt;pre&amp;amp;gt; tags (unlike {{tl|pre}}), it will be displayed correctly regardless of how the user&amp;#039;s Wikipedia {{WP|ref=no|WP:SKIN|text=skin}} renders &amp;amp;lt;pre&amp;amp;gt; boxes.&lt;br /&gt;
&lt;br /&gt;
If you want to disable {{WP|ref=no|WP:Wikitext|text=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;
&amp;lt;span style=&amp;quot;background-color:white&amp;quot;&amp;gt;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Pre2|Text to be displayed. And more and more and more... and a paragraph break.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;And then more and more...}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/span&amp;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 a paragraph break.&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;span style=&amp;quot;background:white&amp;quot;&amp;gt;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Pre2|scroll|Text to be displayed. And more and more and more... and a paragraph break.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;And then more and more...}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/span&amp;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 a paragraph break.&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;span style=&amp;quot;background:black&amp;quot;&amp;gt;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Pre2|style=color:green|Text to be [[Hyperlink|link]]. WARNING! A{{=}}B, you must use Template:=. And more and more and more... and a paragraph break.&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;And then more and more...}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
:produces:&lt;br /&gt;
{{Pre2|style=color:green|Text to be link. WARNING! A{{=}}B, you must use Template:{{=}}. 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 a paragraph break.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Typing-aid templates]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Alistar Bot</name></author>
	</entry>
</feed>