Difference between revisions of "Help:Cheatsheet"

From ArchWiki
Jump to: navigation, search
m (wc)
(17 intermediate revisions by 7 users not shown)
Line 1: Line 1:
[[Category:ArchWiki Help (English)]] __NOTOC__ __NOEDITSECTION__
+
[[Category:Help]] __NOTOC__ __NOEDITSECTION__
<div align="center">
+
[[es:Help:Cheatsheet]]
<!--COMMENT MARKUP (displays in edit mode only)-->
+
[[zh-CN:Help:Cheatsheet]]
{| align="center" style="width:100%; border:1px #0771a6 solid; background:#f9f9f9; text-align:left;"
+
For a full list of editing commands, see [[Help:Editing]]. To experiment with editing, use the [[sandbox]].
|-<!--WORKS ANYWHERE IN THE TEXT (WIKITEXT)-->
+
 
| colspan="3" style="background:#333333; color:#ffffff; padding: 0.2em; font-size: 0.9em; text-align:center;" | '''Works anywhere in the text (wikitext)'''
+
{| align="center" style="width:100%; border:1px #0771a6 solid; background:#f9f9f9; text-align:left; border-collapse:collapse;"
|-<!--COLUMN HEADINGS-->
+
|- style="background:#333333; color:#ffffff; font-size: 0.9em; text-align:center;"
| width="30%" style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|Description
+
| colspan="3" | '''Works anywhere in the text (wikitext)'''
|             style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|You type
+
|- style="background:#333333; color:#ffffff; font-size: 0.9em; text-align:center;"
| width="30%" style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|You get
+
| width="30%" |Description
|-<!--1ST ROW 1ST COLUMN-->
+
|            |You type
 +
| width="30%" |You get
 +
|-
 
|Italic text
 
|Italic text
|<!--2ND COLUMN-->
+
|
 
<tt><nowiki>''italic''</nowiki></tt>
 
<tt><nowiki>''italic''</nowiki></tt>
|<!--3RD COLUMN-->
+
|
 
''italic''
 
''italic''
|-<!--HORIZONTAL LINE-->
+
|- style="border-top:1px solid #aaaaaa;"
|colspan="3" style="border-top:1px solid #aaaaaa;"|
+
|-<!--2ND ROW 1ST COLUMN-->
+
 
|Bold text
 
|Bold text
 
|
 
|
Line 23: Line 23:
 
|
 
|
 
'''bold'''
 
'''bold'''
|-
+
|- style="border-top:1px solid #aaaaaa;"
|colspan="3" style="border-top:1px solid #aaaaaa;"|
+
|-
+
 
|Bold and italic text
 
|Bold and italic text
 
|
 
|
Line 31: Line 29:
 
|
 
|
 
'''''bold & italic'''''
 
'''''bold & italic'''''
|-
+
|- style="border-top:1px solid #aaaaaa;"
|colspan="3" style="border-top:1px solid #aaaaaa;"|
+
|-
+
 
|Link to another ArchWiki page
 
|Link to another ArchWiki page
 
|
 
|
Line 41: Line 37:
 
[[Name of page]]<br />
 
[[Name of page]]<br />
 
[[Name of page|Text to display]]
 
[[Name of page|Text to display]]
|-
+
|- style="border-top:1px solid #aaaaaa;"
|colspan="3" 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
+
 
|<tt><nowiki>[[Category:Category name]]</nowiki></tt>
 
|<tt><nowiki>[[Category:Category name]]</nowiki></tt>
|Categories should be placed at the '''beginning''' of pages. The category name will display in a bar at the bottom when the page is previewed or saved.
+
|The category name will display in a bar at the bottom when the page is previewed or saved.
|-
+
|- style="border-top:1px solid #aaaaaa;"
|colspan="3" style="border-top:1px solid #aaaaaa;"|
+
|-
+
 
|Signature
 
|Signature
<div style="padding: 0.7em .5em; font-size:0.9em;">''Sign your contributions when posting to a ''Talk'' page.''</div>
+
<div style="padding-left:.5em; font-size:0.9em;">
<div style="padding: 0em .5em; font-size:0.9em;">''Do not sign when contributing to an article.''</div>
+
''Sign your contributions when posting to a ''Talk'' page.''
 +
 
 +
''Do not sign when contributing to an article.''
 +
</div>
 
|
 
|
 
<tt><nowiki>~~~~</nowiki></tt>
 
<tt><nowiki>~~~~</nowiki></tt>
 
|
 
|
[[Special:Mypage|Username]] ([[Special:Mytalk|talk]]) {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
+
[[Special:Mypage|Username]], {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
  
|-<!--WORKS ANYWHERE IN THE TEXT (HTML)-->
+
|- style="background:#333333; color:#ffffff; font-size: 0.9em; text-align:center;"
| colspan="3" style="background:#333333; color:#ffffff; padding: 0.2em; font-size: 0.9em; text-align:center;" | '''Works anywhere in the text (HTML)'''
+
| colspan="3" | '''Works anywhere in the text (HTML)'''
|-<!--COLUMN HEADINGS-->
+
|- style="background:#333333; color:#ffffff; font-size: 0.9em; text-align:center;"
| width="30%" style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|Description
+
| width="30%" |Description
|             style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|You type
+
|            |You type
| width="30%" style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|You get
+
| width="30%" |You get
 
|-
 
|-
 
|Strikethrough
 
|Strikethrough
Line 70: Line 65:
 
|
 
|
 
<s>strikethrough</s>
 
<s>strikethrough</s>
|-
+
|- style="border-top:1px solid #aaaaaa;"
|colspan="3" style="border-top:1px solid #aaaaaa;"|
+
|-
+
 
|Underline
 
|Underline
 
|
 
|
Line 78: Line 71:
 
|
 
|
 
<u>underline</u>
 
<u>underline</u>
|-
+
|- style="border-top:1px solid #aaaaaa;"
|colspan="3" style="border-top:1px solid #aaaaaa;"|
+
|Centering text
|-
+
|Monospace font
+
<div style="padding: 0.7em .5em; font-size:0.9em;">''Consider using <tt><nowiki><pre></nowiki></tt> tags to format code blocks.''</div>
+
<div style="padding: 0em .5em; font-size:0.9em;">''There exist also a number of [[:Category:Template#Code formatting templates|code formatting templates]].''</div>
+
 
|
 
|
<tt><nowiki><tt>teletype</tt></nowiki></tt>
+
<tt><nowiki><center>center</center></nowiki></tt>
 
|
 
|
<tt>teletype</tt>
+
<center>center</center>
|-
+
|- style="border-top:1px solid #aaaaaa;"
|colspan="3" style="border-top:1px solid #aaaaaa;"|
+
|Subscripts and superscripts
|-
+
|Center text
+
 
|
 
|
<tt><nowiki><center>center text</center></nowiki></tt>
+
<tt><nowiki><sub>sub</sub> <sup>sup</sup></nowiki></tt>
 
|
 
|
<center>center text</center>
+
<sub>sub</sub> <sup>sup</sup>
  
|-<!--WORKS ONLY AT THE BEGINNING OF LINES-->
+
|- style="background:#333333; color:#ffffff; font-size: 0.9em; text-align:center;"
| colspan="3" style="background:#333333; color:#ffffff; padding: 0.2em; font-size: 0.9em; text-align:center;" | '''Works only at the beginning of lines'''
+
| colspan="3" | '''Works only at the beginning of lines'''
|-<!--COLUMN HEADINGS-->
+
|- style="background:#333333; color:#ffffff; font-size: 0.9em; text-align:center;"
| width="30%" style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|Description
+
| width="30%" |Description
|             style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|You type
+
|            |You type
| width="30%" style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|You get  
+
| width="30%" |You get  
 
|-
 
|-
 +
|Code
 +
<div style="padding-left:.5em; font-size:0.9em;">
 +
''Start code lines with one or more spaces.''
 +
 +
''See also [[Help:Style#Code formatting templates]].''
 +
</div>
 +
|
 +
<tt><span style="border:1px dashed #a9abb0;">&nbsp;</span>$ echo Hello World</tt>
 +
|
 +
{{bc|$ echo Hello World}}
 +
|- style="border-top:1px solid #aaaaaa;"
 
|Redirect to another page
 
|Redirect to another page
<div style="padding: 0.7em .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>
 
|
 
|
 
<tt><nowiki>#REDIRECT [[Target page]]</nowiki></tt>
 
<tt><nowiki>#REDIRECT [[Target page]]</nowiki></tt>
 
|
 
|
 
&rarr; [[Target page]]
 
&rarr; [[Target page]]
|-
+
|- style="border-top:1px solid #aaaaaa;"
|colspan="3" style="border-top:1px solid #aaaaaa;"|
+
|Section headings
|-
+
<div style="padding-left:.5em; font-size:0.9em;">
|Section headings<br />
+
''A Table of Contents will automatically be generated for articles with four or more headings.''
<div style="padding: 0.7em .5em; font-size:0.9em;">''A Table of Contents will automatically be generated when four headings are added to an article.''</div>
+
 
<div style="padding: 0em .5em; font-size:0.9em;">''=Level 1= should not be used.''</div>
+
''=Level 1= should not be used.''
 +
 
 +
''See also [[Effective Use of Headers]].''</div>
 
|
 
|
 
<tt><nowiki>== Level 2 ==</nowiki></tt><br />
 
<tt><nowiki>== Level 2 ==</nowiki></tt><br />
Line 128: Line 128:
 
===== Level 5 =====
 
===== Level 5 =====
 
====== Level 6 ======
 
====== Level 6 ======
|-
+
|- style="border-top:1px solid #aaaaaa;"
|colspan="3" style="border-top:1px solid #aaaaaa;"|
+
|Horizontal rule
|-
+
|
 +
<tt>----</tt>
 +
|
 +
----
 +
|- style="border-top:1px solid #aaaaaa;"
 
|Bulleted list
 
|Bulleted list
 
|
 
|
Line 142: Line 146:
 
** Two point one
 
** Two point one
 
* Three
 
* Three
|-
+
|- style="border-top:1px solid #aaaaaa;"
|colspan="3" style="border-top:1px solid #aaaaaa;"|
+
|-
+
 
|Numbered list
 
|Numbered list
 
|
 
|
Line 156: Line 158:
 
## Two point one
 
## Two point one
 
# Three
 
# Three
|-
+
|- style="border-top:1px solid #aaaaaa;"
|colspan="3" style="border-top:1px solid #aaaaaa;"|
+
|-
+
 
|Definition list
 
|Definition list
 
|
 
|
Line 166: Line 166:
 
; Term one: Definition one
 
; Term one: Definition one
 
; Term two: Definition two
 
; Term two: Definition two
|-
+
|- style="border-top:1px solid #aaaaaa;"
|colspan="3" style="border-top:1px solid #aaaaaa;"|
+
|-
+
 
|Indenting text
 
|Indenting text
<div style="padding: 0.7em .5em; font-size:0.9em;">''This is generally used when replying on a ''Talk'' page, as it keeps conversations easy to browse.''</div>
+
<div style="padding-left:.5em; font-size:0.9em;">''This is generally used when replying on a ''Talk'' page, as it keeps conversations easy to browse.''</div>
 
|
 
|
 
<tt><nowiki>no indent (normal)</nowiki></tt><br/>
 
<tt><nowiki>no indent (normal)</nowiki></tt><br/>
Line 182: Line 180:
 
:::third indent
 
:::third indent
 
|}
 
|}
</div>
 
 
==See also==
 
<!--Please keep this uncluttered. If you wish to add a link, discuss it on the talk page first.-->
 
* For a full list of editing commands, see [[Help:Editing]]
 
* To experiment with editing, use the [[sandbox]]
 

Revision as of 20:54, 23 September 2012

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
Text to display

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.

~~~~

Username, 10:12, 4 December 2016 (UTC)

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

<s>strikethrough</s>

strikethrough

Underline

<u>underline</u>

underline

Centering text

<center>center</center>

center
Subscripts and superscripts

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

sub 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 templates.

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