Difference between revisions of "User:GarveyPatrickD/Combining the nowiki and pre tags"
(Revised headers) |
(Completed "Using only one tag" tests) |
||
Line 70: | Line 70: | ||
====<nowiki><pre></pre></nowiki> alone==== |
====<nowiki><pre></pre></nowiki> alone==== |
||
<b> |
<b> |
||
− | <nowiki> |
+ | <nowiki><pre></nowiki> |
− | < |
+ | </b> |
− | </nowiki> |
||
<br />Lorem |
<br />Lorem |
||
<br />ipsum |
<br />ipsum |
||
Line 81: | Line 80: | ||
<br />adipiscing |
<br />adipiscing |
||
<br />elit. |
<br />elit. |
||
+ | <b> |
||
<br /></pre> |
<br /></pre> |
||
</b> |
</b> |
||
Line 100: | Line 100: | ||
<b> |
<b> |
||
<nowiki><nowiki></nowiki> |
<nowiki><nowiki></nowiki> |
||
+ | </b> |
||
+ | |||
<br /> Lorem |
<br /> Lorem |
||
<br /> ipsum |
<br /> ipsum |
||
Line 108: | Line 110: | ||
<br /> adipiscing |
<br /> adipiscing |
||
<br /> elit. |
<br /> elit. |
||
+ | |||
+ | <b> |
||
<br /></nowiki> |
<br /></nowiki> |
||
</b> |
</b> |
||
<br /> |
<br /> |
||
<nowiki> |
<nowiki> |
||
+ | |||
Lorem |
Lorem |
||
ipsum |
ipsum |
||
Line 120: | Line 125: | ||
adipiscing |
adipiscing |
||
elit. |
elit. |
||
+ | |||
</nowiki> |
</nowiki> |
||
<br /> |
<br /> |
||
Line 126: | Line 132: | ||
<b> |
<b> |
||
<nowiki><pre></nowiki> |
<nowiki><pre></nowiki> |
||
+ | </b> |
||
+ | |||
<br /> Lorem |
<br /> Lorem |
||
<br /> ipsum |
<br /> ipsum |
||
Line 134: | Line 142: | ||
<br /> adipiscing |
<br /> adipiscing |
||
<br /> elit. |
<br /> elit. |
||
+ | |||
+ | <b> |
||
<br /></pre> |
<br /></pre> |
||
</b> |
</b> |
||
<pre> |
<pre> |
||
+ | |||
Lorem |
Lorem |
||
ipsum |
ipsum |
||
Line 145: | Line 156: | ||
adipiscing |
adipiscing |
||
elit. |
elit. |
||
+ | |||
</pre> |
</pre> |
||
+ | Please note each token between the tags is placed on a separate line with, at least, leading white space, including vertical white space. |
||
− | <br /> |
||
− | Please note each token between the tags is placed on a separate line with, at least, leading whitespace. |
||
=Using both tags= |
=Using both tags= |
Revision as of 01:15, 27 November 2011
These are a series of tests of combining the <nowiki> and <pre> tags. This is motivated by the results seen after a migration utility was used on pages encoded in another wiki syntax for use in a replacement MediaWiki. The most important question is, is there a reason to use both of these tags together? If so, what is the effect of various nestings of the two tags?
Contents
Using only one tag
Placing all the tokens on one line in the source
No leading or trailing white space
<nowiki></nowiki> alone
Source:
<nowiki>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</nowiki>
Display:
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<pre></pre> alone
Source:
<pre>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</pre>
Display:
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Leading and trailing white space
<nowiki></nowiki> alone
Source:
<nowiki> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </nowiki>
Display:
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Note: minimum white space is used in the result.
<pre></pre> alone
Source:
<pre> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </pre>
Display:
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Note: white space is preserved in the result
Placing each token on a separate line in the source
No leading or trailing white space
<nowiki></nowiki> alone
<nowiki>
Lorem
ipsum
dolor
sit
amet,
consectetur
adipiscing
elit.
</nowiki>
Lorem
ipsum
dolor
sit
amet,
consectetur
adipiscing
elit.
Please note the result is the same as placing all the tokens on one line in the source.
<pre></pre> alone
<pre>
Lorem
ipsum
dolor
sit
amet,
consectetur
adipiscing
elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Please note each token between the tags is placed on a separate line.
Leading and trailing white space
<nowiki></nowiki> alone
<nowiki>
Lorem
ipsum
dolor
sit
amet,
consectetur
adipiscing
elit.
</nowiki>
Lorem
ipsum
dolor
sit
amet,
consectetur
adipiscing
elit.
Please note the result is the same as placing all the tokens on one line in the source.
<pre></pre> alone
<pre>
Lorem
ipsum
dolor
sit
amet,
consectetur
adipiscing
elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Please note each token between the tags is placed on a separate line with, at least, leading white space, including vertical white space.
Using both tags
Placing all the tokens on one line in the source
No leading or trailing white space
<nowiki> first, then <pre>
<pre>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</pre>
<pre> first, then <nowiki>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Leading and trailing white space
<nowiki> first, then <pre>
<pre> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </pre>
<pre> first, then <nowiki>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Placing each token on a separate line in the source
No leading or trailing white space
<nowiki> first, then <pre>
<pre> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </pre>
<pre> first, then <nowiki>
Please note the additional vertical spacing in the result.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Leading and trailing white space
<nowiki> first, then <pre>
<pre> Lorem ipsum dolor sit amet, consectetur adipiscing elit. </pre>
<pre> first, then <nowiki>
Please note the additional vertical spacing in the result.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.