Help:Cheatsheet: Difference between revisions

From Alpine Linux
(commented out unavailable pages, fixed links by adapting to alpine wiki pages, location for category changed to bottom)
(changed introduction)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__ __NOEDITSECTION__
__NOTOC____NOEDITSECTION__This page provides a quick reference for common wiki editing commands. See [[Help:Editing]] for comprehensive documentation, [[Help:Style]] for conventions, or use the [[sandbox]] to practice.
[[Category:Help]]
For a full list of editing commands, see [[Help:Editing]]. To experiment with editing, use the [[sandbox]].


{| align="center" style="width:100%; border:1px #0771a6 solid; background:#f9f9f9; text-align:left; border-collapse:collapse;"
{| align="center" style="width:100%; border:1px #0771a6 solid; background:#f9f9f9; text-align:left; border-collapse:collapse;"
Line 44: Line 42:
|
|
{{ic|<nowiki>[[#Section]]</nowiki>}}<br />
{{ic|<nowiki>[[#Section]]</nowiki>}}<br />
{{ic|<nowiki>[[#Section]]</nowiki>}}
{{ic|<nowiki>[[#Section|Text to display]]</nowiki>}}
|
|
[[#Section]]<br />
[[#Section]]<br />
Line 116: Line 114:
|
|
{{Cmd|$ echo Hello World}}
{{Cmd|$ echo Hello World}}
|- style="border-top:1px solid #aaaaaa;"
|Redirect to another page
<div style="padding-left:.5em; font-size:0.9em;">''Redirects must be placed at the start of the first line.''</div>
|
{{ic|<nowiki>#redirect [[Target page]]</nowiki>}}
|
↳ [[Target page]]
|- style="border-top:1px solid #aaaaaa;"
|- style="border-top:1px solid #aaaaaa;"
|Section headings
|Section headings
Line 128: Line 119:
''A Table of Contents will automatically be generated for articles with four or more headings.''
''A Table of Contents will automatically be generated for articles with four or more headings.''


''=Level 1= should not be used.''
''=Heading 1= should not be used.''
<!-- Alpine wiki does not have this page yet
<!-- Alpine wiki does not have this page yet
''See also [[Help:Effective use of headers]].
''See also [[Help:Effective use of headers]].
Line 134: Line 125:
''</div>
''</div>
|
|
{{ic|<nowiki>== Level 2 ==</nowiki>}}<br />
{{ic|<nowiki>== Heading 2 ==</nowiki>}}<br />
{{ic|<nowiki>=== Level 3 ===</nowiki>}}<br />
{{ic|<nowiki>=== Heading 3 ===</nowiki>}}<br />
{{ic|<nowiki>==== Level 4 ====</nowiki>}}<br />
{{ic|<nowiki>==== Heading 4 ====</nowiki>}}<br />
{{ic|<nowiki>===== Level 5 =====</nowiki>}}<br />
{{ic|<nowiki>===== Heading 5 =====</nowiki>}}<br />
{{ic|<nowiki>====== Level 6 ======</nowiki>}}<br />
{{ic|<nowiki>====== Heading 6 ======</nowiki>}}<br />
|
|
== Level 2 ==
== Heading 2 ==
=== Level 3 ===
=== Heading 3 ===
==== Level 4 ====
==== Heading 4 ====
===== Level 5 =====
===== Heading 5 =====
====== Level 6 ======
====== Heading 6 ======
|- style="border-top:1px solid #aaaaaa;"
|- style="border-top:1px solid #aaaaaa;"
|Horizontal rule
|Horizontal rule
Line 167: Line 158:
|
|
{{ic|# One}}<br />
{{ic|# One}}<br />
{{ic|#: Do not number this line}}<br />
{{ic|# Two}}<br />
{{ic|# Two}}<br />
{{ic|## Two point one}}<br />
{{ic|## Two point one}}<br />
Line 172: Line 164:
|
|
# One
# One
#: Do not number this line
# Two
# Two
## Two point one
## Two point one
Line 211: Line 204:
|- style="border-top:1px solid #aaaaaa;"
|- style="border-top:1px solid #aaaaaa;"
|Character escape
|Character escape
<div style="padding-left:.5em; font-size:0.9em;">''See [[Help:Template#Escape template-breaking characters]].''</div>
<div style="padding-left:.5em; font-size:0.9em;">''See [[Template:Cat#Example|Escape template-breaking characters]]''</div>
|
|
{{ic|<nowiki>{{ic|1=echo =}}</nowiki>}}
{{ic|<nowiki>{{ic|1=echo =}}</nowiki>}}<br/>
{{ic|<nowiki>{{ic|echo{{=}}}}</nowiki>}}
|
|
{{ic|1=echo =}}
{{ic|1=echo =}}<br/>
{{ic|echo {{=}}}}
|- style="border-top:1px solid #aaaaaa;"
|- style="border-top:1px solid #aaaaaa;"
|Display File Contents
|Display File Contents
Line 226: Line 221:
Second line.}}
Second line.}}
|- style="border-top:1px solid #aaaaaa;"
|- style="border-top:1px solid #aaaaaa;"
|Cmd
|Command
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:Cmd]].''</div>
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:Cmd]].''</div>
|
|
Line 245: Line 240:
Use {{Codeline|apk upgrade -U}} to upgrade.
Use {{Codeline|apk upgrade -U}} to upgrade.
|- style="border-top:1px solid #aaaaaa;"
|- style="border-top:1px solid #aaaaaa;"
|Path
|Display Path
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:Path]].''</div>
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:Path]].''</div>
|
|
Line 260: Line 255:
|
|
{{Note|This text should be noted.}}
{{Note|This text should be noted.}}
|- style="border-top:1px solid #aaaaaa;"
|Tip
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:Tip]].''</div>
|
{{ic|<nowiki>{{Tip|This text should be considered.}}</nowiki>}}
|
{{Tip|This text should be considered.}}
|- style="border-top:1px solid #aaaaaa;"
|- style="border-top:1px solid #aaaaaa;"
|Warning
|Warning
Line 277: Line 279:
|- style="border-top:1px solid #aaaaaa;"
|- style="border-top:1px solid #aaaaaa;"
-->
-->
|Package
|Refer Packages
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:Pkg]].''</div>
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:Pkg]].''</div>
|
|
{{ic|<nowiki>{{Pkg|linux}}</nowiki>}}
{{ic|<nowiki>{{Pkg|linux-lts}}</nowiki>}}
|
{{Pkg|linux-lts}}
|- style="border-top:1px solid #aaaaaa;"
|Refer Issue or Bugs
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:Issue]].''</div>
|
{{ic|<nowiki>{{Issue|279}}</nowiki>}}
|
{{Issue|279}}
|- style="border-top:1px solid #aaaaaa;"
|Refer Another Article
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:Main]] or [[Template:Seealso]]. Placed immediately under section headings''</div>
|
{{ic|<nowiki>{{Main|IRC}}</nowiki>}}<br />
{{ic|<nowiki>{{Seealso|IRC}}</nowiki>}}
|
|
{{Pkg|linux}}
{{Main|IRC}} {{Seealso|IRC}}  
|- style="border-top:1px solid #aaaaaa;"
|- style="border-top:1px solid #aaaaaa;"
|}
|}
[[Category:Wiki]]

Latest revision as of 06:42, 14 December 2025

This page provides a quick reference for common wiki editing commands. See Help:Editing for comprehensive documentation, Help:Style for conventions, or use the sandbox to practice.

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

''italic''

italic

Bold text

'''bold'''

bold

Bold and italic text

'''''bold & italic'''''

bold & italic

Link to another Wiki page

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

Name of page
Text to display
Name of page#Section
Text to display

Link to section on same page

[[#Section]]
[[#Section|Text to display]]

#Section
Text to display

External link

[https://www.google.com/ Google search engine]

Google search engine

Add a page to a category
Categories should be placed at the bottom of pages.
[[Category:Category name]] The category name will display in a bar at the bottom when the page is previewed or saved.
Signature

Sign your contributions when posting to a Talk page.

Do not sign when contributing to an article.

See also Help:Signature.

~~~~

Username, 07:42, 16 December 2025 (UTC)

Works anywhere in the text (HTML)
Description You type You get
Strikethrough

<s>strikethrough</s>

strikethrough

Underline

<u>underline</u>

underline

Subscripts and superscripts

regular<sub>sub</sub> <sup>sup</sup>

regularsub sup

Works only at the beginning of lines
Description You type You get
Code

Start code lines with one or more spaces.

 $ echo Hello World

$ echo Hello World

Section headings

A Table of Contents will automatically be generated for articles with four or more headings.

=Heading 1= should not be used.

== Heading 2 ==
=== Heading 3 ===
==== Heading 4 ====
===== Heading 5 =====
====== Heading 6 ======

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
Horizontal rule

----


Bulleted list

* One
* Two
** Two point one
* Three

  • One
  • Two
    • Two point one
  • Three
Numbered list

# One
#: Do not number this line
# Two
## Two point one
# Three

  1. One
    Do not number this line
  2. Two
    1. Two point one
  3. Three
Definition list

; Term one: Definition one
; Term two: Definition two

Term one
Definition one
Term two
Definition two
Indenting text
This is generally used when replying on a Talk page, as it keeps conversations easy to browse.

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

{{ic|code}}

code

Character escape

{{ic|1=echo =}}
{{ic|echo{{=}}}}

echo =
echo =

Display File Contents

{{Cat|/path/file|Body '''text'''
Second line.}}

Contents of /path/file

Body '''text''' Second line.
Command

{{Cmd|apk add package}}

apk add package

Codeline

Use {{Codeline|apk upgrade -U}} to upgrade

Use apk upgrade -U to upgrade.

Display Path

{{Path|/etc/network/interfaces}}

/etc/network/interfaces

Note

{{Note|This text should be noted.}}

Note: This text should be noted.
Tip

{{Tip|This text should be considered.}}

Tip: This text should be considered.
Warning

{{Warning|This text should be heeded.}}

Warning: This text should be heeded.

Refer Packages

{{Pkg|linux-lts}}

linux-lts

Refer Issue or Bugs

{{Issue|279}}

#279

Refer Another Article
Use Template:Main or Template:Seealso. Placed immediately under section headings

{{Main|IRC}}
{{Seealso|IRC}}