Help:Editing: Difference between revisions
ArrowHead294 (talk | contribs) |
m Fix double redirect |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
Wikis should be easy to edit, so most text you add or change will appear as you expect it. But you can do more if you want. | Wikis should be easy to edit, so most text you add or change will appear as you expect it. But you can do more if you want. | ||
[https://wikiindex.org/Xenharmonic_Wiki This wiki] is currently in [https://wikiindex.org/Category:ConfirmEmail ConfirmEmail mode] after the move from Wikispaces to a MediaWiki-based installation (the edit mode may change again some time). For editing or adding information to the wiki, you have to join it. See [[How to | [https://wikiindex.org/Xenharmonic_Wiki This wiki] is currently in [https://wikiindex.org/Category:ConfirmEmail ConfirmEmail mode] after the move from Wikispaces to a MediaWiki-based installation (the edit mode may change again some time). For editing or adding information to the wiki, you have to join it. See [[Help:How to get your Xenharmonic Wiki account]] for more! | ||
== Using links == | == Using links == | ||
| Line 48: | Line 48: | ||
Some typographic markup can easy be added by including the phrase in doubled <code><nowiki>''</nowiki></code> or tripled <code><nowiki>'''</nowiki></code> (apostrophe chars): | Some typographic markup can easy be added by including the phrase in doubled <code><nowiki>''</nowiki></code> or tripled <code><nowiki>'''</nowiki></code> (apostrophe chars): | ||
* '''Bold''' using <code> | * '''Bold''' using <code><nowiki>'''bold'''</nowiki></code> | ||
* ''Italic'' using <code> | * ''Italic'' using <code><nowiki>''italic''</nowiki></code> | ||
* '''''Bold italic''''' using <code> | * '''''Bold italic''''' using <code><nowiki>'''''bold italic'''''</nowiki></code> | ||
=== Preformatted text === | === Preformatted text === | ||
| 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 | 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> | ||
=== Syntax highlighting === | 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"> | |||
<pre<includeonly /> style="color: blue;"> | |||
<!-- Comment --> | |||
[[Wiki]] markup & '''bold''' ''italic'' text | |||
</pre> | |||
</syntaxhighlight> | |||
gives | |||
<pre<includeonly /> style="color: blue;"> | |||
<!-- Comment --> | |||
[[Wiki]] markup & '''bold''' ''italic'' text | |||
</pre> | |||
==== Syntax highlighting ==== | |||
[[mw:extension:SyntaxHighlight|Syntax highlighting]] is a feature to display source code in different colors and fonts to indicate the structure to readers. Wrap the desired code between <code><<nowiki />syntaxhighlight></code> tags and input the desired programming language using the <code>lang</code> parameter in the opening tag. Unlike in <code><<nowiki />code></code> and <code><<nowiki />pre></code> tags, everything is escaped. | [[mw:extension:SyntaxHighlight|Syntax highlighting]] is a feature to display source code in different colors and fonts to indicate the structure to readers. Wrap the desired code between <code><<nowiki />syntaxhighlight></code> tags and input the desired programming language using the <code>lang</code> parameter in the opening tag. Unlike in <code><<nowiki />code></code> and <code><<nowiki />pre></code> tags, everything is escaped. | ||