Help:Editing: Difference between revisions
ArrowHead294 (talk | contribs) m →Pre |
ArrowHead294 (talk | contribs) m →Pre |
||
| Line 77: | Line 77: | ||
</pre> | </pre> | ||
It is also possible to use Wiki markup within <code><<nowiki />pre></code> tags, and have it actually be interpreted as markup instead of being escaped. This can be done by inserting <code style="white-space: nowrap;"><includeonly /></code> | It is also possible to use Wiki markup within <code><<nowiki />pre></code> tags, and have it actually be interpreted as markup instead of being escaped. This can be done by inserting an <code>includeonly</code> directive in the opening tag, as <code style="white-space: nowrap;"><includeonly /></code> or (as seen on Wikipedia and many other sites) <code style="white-space: nowrap;"><includeonly></includeonly></code>, as follows: | ||
<syntaxhighlight lang="wikitext"> | <syntaxhighlight lang="wikitext"> | ||
| Line 95: | Line 95: | ||
</pre> | </pre> | ||
The <code><<nowiki />pre></code> tag also accepts styling, just like other HTML elements: | The <code><<nowiki />pre></code> tag also accepts styling, just like other HTML elements. Here, if you use the aformentioned <code>includeonly</code> directive, the styling should come after the directive: | ||
<syntaxhighlight lang="wikitext"> | <syntaxhighlight lang="wikitext"> | ||
<pre<includeonly /> style="color: blue;"> | <pre<includeonly /> style="color: blue;"> | ||