Difference between revisions of "Help:Cheatsheet"

From ArchWiki
Jump to: navigation, search
m (wc)
(sup + sub; minor touch-ups)
Line 1: Line 1:
 
[[Category:ArchWiki Help (English)]] __NOTOC__ __NOEDITSECTION__
 
[[Category:ArchWiki Help (English)]] __NOTOC__ __NOEDITSECTION__
 
<div align="center">
 
<div align="center">
<!--COMMENT MARKUP (displays in edit mode only)-->
+
<!-- COMMENT MARKUP (displays in edit mode only) -->
 
{| align="center" style="width:100%; border:1px #0771a6 solid; background:#f9f9f9; text-align:left;"
 
{| align="center" style="width:100%; border:1px #0771a6 solid; background:#f9f9f9; text-align:left;"
|-<!--WORKS ANYWHERE IN THE TEXT (WIKITEXT)-->
+
|- <!-- 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)'''
 
| colspan="3" style="background:#333333; color:#ffffff; padding: 0.2em; font-size: 0.9em; text-align:center;" | '''Works anywhere in the text (wikitext)'''
|-<!--COLUMN HEADINGS-->
+
|- <!-- COLUMN HEADINGS -->
 
| width="30%" style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|Description
 
| width="30%" style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|Description
 
|            style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|You type
 
|            style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|You type
 
| width="30%" style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|You get
 
| width="30%" style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|You get
|-<!--1ST ROW 1ST COLUMN-->
+
|-
 
|Italic text
 
|Italic text
|<!--2ND COLUMN-->
+
|
 
<tt><nowiki>''italic''</nowiki></tt>
 
<tt><nowiki>''italic''</nowiki></tt>
|<!--3RD COLUMN-->
+
|
 
''italic''
 
''italic''
|-<!--HORIZONTAL LINE-->
+
|-
 
|colspan="3" style="border-top:1px solid #aaaaaa;"|
 
|colspan="3" style="border-top:1px solid #aaaaaa;"|
|-<!--2ND ROW 1ST COLUMN-->
+
|-
 
|Bold text
 
|Bold text
 
|
 
|
Line 58: Line 58:
 
[[Special:Mypage|Username]] ([[Special:Mytalk|talk]]) {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
 
[[Special:Mypage|Username]] ([[Special:Mytalk|talk]]) {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
  
|-<!--WORKS ANYWHERE IN THE TEXT (HTML)-->
+
|- <!-- WORKS ANYWHERE IN THE TEXT (HTML) -->
 
| 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" style="background:#333333; color:#ffffff; padding: 0.2em; font-size: 0.9em; text-align:center;" | '''Works anywhere in the text (HTML)'''
|-<!--COLUMN HEADINGS-->
+
|- <!-- COLUMN HEADINGS -->
 
| width="30%" style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|Description
 
| width="30%" style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|Description
 
|            style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|You type
 
|            style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|You type
Line 81: Line 81:
 
|colspan="3" style="border-top:1px solid #aaaaaa;"|
 
|colspan="3" style="border-top:1px solid #aaaaaa;"|
 
|-
 
|-
|Monospace font
+
|Monospace
 
<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: 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>
 
<div style="padding: 0em .5em; font-size:0.9em;">''There exist also a number of [[:Category:Template#Code formatting templates|code formatting templates]].''</div>
Line 91: Line 91:
 
|colspan="3" style="border-top:1px solid #aaaaaa;"|
 
|colspan="3" style="border-top:1px solid #aaaaaa;"|
 
|-
 
|-
|Center text
+
|Center
 +
|
 +
<tt><nowiki><center>center</center></nowiki></tt>
 +
|
 +
<center>center</center>
 +
|-
 +
|colspan="3" style="border-top:1px solid #aaaaaa;"|
 +
|-
 +
|Subscripts and superscripts
 
|
 
|
<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-->
+
|- <!-- WORKS ONLY AT THE BEGINNING OF LINES -->
 
| 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" style="background:#333333; color:#ffffff; padding: 0.2em; font-size: 0.9em; text-align:center;" | '''Works only at the beginning of lines'''
|-<!--COLUMN HEADINGS-->
+
|- <!-- COLUMN HEADINGS -->
 
| width="30%" style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|Description
 
| width="30%" style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|Description
 
|            style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|You type
 
|            style="background:#333333; color:#ffffff; padding:0.3em; font-size: 0.9em; text-align:center;"|You type
Line 113: Line 121:
 
|colspan="3" style="border-top:1px solid #aaaaaa;"|
 
|colspan="3" style="border-top:1px solid #aaaaaa;"|
 
|-
 
|-
|Section headings<br />
+
|Section 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: 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>
 
<div style="padding: 0em .5em; font-size:0.9em;">''=Level 1= should not be used.''</div>
Line 185: Line 193:
  
 
==See also==
 
==See also==
<!--Please keep this uncluttered. If you wish to add a link, discuss it on the talk page first.-->
+
<!-- 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]]
 
* For a full list of editing commands, see [[Help:Editing]]
 
* To experiment with editing, use the [[sandbox]]
 
* To experiment with editing, use the [[sandbox]]

Revision as of 15:28, 30 March 2010

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 [[Category:Category name]] 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.
Signature
Sign your contributions when posting to a Talk page.
Do not sign when contributing to an article.

~~~~

Username (talk) 19:56, 24 August 2016 (UTC)

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

<s>strikethrough</s>

strikethrough

Underline

<u>underline</u>

underline

Monospace
Consider using <pre> tags to format code blocks.
There exist also a number of code formatting templates.

<tt>teletype</tt>

teletype

Center

<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
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 when four headings are added to an article.
=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
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

See also

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