Jump to content

Help:Cheatsheet

From ArchWiki

For a full list of editing commands, see Help:Editing. To experiment with editing, use the sandbox.

Works anywhere in the text (wikitext)
Description You type You get

Italic text

Help:Style/Formatting and punctuation#Italic
''italic'' italic

Bold text

Help:Style/Formatting and punctuation#Bold
'''bold''' bold

Bold and italic text

Help:Editing#Bold and italics
'''''bold & italic''''' bold & italic

Link to another ArchWiki page

[[Name of page]] [[Name of page|Text to display]] [[Name of page#Section]]

Name of page
Text to display
Name of page#Section

Link to section on same page [[#Section]] #Section

External link

Help:Editing#External links
[https://example.net/ Example external link] Example external link

Add a page to a category

Categories should be placed at the beginning of pages.
Help:Style#Categories
[[Category:Category name]] The category name will be displayed in a bar at the bottom when the page is previewed or saved.
Works anywhere in the text (HTML)
Description You type You get

Strikethrough

Help:Editing#Strike-out
<s>strikethrough</s> strikethrough
Underline <u>underline</u> underline
Subscripts and superscripts regular <sub>subscripts</sub> <sup>superscripts</sup> regular subscripts superscripts
Works only at the beginning of lines
Description You type You get

Code

Start code lines with one or more spaces.
Help:Style#Code formatting
 $ echo Hello World
$ echo Hello World

Redirect to another page

Redirects must be placed at the start of the first line.
#REDIRECT [[Target page]] Target page

Section headings

= Level 1 = should not be used.
== Level 2 ==
=== Level 3 ===
==== Level 4 ====
===== Level 5 =====
====== Level 6 ======

Level 2

Level 3

Level 4

Level 5
Level 6
Horizontal rule ----

Bulleted list

Help:Editing#Bullet points
* One
* Two
** Two point one
* Three
  • One
  • Two
    • Two point one
  • Three

Numbered list

Help:Editing#Numbered lists
# One
# Two
## Two point one
# Three
  1. One
  2. Two
    1. Two point one
  3. Three

Definition list

Help:Editing#Definition lists
; Term one: Definition one
; Term two: Definition two
Term one
Definition one
Term two
Definition two

Indenting text

Use indentation only when strictly necessary.
no indent (normal)
: first indent
:: second indent
::: third indent

no indent (normal)

first indent
second indent
third indent
Templates
Description You type You get

Inline code

Use Template:ic.
See Help:Style/Formatting and punctuation#Monospace.
{{ic|code}} code

Character escape

Help:Template#Escape template-breaking characters
{{ic|1=echo =}} or {{ic|echo {{=}}}} echo =

Block of code

Use Template:bc.
See Help:Style#Code formatting.
{{bc|
block
of code
}}
block
of code

Code block with header

Use Template:hc.
{{hc|header|
code
block
}}
header
code
block

Note

Use Template:Note.
See Help:Style#Notes, Warnings, Tips.
{{Note|This text should be noted.}}
Note This text should be noted.

Tip

Use Template:Tip.
{{Tip|This text may be considered.}}
Tip This text may be considered.

Warning

Use Template:Warning.
{{Warning|This text should be heeded.}}
Warning This text should be heeded.

Man page

Use Template:man.
See Help:Style#Man pages.
{{man|7|ascii}} ascii(7)

Package

Use Template:Pkg.
See Help:Style#Official packages.
See Help:Style/Formatting and punctuation#Package and group names.
{{Pkg|linux}} linux

AUR package

Use Template:AUR.
See Help:Style#AUR packages.
{{AUR|linux-git}} linux-gitAUR