查看“Help:格式”的源代码
←
Help:格式
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
== 文本格式化标记 == {| class="wikitable" ! 描述 ! width=40% | 用户键入 ! width=40% | 输出效果 |- ! colspan="3" style="background: #ABE" | 字符 (内嵌) 格式 – ''适用于任何地方'' |- | 斜体文字 | <pre> ''斜体'' </pre> | ''斜体'' |- | 粗体文字 | <pre> '''粗体''' </pre> | '''粗体''' |- | 粗斜体 | <pre> '''''粗斜体''''' </pre> | '''''粗斜体''''' |- | 删除线 | <pre> <strike> 删除线 </strike> </pre> |<strike> 删除线 </strike> |- | 显示维基标记符号 | <pre> <nowiki>不使用 ''标记符号''</nowiki> </pre> | <nowiki>不使用 ''标记符号''</nowiki> |- | 单次显示维基标记符号 | <pre> [[API]]<nowiki/>扩展 </pre> | [[API]]<nowiki/>扩展 |- ! colspan="3" style="background: #ABE" | 区域格式 – ''仅在行首起作用'' |- | 不同等级的小标题 | <pre> == 第二级 == === 第三极 === ==== 第四级 ==== ===== 第五级 ===== ====== 第六级 ====== </pre> | <!-- using HTML markup to avoid creating new sections --> <h2>第二级</h2> <h3>第三级</h3> <h4>第四级</h4> <h5>第五级</h5> <h6>第六级</h6> |- | 水平分割先 | <pre> 之前的文字 ---- 之后的文字 </pre> | 之前的文字 ---- 之后的文字 |- | 圆点列表 | <pre> * 在每一行的开始 * 加入一个 [[Wikipedia:asterisk|asterisk]] (*). ** 越多的星号意味着 *** 更深的层级. * 换行符 <br /> 并不会破坏层级. *** 多层级间的跳转会产生空白。 一个不带星号的行会使列表结束 </pre> | * 在每一行的开始 * 加入一个 [[Wikipedia:asterisk|asterisk]] (*). ** 越多的星号意味着 *** 更深的层级. * 换行符 <br /> 并不会破坏层级. *** 多层级间的跳转会产生空白。 一个不带星号的行会使列表结束 |- | 有序列表 | <pre> # 在每一行的开始 # 加入一个 [[Wikipedia:Number_sign|number sign]] (#). ## 越多的井号意味着 ### 更深的. ### 层级. # 换行符 <br /> 并不会破坏层级. ### 多层级间的跳转会产生空白。 # 空白的行 # 会结束一个列表,并开启另一个新的列表 另外的一个空行,同样会终结一个列表 </pre> | # 在每一行的开始 # 加入一个 [[Wikipedia:Number_sign|number sign]] (#). ## 越多的井号意味着 ### 更深的. ### 层级. # 换行符 <br /> 并不会破坏层级. ### 多层级间的跳转会产生空白。 # 空白的行 # 会结束一个列表,并开启另一个新的列表 另外的一个空行,同样会终结一个列表 |- | 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> |} == 段落 == MediaWiki会忽略所有的单个换行。 为了开始一个新的段落,请使用一个单独的空白行。在段落中可以使用HTML的换行符 <code><br /></code> 来强行换行。 == 其他格式 == * [[Help:表格|表格]]
该页面使用的模板:
Template:Anchor
(
查看源代码
)
Template:Note
(
查看源代码
)
返回至
Help:格式
。
导航菜单
个人工具
创建账户
登录
名字空间
帮助
讨论
不转换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息