Wikitext: Difference between revisions

From David's Wiki
Created page with " ==Code== Inline code can by represented with <nowiki><code></code></nowiki><br> Code blocks should be like: <pre> <syntaxhighlight lang="cpp"> // ... my code here </syntaxhig..."
 
Line 18: Line 18:
==Line Breaks==
==Line Breaks==
Line breaks are usually done with:
Line breaks are usually done with:
* <code><br></code> or <code><br /></code> for new lines
* <code>&lt;br&gt;</code> or <code>&lt;br /&gt;</code> for new lines
* Two new lines for paragraph breaks
* Two new lines for paragraph breaks


Download my extension [[Mediawikiwiki: Extension:LineBreaks]] to use two spaces and a new line as a line break.
Download my extension [[Mediawikiwiki: Extension:LineBreaks]] to use two spaces and a new line as a line break.

Revision as of 13:26, 4 June 2020

Code

Inline code can by represented with <code></code>
Code blocks should be like:

<syntaxhighlight lang="cpp">
// ... my code here
</syntaxhighlight>

Math

Math is written in standard latex syntax inside of <math></math>.

  • Beware: Do not use ||, use \Vert instead.

Images

See https://www.mediawiki.org/wiki/Help:Images

Line Breaks

Line breaks are usually done with:

  • <br> or <br /> for new lines
  • Two new lines for paragraph breaks

Download my extension Mediawikiwiki: Extension:LineBreaks to use two spaces and a new line as a line break.