Help:Editing: Difference between revisions
ArrowHead294 (talk | contribs) |
ArrowHead294 (talk | contribs) |
||
| Line 51: | Line 51: | ||
* ''Italic'' using <code>{{''}}italic{{''}}</code> | * ''Italic'' using <code>{{''}}italic{{''}}</code> | ||
* '''''Bold italic''''' using <code>{{'''}}{{''}}bold italic{{''}}{{'''}}</code> | * '''''Bold italic''''' using <code>{{'''}}{{''}}bold italic{{''}}{{'''}}</code> | ||
=== Preformatted text === | |||
==== Code ==== | |||
<code><<nowiki />code></code> can be used to include small snippets of source code, variable names, or {{w|regex}}es within a line of normal text. All Wiki markup within is interpreted as markup except for text in <code><nowiki></code> tags. | |||
==== Pre ==== | |||
<code><<nowiki />pre></code> defines preformatted text that is displayed in a monospace font and enclosed in a dashed box. HTML-like and wiki markup tags are escaped and spaces and line breaks are preserved, but HTML elements are parsed. | |||
For example: | |||
<syntaxhighlight lang="wikitext"> | |||
<pre> | |||
<!--Comment--> | |||
[[Wiki]] markup & | |||
</pre> | |||
</syntaxhighlight> | |||
gives | |||
<pre> | |||
<!--Comment--> | |||
[[Wiki]] markup & | |||
</pre> | |||
To use Wiki markup within a <code><<nowiki />pre></code> tag, [[wikipedia:Help:Wikitext#Pre|place an {{plaincode|<<nowiki />includeonly>}} tag]] immediately after the word <code>pre</code>, as follows: | |||
<syntaxhighlight lang="wikitext"> | |||
<pre<includeonly />> | |||
<!--Comment--> | |||
[[Wiki]] markup & | |||
</pre> | |||
</syntaxhighlight> | |||
gives | |||
<pre<includeonly />> | |||
<!--Comment--> | |||
[[Wiki]] markup & | |||
</pre> | |||
=== Lists === | === Lists === | ||