Help:Cheatsheet: Difference between revisions

From ArchWiki
m (add ja link)
(replace right arrow with the proper character used in redirections)
 
(19 intermediate revisions by 11 users not shown)
Line 3: Line 3:
[[es:Help:Cheatsheet]]
[[es:Help:Cheatsheet]]
[[ja:ヘルプ:チートシート]]
[[ja:ヘルプ:チートシート]]
[[pt:Help:Cheatsheet]]
[[ru:Help:Cheatsheet]]
[[ru:Help:Cheatsheet]]
[[zh-CN:Help:Cheatsheet]]
[[zh-hans:Help:Cheatsheet]]
For a full list of editing commands, see [[Help:Editing]]. To experiment with editing, use the [[sandbox]].
For a full list of editing commands, see [[Help:Editing]]. To experiment with editing, use the [[sandbox]].


Line 36: Line 37:
|
|
{{ic|<nowiki>[[Name of page]]</nowiki>}}<br />
{{ic|<nowiki>[[Name of page]]</nowiki>}}<br />
{{ic|<nowiki>[[Name of page|Text to display]]</nowiki>}}
{{ic|<nowiki>[[Name of page|Text to display]]</nowiki>}}<br />
{{ic|<nowiki>[[Name of page#Section]]</nowiki>}}
|
|
[[Name of page]]<br />
[[Name of page]]<br />
[[Name of page|Text to display]]
[[Name of page|Text to display]]<br />
[[Name of page#Section]]
|- style="border-top:1px solid #aaaaaa;"
|Link to section on same page
|
{{ic|<nowiki>[[#Section]]</nowiki>}}
|
[[#Section]]
|- style="border-top:1px solid #aaaaaa;"
|External link
|
{{ic|<nowiki>[https://www.google.com/ Google search engine]</nowiki>}}
|
[https://www.google.com/ Google search engine]
|- style="border-top:1px solid #aaaaaa;"
|- style="border-top:1px solid #aaaaaa;"
|Add a page to a category <div style="padding-left:.5em; font-size:0.9em;">''Categories should be placed at the '''beginning''' of pages.''</div>
|Add a page to a category <div style="padding-left:.5em; font-size:0.9em;">''Categories should be placed at the '''beginning''' of pages.''</div>
Line 50: Line 65:


''Do not sign when contributing to an article.''
''Do not sign when contributing to an article.''
''See also [[mw:Help:Signatures]].''
</div>
</div>
|
|
Line 74: Line 91:
|
|
<u>underline</u>
<u>underline</u>
|- style="border-top:1px solid #aaaaaa;"
|Centering text
|
{{ic|<nowiki><center>center</center></nowiki>}}
|
<center>center</center>
|- style="border-top:1px solid #aaaaaa;"
|- style="border-top:1px solid #aaaaaa;"
|Subscripts and superscripts
|Subscripts and superscripts
|
|
{{ic|<nowiki><sub>sub</sub> <sup>sup</sup></nowiki>}}
{{ic|regular<nowiki><sub>sub</sub> <sup>sup</sup></nowiki>}}
|
|
<sub>sub</sub> <sup>sup</sup>
regular<sub>sub</sub> <sup>sup</sup>


|- style="background:#333333; color:#ffffff; font-size: 0.9em; text-align:center;"
|- style="background:#333333; color:#ffffff; font-size: 0.9em; text-align:center;"
Line 108: Line 119:
<div style="padding-left:.5em; font-size:0.9em;">''Redirects must be placed at the start of the first line.''</div>
<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>}}
{{ic|<nowiki>#redirect [[Target page]]</nowiki>}}
|
|
&rarr; [[Target page]]
[[Target page]]
|- style="border-top:1px solid #aaaaaa;"
|- style="border-top:1px solid #aaaaaa;"
|Section headings
|Section headings
Line 182: Line 193:
::second indent
::second indent
:::third indent
:::third indent
|- style="background:#333333; color:#ffffff; font-size: 0.9em; text-align:center;"
| colspan="3" | '''Templates'''
|- style="background:#333333; color:#ffffff; font-size: 0.9em; text-align:center;"
| width="30%" |Description
|            |You type
| width="30%" |You get
|-
|Inline code
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:ic]].''</div>
|
{{ic|<nowiki>{{ic|code}}</nowiki>}}
|
{{ic|code}}
|- style="border-top:1px solid #aaaaaa;"
|Character escape
<div style="padding-left:.5em; font-size:0.9em;">''See [[Help:Template#Escape template-breaking characters]].''</div>
|
{{ic|<nowiki>{{ic|1=echo =}}</nowiki>}}
|
{{ic|1=echo =}}
|- style="border-top:1px solid #aaaaaa;"
|Block code
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:bc]].''</div>
|
{{bc|<nowiki>
{{bc|
block
code
}}
</nowiki>}}
|
{{bc|
block
code
}}
|- style="border-top:1px solid #aaaaaa;"
|Block code with header
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:hc]].''</div>
|
{{bc|<nowiki>
{{hc|header|
block
}}
</nowiki>}}
|
{{hc|header|
block
}}
|- style="border-top:1px solid #aaaaaa;"
|Note
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:Note]].''</div>
|
{{ic|<nowiki>{{Note|This text should be noted.}}</nowiki>}}
|
{{Note|This text should be noted.}}
|- style="border-top:1px solid #aaaaaa;"
|Warning
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:Warning]].''</div>
|
{{ic|<nowiki>{{Warning|This text should be heeded.}}</nowiki>}}
|
{{Warning|This text should be heeded.}}
|- style="border-top:1px solid #aaaaaa;"
|Man page
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:man]].''</div>
|
{{ic|<nowiki>{{man|7|ascii}}</nowiki>}}
|
{{man|7|ascii}}
|- style="border-top:1px solid #aaaaaa;"
|Package
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:Pkg]].''</div>
|
{{ic|<nowiki>{{Pkg|linux}}</nowiki>}}
|
{{Pkg|linux}}
|- style="border-top:1px solid #aaaaaa;"
|AUR package
<div style="padding-left:.5em; font-size:0.9em;">''Use [[Template:AUR]].''</div>
|
{{ic|<nowiki>{{AUR|linux-git}}</nowiki>}}
|
{{AUR|linux-git}}
|}
|}

Latest revision as of 21:37, 31 December 2022

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

''italic''

italic

Bold text

'''bold'''

bold

Bold and italic text

'''''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

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

Google search engine

Add a page to a category
Categories should be placed at the beginning 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 mw:Help:Signatures.

~~~~

Username, 10:05, 16 April 2024 (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.

See also 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

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

=Level 1= should not be used.

See also Help:Effective use of headers.

== Level 2 ==
=== Level 3 ===
==== Level 4 ====
===== Level 5 =====
====== Level 6 ======

Level 2

Level 3

Level 4

Level 5
Level 6
Horizontal rule

----


Bulleted list

* One
* Two
** Two point one
* Three

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

# One
# Two
## Two point one
# Three

  1. One
  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 =}}

echo =

Block code
{{bc|
block
code
}}
block
code
Block code with header
{{hc|header|
block
}}
header
block
Note

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

Note: This text should be noted.
Warning

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

Warning: This text should be heeded.
Man page

{{man|7|ascii}}

ascii(7)

Package

{{Pkg|linux}}

linux

AUR package

{{AUR|linux-git}}

linux-gitAUR