Help:Cheatsheet: Difference between revisions

Content deleted Content added
m rm redlink, reword pdf link
Djpmccann (talk | contribs)
Added another reason strikethrough is often used on talk pages.
 
(574 intermediate revisions by more than 100 users not shown)
Line 1:
<noinclude>{{short description|Brief guide to Wikipedia formatting codes}}
{{pp-semi-indef}}{{pp-move-indef}}
<div align="center">
{{Help pages header}}</div></noinclude>
{| style="border:1px solid #B8C7D9; text-align:left; background:#f5faff; font-size: 95%;"
{{Notice|For a complete list of wikitext codes, see <b>[[Help:Wikitext]].</b> For information on special words, see <b>[[Help:Magic words]].</b>|shortcut1=H:CS|shortcut2=H:CHEAT|shortcut3=WP:CHEAT|shortcut4=WP:CHEATSHEET}}
<!--COMMENT MARKUP. Displays in only source editing mode.-->
{|align="center" class="notheme" style="width:100%; border:2px #a3b1bf solid; background:#f5faff; text-align:left;"
|colspan="3" align="center" style="background:#cee0f2; text-align:center;" |
<h2 style="margin:.5em; margin-top:.1em; margin-bottom:.1em; border-bottom:0; font-weight:bold;"><br>Wikitext cheatsheet</h2>
|-<!--WORKS ANYWHERE IN THE TEXT-->
| colspan=3 style="background:#E6F2FF; border-top:2px #a3b1bf solid;text-align:center;" |
'''Works anywhere in the text''' &nbsp; &nbsp; &nbsp; &nbsp;
|-<!--COLUMN HEADINGS--> style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"
| style="border-bottom:2px #a3b1bf solid" width="30%" | Description
| style="border-bottom:2px #a3b1bf solid" | You type
| style="border-bottom:2px #a3b1bf solid" width="30%" | You get
|-<!--1ST ROW 1ST COLUMN-->
|Italics{{Anchor|Italic text}}, bold{{Anchor|Bold text}}, and both{{Anchor|bold and italic}}
|<!--2ND COLUMN-->
<code><nowiki>''italics'', '''bold''', and '''''both'''''</nowiki></code>
|<!--3RD COLUMN-->
''italics'', '''bold''', and '''''both'''''
|-<!--HORIZONTAL LINE-->
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-<!--2ND ROW 1ST COLUMN-->
|[[Wikipedia:Manual of Style/Linking|Link]]{{Anchor|Internal link}} to another page
<div style="padding: 0.7em .5em; font-size:0.9em;">''see [[Help:Interwikimedia links]] for linking to sister projects''</div>
|
<code><nowiki>[[copy edit]]</nowiki></code><br>
<code><nowiki>[[copy edit]]ors</nowiki></code>
|
[[copy edit]]<br>
[[copy edit]]ors
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| width="25%" style="background: #cedff2; padding: 3px 5px; text-align:center;"|'''Description'''
| style="background: #cedff2; padding: 3px 5px; text-align:center;"|'''You type'''
| width="25%" style="background: #cedff2; padding: 3px 5px; text-align:center;"|'''You get'''
|-
|
| colspan="3" style="border-top:1px solid #B8C7D9; background: #cedff2; padding: 3px 5px; text-align:center;" | ''applies anywhere''
"[[Wikipedia:Piped link|Pipe]]" a link to change the link's text
|
<code><nowiki>[[Android (operating system)|Android]]</nowiki></code>
|
[[Android (operating system)|Android]]
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|Italicise text
|<tt><nowiki>''italic''</nowiki></tt>
|''italic''
|-
|
|colspan="3" style="border-top:1px solid #cedff2;"|
Link to a section
|
<code><nowiki>[[Frog#Locomotion]]</nowiki></code><br>
<code><nowiki>[[Frog#Locomotion|locomotion in frogs]]</nowiki></code><br/>
<code><nowiki>{{slink|Frog#Locomotion}}</nowiki></code>
|
[[Frog#Locomotion]]<br>
[[Frog#Locomotion|locomotion in frogs]]<br/>
{{slink|Frog#Locomotion}}
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Bold text
|<tt><nowiki>'''bold'''</nowiki></tt>
|'''bold'''
|-
|[[WP:RED|Red link]]
|colspan="3" style="border-top:1px solid #cedff2;"|
<div style="padding: 0.7em .5em; font-size:0.9em;">''Links to pages that don't exist are automatically red. Red links in articles often help by showing desired [[WP:REDIRECT|redirects]] or [[WP:N|notable]] pages. ''</div>
|
<code><nowiki>[[Red link example]]</nowiki></code>
|
[[Red link example]]
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Bold and italic
|<tt><nowiki>'''''bold & italic'''''</nowiki></tt>
|'''''bold & italic'''''
|-
|Plain website
|colspan="3" style="border-top:1px solid #cedff2;"|
|
<code><nowiki>https://www.wikipedia.org</nowiki></code>
|
https://www.wikipedia.org
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| Internal link<br/>
(within Wikipedia)
|<tt><nowiki>[[name of page]]</nowiki><br/>
<nowiki>[[name of page|display text]]</nowiki>
|[[name of page]]<br/>
[[name of page|display text]]</tt>
|-
|Link a website
|colspan="3" style="border-top:1px solid #cedff2;"|
|
<code><nowiki>[https://www.wikipedia.org]</nowiki></code>
|
[https://www.wikipedia.org]
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
| External link<br/>
(to other websites)
|<tt><nowiki>[http://www.example.com]</nowiki><br/>
<nowiki>[http://www.example.com display text]</nowiki><br/>
<nowiki> http://www.example.com </nowiki>
| [http://www.example.com]<br/>
[http://www.example.com display text]<br/>
http://www.example.com
|-
|Link and name a website
|colspan="3" style="border-top:1px solid #cedff2;"|
|
<code><nowiki>[https://www.wikipedia.org Wikipedia]</nowiki></code>
|
[https://www.wikipedia.org/ Wikipedia]
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|Escape wiki markup
|<tt><nowiki><nowiki>no ''markup''</nowiki></nowiki></tt>
|<nowiki>no ''markup''</nowiki>
|-
|[[Help:Citations quick reference|Citations, references, and footnotes]]
| colspan="3" style="border-top:1px solid #B8C7D9; background: #cedff2; padding: 3px 5px; text-align:center;" | ''applies only at the beginning of the line''
<div style="padding: 0.7em .5em; font-size:0.9em;">sources in the article will appear where <nowiki>{{reflist}}</nowiki> is put, typically under a level 2 section heading (see below) towards the bottom of the page; text between <nowiki>{{}}</nowiki> is for a [[Help:Template|template]].</div>
|
<syntaxhighlight lang="xml">
Hello<ref name="LoC">[https://www.loc.gov/about/ Library of Congress]</ref> World!<ref>{{cite web |url=https://www.w3.org/ |title = World Wide Web Consortium (W3C)}}</ref>
 
Hello again!<ref name="LoC" /><ref>Perry's Handbook, Sixth Edition, McGraw-Hill Co., 1984.</ref>
 
References: {{reflist}}
</syntaxhighlight>
|
Hello<ref name="LoC">[https://www.loc.gov/about/ Library of Congress]</ref> World!<ref>{{cite web |url=https://www.w3.org/ |title = World Wide Web Consortium (W3C)}}</ref>
 
Hello again!<ref name="LoC" /><ref>Perry's Handbook, Sixth Edition, McGraw-Hill Co., 1984.</ref>
 
References: {{reflist}}
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|[[Template:Citation needed]]
|Headings<br>
<div style="padding: 0.7em .5em; font-size:0.9em;">''one of many [[WP:TC|cleanup templates]]''</div>
of different sizes
|
<ttcode><nowiki>==levelThis 1==statement is true.{{cn}}</nowiki></tt><br /code>
<tt><nowiki>===level 2===</nowiki></tt><br />
<tt><nowiki>====level 3====</nowiki></tt><br />
<tt><nowiki>=====level 4=====</nowiki></tt>
|
This statement is true.{{cn}}
==Level 1==
===Level 2===
====Level 3====
=====Level 4=====
|-
|colspan="3" style="border-top:1px solid #cedff2cee0f2;"|
|-
|[[Wikipedia:Signatures|Signature]]{{Anchor|Signature}}
|Bullet list
<div style="padding: 0.7em .5em; font-size:0.9em;">''sign your contributions when posting to a [[Wikipedia:Tutorial (Talk pages)|talk page]]''</div>
|
<code><nowiki>~~~~</nowiki></code><br><br><span style="font-size:0.9em;">''do not sign in an article, only on talk pages''</span>
&#42; one<br>
&#42; two<br>
&#42;&#42; two point one<br/>
&#42; three<br>
|
[[Special:Mypage|Username]] ([[Special:Mytalk|talk]]) {{CURRENTTIME}}, {{CURRENTDAY}} {{CURRENTMONTHNAME}} {{CURRENTYEAR}} (UTC)
* one
* two
** two point one
* three
|-
|colspan="3" style="border-top:1px solid #cedff2cee0f2;"|
|-
|Ping a user on a [[Help:Talk pages#Notifications|talk page]]
|Numbered list
<div style="padding: 0.7em .5em; font-size:0.9em;">''so they will see your comment''</div>
|
<code><nowiki>[[User:Example]]</nowiki></code> or <code><nowiki>{{u|Example}}</nowiki></code>
&#35; one<br>
&#35; two<br>
&#35;&#35; two point one<br/>
&#35; three<br>
|
[[User:Example]] or {{u|Example}}
# one
# two
## two point one
# three
|-
|colspan="3" style="border-top:1px solid #cedff2cee0f2;"|
|-
|[[WP:STRIKE|Strike]] your [[WP:TALK|talk page]] comment
| Definition list
<div style="padding: 0.7em .5em; font-size:0.9em;">''to show your previous comment is outdated or withdrawn''</div>
|
<syntaxhighlight lang="tid" inline><s>This topic isn't [[WP:N|notable]].</s></syntaxhighlight>
&#59;Definition<br>
&#58;item 1<br>
&#58;item 2<br>
|
<s>This topic isn't [[WP:N|notable]].</s>
;Definition
:item 1
:item 2
|-
|colspan="3" style="border-top:1px solid #cedff2cee0f2;"|
|-
|[[WP:Underline|Underline]] your text
|Unformatted text
|
<code><nowiki><u>This topic is notable</u></nowiki></code>
&nbsp;&nbsp;a space at the<br/>
&nbsp;&nbsp;beginning of each line<br/>
&nbsp;&nbsp;creates unformatted<br/>
&nbsp;&nbsp;monospaced text
|
<u>This topic is notable</u>
a space at the
beginning of each line
creates unformatted
monospaced text
|-
|colspan="3" align="center" style="border-top:1px solid #B8C7D9cee0f2;"|[[Help:Editing|Extended cheatsheet]] <tt>|</tt> [[Help:Contents/Editing Wikipedia|More editing help]]
|-
|Hide comment(s) somewhere for editors; hidden comments are visible only in the editors
<div style="padding: 0.7em .5em; font-size:0.9em;">''[[WP:CON|consensus]] is how things are decided''</div>
|
<code><nowiki><!-- This had consensus, discuss at talk page --></nowiki></code>
|
<!-- This had consensus, discuss at talk page -->
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|[[Wikipedia:Picture tutorial|Show an image]]
<div style="padding: 0.7em .5em; font-size:0.9em;">''for uploading, see the [[Help:Introduction to uploading images|intro to uploading images]]''</div>
{{Anchor|Thumbnail image}}
|
<code><nowiki>[[File:Wiki.png|thumb|Caption]]</nowiki></code>
|
[[File:Wiki.png|thumb|Caption]]
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|Add a page to a [[Wikipedia:FAQ/Categories|category]]{{Anchor|Add a page to a category}}
|<code><nowiki>[[Category:Category name]]</nowiki></code><br><br><span style="font-size:0.9em;">''place near the bottom of a page''</span>
|<span style="font-size:0.9em;">''shows''</span> "Category name" <span style="font-size:0.9em;">''in a bar at bottom when the page is previewed or published''</span>
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|Link to a [[Wikipedia:FAQ/Categories|category]] or [[Help:Files|file]]
|<br><code><nowiki>[[:Category:Category name]]</nowiki></code><br><code><nowiki>[[:File:File name]]</nowiki></code>
|<br>[[:Category:Wikipedia basic information]]<br>[[:File:Example.jpg]]
 
 
|-<!--WORKS ONLY AT THE BEGINNING OF LINES-->
| colspan="3" style="background:#E6F2FF; border-top:2px #a3b1bf solid; text-align:center;" | '''Works only at the beginning of lines''' &nbsp; &nbsp;
|-<!--COLUMN HEADINGS--> style="background:#E6F2FF; padding:0.3em; font-size: 0.9em; text-align:center;"
| style="border-bottom:2px #a3b1bf solid" width="30%" | Description
| style="border-bottom:2px #a3b1bf solid" | You type
| style="border-bottom:2px #a3b1bf solid" width="30%" | You get
|-
|[[Wikipedia:Redirect|Redirect to another page]]{{Anchor|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>
|
<code><nowiki>#REDIRECT [[Target page]]</nowiki></code>
|
[[File:Redirect arrow without text.svg|30px|link=]] [[Target page]]
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|[[Wikipedia:Redirect|Redirect to a section of another page]]
|
<code><nowiki>#REDIRECT [[Target page#anchorName]]</nowiki></code>
|
[[File:Redirect arrow without text.svg|30px|link=]] [[Target page#anchorName]]
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|[[Help:Section|Section headings]]{{Anchor|Section headings}}<br>
<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>
|
<code><nowiki>== Level 2 ==</nowiki></code><br>
<code><nowiki>=== Level 3 ===</nowiki></code><br>
<code><nowiki>==== Level 4 ====</nowiki></code><br>
<code><nowiki>===== Level 5 =====</nowiki></code><br>
<code><nowiki>====== Level 6 ======</nowiki></code><br><br>
<span style="font-size:0.9em">''do not use''&nbsp; = Level 1 =&nbsp; ''as it is for page titles''</span>
|
 
== Level 2 ==
=== Level 3 ===
==== Level 4 ====
===== Level 5 =====
====== Level 6 ======
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|[[Help:List|Bulleted list]]{{Anchor|Bulleted list}}
|
<code>* One</code><br>
<code>* Two</code><br>
<code>** Two point one</code><br>
<code>* Three</code>
|
* One
* Two
** Two point one
* Three
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|[[Help:List|Numbered list]]{{Anchor|Numbered list}}
|
<code># One</code><br>
<code># Two</code><br>
<code>## Two point one</code><br>
<code># Three</code>
|
# One
# Two
## Two point one
# Three
|-
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-
|Indenting text{{Anchor|Indenting text}}
<div style="padding: 0.7em .5em; font-size:0.9em;">''this is used when replying on a [[Wikipedia:Tutorial (Talk pages)|talk page]], to make it easier to follow conversations.<br> After a string of indents, or to revive a discussion, an outdent <nowiki>{{Outdent|n}}</nowiki> ([[Template:Outdent]]) can be used to reset the paragraph to the left margin.''</div>
|
<code><nowiki>no indent (normal)</nowiki></code><br>
<code><nowiki>: first indent</nowiki></code><br>
<code><nowiki>:: second indent</nowiki></code><br>
<code><nowiki>::: third indent</nowiki></code><br>
<code><nowiki>:::: fourth indent</nowiki></code><br>
<code><nowiki>{{Outdent|4}} return to left margin</nowiki></code>
|
no indent (normal)<br>
: first indent
:: second indent
::: third indent
:::: fourth indent
{{Outdent|4}} return to left margin
|}
{{Quicktemplates|state=expanded}}
</div>
<noinclude>
 
== See also ==
{{ombox|image=none|small=y|text='''Note''': You can use the [[Wikipedia:Sandbox|sandbox]] to experiment with page editing.|imageright=[[File:Sandbox.svg|42px]]}}
[[File:Wiki_markup_cheatsheet_EN.pdf|upright|thumb|Wiki markup quick reference (PDF download)]]
* For a full list of editing commands, see [[Help:Wikitext]]
* For including parser functions, variables and behavior switches, see [[Help:Magic words]]
* For a guide to displaying mathematical equations and formulas, see [[Help:Displaying a formula]]
* For a guide to editing, see [[Wikipedia:Contributing to Wikipedia]]
* For an overview of commonly used style guidelines, see [[Wikipedia:Simplified Manual of Style]]
* For a page on how to use Wikipedia in bite-sized morsels, see [[Wikipedia:Tips]]
* For advice on writing style and formatting in a bullet-point format, see [[Wikipedia:Styletips]]
* For summaries of some Wikipedia protocols and conventions, see [[Wikipedia:Dos and don'ts]]
* If you don't want to use wikitext markup, try [[Wikipedia:VisualEditor]] instead
* '''To ask a question''', see [[Wikipedia:Questions]] to locate the appropriate venue(s)
---- <div style="font-size:smaller">{{Center|1={{Offer help}}}}</div>
{{Wikipedia editor navigation|state=collapsed}}
 
__NOTOC__ __NOEDITSECTION__
==See also==
*[[:Image:Cheatsheet-en.png|Cheatsheet image]] and .pdf version, intended for printing.
*Use a sandbox such as [[Wikipedia:Sandbox]] for experimentation with editing.
*[[Wikipedia:The perfect article|The perfect article]] provides a checklist of components required to make a "perfect" article.
[[Category:Wikipedia help|{{PAGENAME}}]]
[[Category:Wikipedia basic information|{{PAGENAME}}]]
[[Category:Wikipedia text help]]
__NOTOC__
[[Category:Wikipedia quick introductions]]
__NOEDITSECTION__
[[Category:Wikipedia editor snippet collections]]
</noinclude>