查看“Help:格式”的源代码
←
Help:格式
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
== 文本格式化标记 == {| class="wikitable" ! 描述 ! width=40% | 用户键入 ! width=40% | 输出效果 |- ! colspan="3" style="background: #ABE" | Character (inline) formatting – ''applies anywhere'' |- | 斜体文字 | <pre> ''斜体'' </pre> | ''斜体'' |- | 粗体文字 | <pre> '''粗体''' </pre> | '''粗体''' |- | 粗斜体 | <pre> '''''粗斜体''''' </pre> | '''''粗斜体''''' |- | Strike text | <pre> <strike> strike text </strike> </pre> |<strike> strike text </strike> |- | Escape wiki markup | <pre> <nowiki>no ''markup''</nowiki> </pre> | <nowiki>no ''markup''</nowiki> |- | Escape wiki markup once | <pre> [[API]]<nowiki/>扩展 </pre> | [[API]]<nowiki/>扩展 |- ! colspan="3" style="background: #ABE" | Section formatting – ''only at the beginning of the line'' |- | Headings of different levels | <pre> == 第二级 == === 第三极 === ==== 第四级 ==== ===== 第五级 ===== ====== 第六级 ====== </pre> ---- {{note| * [[Special:MyLanguage/Help_talk:Formatting#Level_1|Skip Level 1]], it is page name level. * An article with 4 or more headings automatically creates a [[wikipedia:Wikipedia:Section#Table of contents (TOC)|table of contents]]. }} | <!-- using HTML markup to avoid creating new sections --> <h2>Level 2</h2> <h3>Level 3</h3> <h4>Level 4</h4> <h5>Level 5</h5> <h6>Level 6</h6> |- | Horizontal rule | <pre> Text before ---- Text after </pre> | Text before ---- Text after |- | Bullet list | <pre> * Start each line * with an [[Wikipedia:asterisk|asterisk]] (*). ** More asterisks give deeper *** and deeper levels. * Line breaks <br />don't break levels. *** But jumping levels creates empty space. Any other start ends the list. </pre> | * Start each line * with an [[Wikipedia:asterisk|asterisk]] (*). ** More asterisks give deeper *** and deeper levels. * Line breaks <br />don't break levels. *** But jumping levels creates empty space. Any other start ends the list. |- | Numbered list | <pre> # Start each line # with a [[Wikipedia:Number_sign|number sign]] (#). ## More number signs give deeper ### and deeper ### levels. # Line breaks <br />don't break levels. ### But jumping levels creates empty space. # Blank lines # end the list and start another. Any other start also ends the list. </pre> | # Start each line # with a [[Wikipedia:Number_sign|number sign]] (#). ## More number signs give deeper ### and deeper ### levels. # Line breaks <br />don't break levels. ### But jumping levels creates empty space. # Blank lines # end the list and start another. Any other start also ends the list. |- | Definition list | <pre> ;item 1 : definition 1 ;item 2 : definition 2-1 : definition 2-2 </pre> | ;item 1 : definition 1 ;item 2 : definition 2-1 : definition 2-2 |- | Indent text | <pre> : Single indent :: Double indent ::::: Multiple indent </pre> ---- {{Note|This workaround may harm accessibility.}} | : Single indent :: Double indent ::::: Multiple indent |- | Mixture of different types of list | <pre> # one # two #* two point one #* two point two # three #; three item one #: three def one # four #: four def one #: this looks like a continuation #: and is often used #: instead <br />of <nowiki><br /></nowiki> # five ## five sub 1 ### five sub 1 sub 1 ## five sub 2 </pre> ---- {{note|The usage of <code>#:</code> and <code>*:</code> for breaking a line within an item may also harm accessibility.}} | # one # two #* two point one #* two point two # three #; three item one #: three def one # four #: four def one #: this looks like a continuation #: and is often used #: instead <br />of <nowiki><br /></nowiki> # five ## five sub 1 ### five sub 1 sub 1 ## five sub 2{{anchor|pre}} |- | Preformatted text | <pre> Start each line with a space. Text is '''preformatted''' and ''markups'' '''''can''''' be done. </pre> ---- {{note|This way of preformatting only applies to section formatting. Character formatting markups are still effective.}} | Start each line with a space. Text is '''preformatted''' and ''markups'' '''''can''''' be done. |- | Preformatted text blocks | <pre> <nowiki><nowiki>Start with a space in the first column, (before the <nowiki>). Then your block format will be maintained. This is good for copying in code blocks: def function(): """documentation string""" if True: print True else: print False</nowiki></nowiki> </pre> | <nowiki>Start with a space in the first column, (before the <nowiki>). Then your block format will be maintained. This is good for copying in code blocks: def function(): """documentation string""" if True: print True else: print False</nowiki> |}
该页面使用的模板:
Template:Anchor
(
查看源代码
)
Template:Note
(
查看源代码
)
返回至
Help:格式
。
导航菜单
个人工具
创建账户
登录
名字空间
帮助
讨论
不转换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息