Difference between revisions of "Help:Cheatsheet"

From ArchWiki
Jump to: navigation, search
(Add i18n tempate)
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
[[Category:Help]] __NOTOC__ __NOEDITSECTION__
 
[[Category:Help]] __NOTOC__ __NOEDITSECTION__
{{i18n|ArchWiki Cheatsheet}}
+
[[es:Help:Cheatsheet]]
 +
[[zh-CN: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 37: Line 38:
 
[[Name of page|Text to display]]
 
[[Name of page|Text to display]]
 
|- style="border-top:1px solid #aaaaaa;"
 
|- style="border-top:1px solid #aaaaaa;"
|Add a page to a category
+
|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>
 
|<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;"
 
|- style="border-top:1px solid #aaaaaa;"
 
|Signature
 
|Signature
Line 92: Line 93:
 
|Code
 
|Code
 
<div style="padding-left:.5em; font-size:0.9em;">
 
<div style="padding-left:.5em; font-size:0.9em;">
''Start code lines with one or more spaces. Warning, does not autowrap!''
+
''Start code lines with one or more spaces.''
  
 
''See also [[Help:Style#Code formatting templates]].''
 
''See also [[Help:Style#Code formatting templates]].''
 
</div>
 
</div>
 
|
 
|
<span style="border:1px dashed #a9abb0;">&nbsp;</span><tt>$ echo Hello World</tt>
+
<tt><span style="border:1px dashed #a9abb0;">&nbsp;</span>$ echo Hello World</tt>
 
|
 
|
 
{{bc|$ echo Hello World}}
 
{{bc|$ echo Hello World}}

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, 08:46, 29 September 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