MediaWiki Editing Cheatsheet: Difference between revisions

From Ideasplace
Jump to navigation Jump to search
mNo edit summary
Tag: Reverted
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:


<div align="center">
{{Help pages header}}</div></noinclude>
{{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" style="width:100%; border:2px #a3b1bf solid; background:#f5faff; text-align:left;"
{|align="center" style="width:100%; border:2px #a3b1bf solid; background:#f5faff; text-align:left;"
|colspan="3" align="center" style="background:#cee0f2; text-align:center;" |
|colspan="3" align="center" style="background:#cee0f2; text-align:center;" |
Line 15: Line 11:
| style="border-bottom:2px #a3b1bf solid" width="30%" | You get
| style="border-bottom:2px #a3b1bf solid" width="30%" | You get
|-<!--1ST ROW 1ST COLUMN-->
|-<!--1ST ROW 1ST COLUMN-->
|Italics{{Anchor|Italic text}}, bold{{Anchor|Bold text}}, and both{{Anchor|bold and italic}}
|Italics
|<!--2ND COLUMN-->
|<!--2ND COLUMN-->
<code><nowiki>''italics'', '''bold''', and '''''both'''''</nowiki></code>
<code><nowiki>''italics'', '''bold''', and '''''both'''''</nowiki></code>
Line 23: Line 19:
|colspan="3" style="border-top:1px solid #cee0f2;"|
|colspan="3" style="border-top:1px solid #cee0f2;"|
|-<!--2ND ROW 1ST COLUMN-->
|-<!--2ND ROW 1ST COLUMN-->
|[[Wikipedia:Manual of Style/Linking|Link]]{{Anchor|Internal link}} to another page
|[[Wikipedia:Manual of Style/Linking|Link]] to another page
<div style="padding: 0.7em .5em; font-size:0.9em;">''see [[Help:Interwikimedia links]] for linking to sister projects''</div>
<div style="padding: 0.7em .5em; font-size:0.9em;">''see [[Help:Interwikimedia links]] for linking to sister projects''</div>
|
|
Line 100: Line 96:
</syntaxhighlight>
</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<ref name="LoC">[https://www.loc.gov/about/ Library of Congress]</ref> World!


Hello again!<ref name="LoC" /><ref>Perry's Handbook, Sixth Edition, McGraw-Hill Co., 1984.</ref>
Hello again!<ref name="LoC" /><ref>Perry's Handbook, Sixth Edition, McGraw-Hill Co., 1984.</ref>
Line 272: Line 268:
{{Quicktemplates|state=expanded}}
{{Quicktemplates|state=expanded}}
<noinclude>
<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__
[[Category:Wikipedia basic information|{{PAGENAME}}]]
[[Category:Wikipedia text help]]
[[Category:Wikipedia quick introductions]]
[[Category:Wikipedia editor snippet collections]]
</noinclude>

Latest revision as of 16:48, 27 June 2024


Wikitext cheatsheet

Works anywhere in the text        

Description You type You get
Italics

''italics'', '''bold''', and '''''both'''''

italics, bold, and both

Link to another page
see Help:Interwikimedia links for linking to sister projects

[[copy edit]]
[[copy edit]]ors

copy edit
copy editors

"Pipe" a link to change the link's text

[[Android (operating system)|Android]]

Android

Link to a section

[[Frog#Locomotion]]
[[Frog#Locomotion|locomotion in frogs]]
{{slink|Frog#Locomotion}}

Frog#Locomotion
locomotion in frogs
Template:Slink

Red link
Links to pages that don't exist are automatically red. Red links in articles often help by showing desired redirects or notable pages.

[[Red link example]]

Red link example

Plain website

https://www.wikipedia.org

https://www.wikipedia.org

Link a website

[https://www.wikipedia.org]

[1]

Link and name a website

[https://www.wikipedia.org/ Wikipedia]

Wikipedia

Citations, references, and footnotes
sources in the article will appear where {{reflist}} is put, typically under a level 2 section heading (see below) towards the bottom of the page; text between {{}} is for a template.

<syntaxhighlight lang="xml"> Hello<ref name="LoC">Library of Congress</ref> World!<ref>Template:Cite web</ref>

Hello again!<ref name="LoC" /><ref>Perry's Handbook, Sixth Edition, McGraw-Hill Co., 1984.</ref>

References: Template:Reflist </syntaxhighlight>

Hello<ref name="LoC">Library of Congress</ref> World!

Hello again!<ref name="LoC" /><ref>Perry's Handbook, Sixth Edition, McGraw-Hill Co., 1984.</ref>

References: Template:Reflist

Template:Citation needed
one of many cleanup templates

This statement is true.{{cn}}

This statement is true.Template:Cn

SignatureTemplate:Anchor
sign your contributions when posting to a talk page

~~~~

do not sign in an article, only on talk pages

Username (talk) 19:20, 25 September 2025 (UTC)

Ping a user on a talk page
so they will see your comment

[[User:Example]] or {{u|Example}}

User:Example or Template:U

Strike your talk page comment
to show your previous comment is outdated

<syntaxhighlight lang="tid" inline>This topic isn't notable.</syntaxhighlight>

This topic isn't notable.

Underline your text

<u>This topic is notable</u>

This topic is notable

Hide comment(s) somewhere for editors; hidden comments are visible only in the editors
consensus is how things are decided

<!-- This had consensus, discuss at talk page -->

Show an image
for uploading, see the intro to uploading images

Template:Anchor

[[File:Wiki.png|thumb|Caption]]

File:Wiki.png
Caption
Add a page to a categoryTemplate:Anchor [[Category:Category name]]

place near the bottom of a page
shows "Category name" in a bar at bottom when the page is previewed or published
Link to a category or file
[[:Category:Category name]]
[[:File:File name]]

Category:Wikipedia basic information
File:Example.jpg


Works only at the beginning of lines    
Description You type You get
Redirect to another pageTemplate:Anchor
redirects must be placed at the start of the first line

#REDIRECT [[Target page]]

File:Redirect arrow without text.svg Target page

Redirect to a section of another page

#REDIRECT [[Target page#anchorName]]

File:Redirect arrow without text.svg Target page#anchorName

Section headingsTemplate:Anchor
a Table of Contents will automatically be generated when four headings are added to an article

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

do not use  = Level 1 =  as it is for page titles

Level 2

Level 3

Level 4

Level 5
Level 6
Bulleted listTemplate:Anchor

* One
* Two
** Two point one
* Three

  • One
  • Two
    • Two point one
  • Three
Numbered listTemplate:Anchor

# One
# Two
## Two point one
# Three

  1. One
  2. Two
    1. Two point one
  3. Three
Indenting textTemplate:Anchor
this is used when replying on a talk page, to make it easier to follow conversations.
After a string of indents, or to revive a discussion, an outdent {{Outdent|n}} (Template:Outdent) can be used to reset the paragraph to the left margin.

no indent (normal)
: first indent
:: second indent
::: third indent
:::: fourth indent
{{Outdent|4}} return to left margin

no indent (normal)

first indent
second indent
third indent
fourth indent

Template:Outdent return to left margin

Template:Quicktemplates