帮助:Cheatsheet

Brief guide to Wikipedia formatting codes
Zeroclanzhang讨论 | 贡献2024年1月16日 (二) 17:56的版本 (创建页面,内容为“<noinclude>{{short description|Brief guide to Wikipedia formatting codes}} {{pp-semi-indef}}{{pp-move-indef}} <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="c…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)


Wikitext cheatsheet

Works anywhere in the text        

Description You type You get
Italics, bold, and both

''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 in frogs
Frog § Locomotion

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.
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}}

Hello[1] World![2]

Hello again![1][3]

References:
  1. 1.0 1.1 Library of Congress
  2. "World Wide Web Consortium (W3C)".
  3. Perry's Handbook, Sixth Edition, McGraw-Hill Co., 1984.
Template:Citation needed
one of many cleanup templates

This statement is true.{{cn}}

This statement is true.[citation needed]

Signature
sign your contributions when posting to a talk page

~~~~

do not sign in an article, only on talk pages

Username (talk) 18:19, 21 11月 2024 (UTC)

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

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

User:Example or 模板:U

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

<s>This topic isn't [[WP:N|notable]].</s>

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

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

Add a page to a category [[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 page
redirects must be placed at the start of the first line

#REDIRECT [[Target page]]

文件:Redirect arrow without text.svg Target page

Redirect to a section of another page

#REDIRECT [[Target page#anchorName]]

文件:Redirect arrow without text.svg Target page

Section headings
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 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
Indenting text
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

模板:Outdent return to left margin

模板:Quicktemplates


See also

文件:Wiki markup cheatsheet EN.pdf
Wiki markup quick reference (PDF download)

模板:Wikipedia editor navigation