Help:Formatting/sv

Man kan formatera sin text genom att använda wikimarkering. Det består av vanliga tecken som stjärnor, apostrofer eller likhetstecken som har en speciell funktion på wikin, ibland beroende på deras position. För att till exempel formatera ett ord kursivt, så inkluderar man två apostrofer

Textformatering
{| class="wikitable" ! Beskrivning ! width=40% | Inmatning ! width=40% | Resultat ! colspan="3" style="background: #ABE" | Teckenformatering (i rad) - tillämpas varsomhelst kursiv kursiv fet fet fet & kursiv fet & kursiv &lt;nowiki&gt;ingen wikiformatering&lt;/nowiki&gt; ingen wikiformatering ! colspan="3" style="background: #ABE" | Avsnittsformatering - endast i början av raden
 * Kursiv text
 * Kursiv text
 * Fet text
 * Fet text
 * Fet och kursiv
 * Fet och kursiv
 * Ingen wikiformatering
 * Ingen wikiformatering
 * Avsnittsrubriker i olika nivåer
 * Avsnittsrubriker i olika nivåer

Nivå 6


Nivå 2

Nivå 3

Nivå 4

Nivå 5

Nivå 6 Text före
 * Vågrät linje
 * Vågrät linje

Text efter Text före

Text efter Alla nya rader avslutar listan.
 * Punktlista
 * Punktlista
 * Börja varje rad
 * med en asterisk (*).
 * Fler asterisker ger djupare
 * och djupare nivåer.
 * Radbrytningar bryter inte nivåer.
 * Men att hoppa över nivåer skapar tomma mellanrum.


 * kombinera punktlista
 * med definition
 * - definition


 * skapar tomma mellanrum


 * kombinera punktlista
 * med definition
 * - definition
 * utan tomma mellanrum


 * punktlista
 * - definition
 * underlista som inte skapar tomma
 * mellanrum efter definition

Alla nya rader avslutar listan.
 * Börja varje rad
 * med en asterisk (*).
 * Fler asterisker ger djupare
 * och djupare nivåer.
 * Radbrytningar bryter inte nivåer.
 * Men att hoppa över nivåer skapar tomma mellanrum.
 * Men att hoppa över nivåer skapar tomma mellanrum.


 * combine bullet list
 * with definition
 * - definition


 * creates empty space


 * combine bullet list
 * with definition
 * - definition
 * without empty spaces


 * bullet list
 * - definition
 * sublist that doesn't create empty
 * spaces after definition

don't break levels.
 * Numrerad lista
 * Numrerad lista
 * 1) Start each line
 * 2) with a number sign (#).
 * 3) More number signs give deeper
 * 4) and deeper
 * 5) levels.
 * 6) Line breaks
 * 1) But jumping levels creates empty space.
 * 2) Blank lines

Any other start also ends the list. don't break levels.
 * 1) end the list and start another.
 * 1) Start each line
 * 2) with a number sign (#).
 * 3) More number signs give deeper
 * 4) and deeper
 * 5) levels.
 * 6) Line breaks
 * 1) Line breaks
 * 1) But jumping levels creates empty space.
 * 2) Blank lines

Any other start also ends the list.
 * 1) end the list and start another.
 * Definitionslista
 * item 1
 * definition 1
 * item 1
 * definition 1


 * item 2
 * definition 2-1
 * definition 2-2


 * item 1
 * definition 1
 * definition 1


 * item 2
 * definition 2-1
 * definition 2-2


 * Indent text
 * Enkelt indrag
 * Dubbelt indrag
 * Multipla indrag
 * Dubbelt indrag
 * Multipla indrag


 * Enkelt indrag
 * Dubbelt indrag
 * Multipla indrag
 * Multipla indrag

of &lt;nowiki> &lt;/nowiki>
 * Blandning av olika typer av listor
 * Blandning av olika typer av listor
 * 1) one
 * 2) two
 * 3) * two point one
 * 4) * two point two
 * 5) three
 * 6) ; three item one
 * three def one
 * 1) four
 * four def one
 * this looks like a continuation
 * and is often used
 * instead
 * 1) five
 * 2) five sub 1
 * 3) five sub 1 sub 1
 * 4) five sub 2

of
 * 1) one
 * 2) two
 * 3) * two point one
 * 4) * two point two
 * 5) three
 * 6) ; three item one
 * three def one
 * 1) four
 * four def one
 * this looks like a continuation
 * and is often used
 * instead
 * instead

Start each line with a space. Text is preformatted and markups can be done.
 * 1) five
 * 2) five sub 1
 * 3) five sub 1 sub 1
 * 4) five sub 2
 * Oformaterad text
 * Oformaterad text

Start each line with a space. Text is preformatted and markups can be done. (before the &lt;nowiki&gt;).
 * Preformatted text blocks
 * &lt;nowiki&gt;Start with a space in the first column,
 * &lt;nowiki&gt;Start with a space in the first column,

Then your block format will be   maintained.

This is good for copying in code blocks:

def function: """documentation string"""

if True: print True else: print False&lt;/nowiki&gt;
 * }

Stycken
MediaWiki ignorerar vanliga radbrytningar. För att starta ett nytt stycke måste du lämna en tomrad emellan. Du kan också tvinga fram en radbrytning i en paragraf med HTML-taggen.

HTML-taggar
Vissa HTML-taggar är tillåtna i MediaWiki, till exempel, och. Dessa fungerar var du än sätter in dem. continued:

Inserting symbols
Symbols and other special characters not available on your keyboard can be inserted in a multitude of ways. Many Operating Systems and browsers allow you to insert special characters through a menu option or Operating System panel. Additionally, you can use the WikiEditor or VisualEditor to insert them into the edit screen.

As a last resort, you can use a special sequence of characters. Those sequences are called HTML entities. For example, the following sequence (entity) &amp;rarr; when inserted will be shown as right arrow HTML symbol &rarr; and &amp;mdash; when inserted will be shown as an em dash HTML symbol &mdash;.

See the list of all HTML entities on the Wikipedia article List of HTML entities. Additionally, MediaWiki supports two non-standard entity reference sequences:  and   which are both considered equivalent to   which is a right-to-left mark. (Used when combining right to left languages with left to right languages in the same page.)

HTML tags and symbol entities displayed themselves (with and without interpreting them)

 * &rarr; &amp;euro;


 * &rarr;  Typo to be corrected 


 * &rarr; &lt;span style="color: red; text-decoration: line-through;">Typo to be corrected&lt;/span>

Nowiki for HTML
< nowiki /> can prohibit (HTML) tags: But not &amp; symbol escapes: To print &amp; symbol escapes as text, use " " to replace the "&" character (eg. type " ", which results in " ").
 * < pre> &rarr;
 * &< nowiki />amp; &rarr; &amp;

Other formatting
Beyond the text formatting markup shown hereinbefore, here are some other formatting references:


 * LanguageConverter markup – see Writing systems/Syntax
 * References – see Extension:Cite/Cite.php
 * Tables
 * LanguageConverter markup – see Writing systems/Syntax
 * References – see Extension:Cite/Cite.php
 * Tables

Fler referenser finns på Help:Innehåll