Help:Advanced editing/Zh

From The Scuba Wiki

Jump to: navigation, search
MediaWiki Handbook: Contents, Readers, Editors, Moderators, System admins +/-

Contents

高级编辑(Advanced Editing) — 前言

Wiki文本 — 让你的页面如你所想

参见 Help:Editing.

  • 如果你想尝试编辑一下,又不想造成损害,你可以在 沙盒 中随意捣鼓。
  • 更多信息见 HTML tags in wikitext

编组书写 — 章节,段落,列表,分行

显示效果 你的输入
Sections and subsections

起始一个带标题的段落。(其实就是粗体+单行显示)

注意:单等号表示最高等级标题,例如页面标题;一般按照惯例不使用(避免标题比页面标题还大,喧宾夺主了)。

New section

Subsection

Sub-subsection

  • 从二级标题(h2)起 (==); 不要使用一级(=).
  • 不要跳级 (例如,二级后面接四级).
  • 如果包含4个以上的部分(Section),会被自动添加一个 目录
  • 尽可能将子目按顺序排列。例如国家列表,按字母排序远胜于按照人口经济(OECD),或者乱序。
  • 如果你不想要标题的TOC,就必须使用HTML标签,并且不可用反斜杠结尾。例如:
    <h4>heading too low level to be in the toc of large page<h4>.
;Sections and subsections
起始一个带标题的段落。

== New section ==

=== Subsection ===

==== Sub-subsection ====
换行

一个 单独的 换行 显示时 没有 效果。

但是一个空行

会开始一个新的段落, 或者结束一个列表或者缩进。 (<p> 符号会禁用这个分段的能力,直到结束符号 </p> 或者段落(Section)结束)

(在 Cologne Blue 中,两个新行和一个'div'标签只能得到一个换行;如果顺序 换行->DIV->换行 ,结果是两个新行)

行首的分号不会被显示,但是会有换行效果。 该行的冒号也不会显示,但是会有换行并缩进的效果,见'定义表'

在wiki文本中放入空行可以提高文字的可读性。 但你会发现,这可能导致后续问题;更多细节参考 w:Wikipedia:Don't use line breaks

  • 使用列表的时候,换行是会作用到显示输出的。 (See Help:List).

一个
单独的
换行
显示时
没有
效果。

但是一个空行

会开始一个新的段落。
你可以断行
而不必开始新的段落。

( HTML标签 <br> 就足够了。系统会生成XHTML代码 <br />。)

  • 请不要滥用。
  • 在行内结束标记;不要开始一个 链接 或者 斜体 或者 粗体,却在下一行结束。
你可以断行<br>
而不必开始新的段落。
  • 无序列表写起来很简单:
    • 在行首写上个星号
      • 多个星号对应多级
  • 列表中
  • 的换行

标记了列表项的结束。

  • 当然了
  • 你可以
  • 再开始。
* 无序列表写起来很简单:
** 在行首写上个星号
*** 多个星号对应多级
*列表中
*的换行  
标记了列表项的结束。
*当然了
*你可以
*再开始。

  1. 编号列表同样好使
    1. 非常有序
    2. 容易理解
  2. 列表中
  3. 的换行

标记了列表项的结束。

  1. 新的数字
  2. 从1开始。
# 编号列表同样好使
## 非常有序
## 容易理解
#列表中
#的换行  
标记了列表项的结束。
#新的数字
#从1开始。
  • 你甚至可以做混合列表
    1. 只需将其嵌套
      • 或者换行
        即可
* 你甚至可以做混合列表
*# 只需将其嵌套
*#* 或者换行<br>即可
定义表
单词 
单词的定义
长点的句子
定义的句子
; 单词 : 单词的定义
; 长点的句子 
: 定义的句子
  • 每项一行;冒号前可以用换行,但是冒号前用空格更符合含义。
缩进
行首加冒号可使段落缩进。

换行起始新段。

冒号前有分号接一些字符,这种情况下,第一个冒号会换行并缩进,即使冒号不在行首,见上节:定义表。

:行首加冒号可使段落缩进。
换行起始新段。

当需要分隔出来一段字符区域时

blockquote符号将左右缩进,不像冒号只是左缩进。 额外效果字符额外效果字符额外效果字符额外效果字符额外效果字符

在插入引用段落时(就像其名称)很有用。

<blockquote>
'''blockquote'''符号
将左右缩进,
不像冒号只是左缩进。
额外效果字符额外效果字符额外效果字符额外效果字符额外效果字符
</blockquote>
居中文本。
  • 注意 "center" 是美式拼写.
<center>居中字符串。</center>
水平分割线:

之上的部分...


...之下的部分。

如果你不使用段落标题,就不会有目录表。

水平分割线: 
之上的部分...
----
...之下的部分。

链接,超链接 Links, URLs

更多信息见 Help:Link

内部链接 Internal links

概述:

  • 目标字符串 放入双方括号的包围中 — "[[" and "]]"
  • 目标字符串的第一个字母将自动变成大写.
  • 空白字符将以下划线方式展现(但是你自己不要亲自写下划线)
  • 链接指向不存在的页面 会被以红色显示 — Help:Starting a new page 描述了如何创建一个新页.
  • 鼠标停留在链接上时,在链接下方将出现一个提示框,包含链接提示。
显示 输入
基础

Sue 正在阅读 official position (or Official positions).

Sue is reading the 
[[official position]]
(or [[Official position]]s).
基础 + 文字格式

你还可以使链接 斜体 显示。例如:Wikipedia

 ''[[Wikipedia]]'' 
wiki 内部链接

链接到其它Wiki上的页面(例如其它语言的同一主题)

* 参考 [[m:Help:Interwiki linking]].
*[[:fr:Wikipédia:Aide]].
页面内 段落标题

如果段落标题不存在,链接将跳转到页首。 如果有多个相同标题,添加序号来链接到指定标题。(例如:如果有3个标题名为“示例标题”,你想跳转到第三个,那么使用[[#示例标题 3]]。更多信息,参见:Help:Editing FAQ.

*[[List of cities by country#Morocco]]
*[[List of cities by country#Norway]]
指定显示字符 Piped link

用管道符号 "|" 来创建一个标签链接:

*[[Help:Link|About Links]]

"空" 管道

隐藏额外字符

在管道符号 | 后留空,服务器将自动填充链接标签。

*Parentheses: [[kingdom (biology)|]]. 
*Colon: [[m:Requests for adminship|]].
指向不存在页面的链接

红色的链接 (like this one) 表示指向的页面不存在。

  • 点击后可以创建该页面。
  • 看看 如何开始一页 向导,以及你的项目的命名约定。
红色的链接 ([[like this one]]) 表示指向的页面不存在。
链接自己

讨论页面上,请务必在评论后留下签名

你的用户名: 炽火 Zero ℃
你的用户名 + 时间戳: 炽火 Zero ℃ 12:17, 19 October 2006 (UTC)
五个波浪线则只有时间戳: 12:17, 19 October 2006 (UTC)

保存后服务器会替换该链接成为你的签名

讨论页面上,请务必在评论后留下'''签名''':
: 你的用户名: ~~~
: 你的用户名 + 时间戳: ~~~~
: 五个波浪线则只有时间戳: ~~~~~
重定向

用来跳转到其它文章。

  • 注意:必须写到页首。
#REDIRECT [[United States]]
"魔术" 链接
ISBN 0123456789X
RFC 123
媒体链接

要包含非图象链接,使用“媒体”链接
Sound

[[media:Sg_mrob.ogg|Sound]]
类别清单链接(出现在页尾并列出类别的内容)

用在页尾,用来列出类别的内容,并链接到该类别。

[[Category:English documentation]]
类别无清单链接(行内显示没有类别内容清单)

要链接到一个类别,但不列出类别内容,在类别前添加冒号
Category:English documentation

[[:Category:English documentation]]
日期

使用日期链接,这样大家可以设置自己的显示排序。使用 参数设置 来更改你自己的日期显示格式设定。
July 20 1969 20 July 1969 and 1969-07-20

[[July 20]] [[1969]]
[[20 July]] [[1969]]
and [[1969]]-[[07-20]]
特殊页面

"那些页面链接到当前页" 等等,可以这样链接:
Special:Whatlinkshere/Help:Editing

[[Special:Whatlinkshere/Help:Editing]]

外部链接 External links

Nupedia, [1]
[http://www.nupedia.com Nupedia],
[http://www.nupedia.com]
Email Example,

[2]

[mailto:email@example.com Email Example],
[mailto:email@example.com]

或者直接给出网址URL: http://www.nupedia.com.

  • 超链接中,所有字符必须是以下之一: A-Z a-z 0-9 ._\/~%- &#?!=()@ \x80-\xFF 。如果一个超链接包含了其它字符就应该被转换;例如,^ 必须写成 ^ (用于在ASCII中检索)。一个空格也可以被转换成一个下划线。
或者直接给出网址URL:
http://www.nupedia.com.

格式化文本 — 控制它的外观

<td>
You can also write 
<span style="font-variant:small-caps">
in small caps</span>.
If the wiki has the templates, this can 
{{bsm}}be much simpler to write{{esm}}.

</td>

<tr valign=top> <td>打字机字体,有时用于 术语名词 and 计算机代码.
  • 在语义上,用 <code> 比用 <tt> 更加合适.
  • (tt实际上应该是'teletype'电传打字机,不是'technical term'专业术语)
</td> <td>
A typewriter font, sometimes used for 
<tt>technical terms</tt> and <code>computer code</code>.

</td> </tr> <tr valign=top> <td>说明文字可以用 小号文本。 </td>

<td>
You can use <small>small text</small> 
for captions.

</td> </tr> <tr valign="top"><td>可以使用 <strike>删划线表示删除的材料 和 <u>下划线表示新材料.

你还可以标记上 <del>删除材料 和 <ins>插入材料 ,用逻辑标记胜于使用虚拟标记。

  • 当编辑正式文章时,直接做更改,不要用特殊方法做记号。
  • 当编辑讨论页你过去的发言时,有时候标记上你的删除和添加部分是比较合适的。

</td>

<td>
You can <strike>strike out deleted material</strike>
and <u>underline new material</u>.

You can also mark <del>deleted material</del> and
<ins>inserted material</ins> using logical markup
rather than visual markup.

</td> </tr>

<tr valign="bottom" id="subscript"><td>下标(脚注): x2
上标: x2 或 x²

大部分浏览器支持使用更简洁的书写格式 &sup2; 而不必书写 <sup>2</sup>

ε0 = 8.85 × 10−12 C² / J m.

1 hectare = 1 E4 m² 1公顷等于一万立方米 </td>

<td valign="bottom">
Subscript: x<sub>2</sub>
Superscript: x<sup>2</sup> or x&sup2;
&epsilon;<sub>0</sub> =
8.85 &times; 10<sup>&minus;12</sup>
C&sup2; / J m.

1 [[hectare]] = [[1 E4 m&sup2]]
</td>

</tr> </table>

禁用wiki专用标签和简写 and/or 重新格式化

<nowiki> 标签和 <pre> 标签可以让服务器和浏览器仅显示你的原始输入,忽略其中包含的其它标签。

显示 输入

Emphasize (斜体), strongly (粗体), very strongly (粗斜体). (这些是双/三个单引号,不是双引号哦)

注意: 链接也可以使用这些格式。(例如, Wikipedia).

''Emphasize'', '''strongly''',
'''''very strongly'''''.

''[[Wikipedia]]''

你也可以直接书写HTML标签(部分),例如<i>italic</i> and <b>bold</b>. 在编辑数学公式时很有用,这时你不仅需要粗体斜体,还需要特殊字符格式。

F = ma

(两种方法的区别对图形浏览器来说不重要,所以尽可忽略)。但是也许在编辑的视觉效果上区别较大。;-)

You can also write <i>italic</i> and <b>bold</b>.
This is useful in mathematical formulas where you 
need specific font styles rather than emphasis.
:<b>F</b> = <i>m</i><b>a</b>

你还可以书写小号大写(英文字符适用) in small caps. 如果wiki有这个模版, 这个 Template:Bsm可以简化书写</span>.

正常情况

  • 解释专用字符
  • 解释wiki专用标记
  • 重新格式化文本(去除单独新行和重复的空格,执行自动换行)
  • 一个双空行被解释为一个新的段落开始(就是分段)

arrow →

italics link

arrow      &rarr;

''italics''
[[link]]

<nowiki>

  • 解释专用字符
  • 不解释wiki专用标记
  • 重新格式化文本
  • 忽略双空行(不分段);因此必须在段落内使用。

can be applied in-line: arrow → ''italics'' [[link]] normal again

''can be applied in-line:'' <nowiki>
arrow      &rarr;

''italics''
[[link]]
</nowiki>''[[normal]] again''

<pre>

  • 解释专用字符
  • 不解释wiki专用标记
  • 不格式化文本(不会自动换行no wrapping)
  • 允许在HTML元素pre上套用CSS格式;默认皮肤是一个虚线实心块。
  • 使用定宽字体,该字体在浏览器中设置。
arrow      →

''italics''
[[link]]
<pre>arrow      &rarr;

''italics''
[[link]]</pre>

行前空格

  • 解释专用字符
  • 解释wiki专用标记
  • 不格式化文本 (不自动换行no wrapping)
  • 产生HTML元素pre,因此字体和CSS与pre相同;默认皮肤下是个实块。
arrow      →

italics
link
IF a line of plain text starts with a space
 it will be formatted exactly
   as typed
 in a  font
 in a grey dotted-outline box
 lines won't wrap
ENDIF
this is useful for:
 * pasting preformatted text;
 * algorithm descriptions;
 * program source code
 * ASCII art;
 * chemical structures;
 * poetry
WARNING
如果你写的过长, 会 强制整页变长,并因此而减少可读性。
永远不要在普通的一行前加入空格。(see also below)



arrow      &rarr;

 ''italics''
 [[link]]
 IF a line of plain text starts with a space
  it will be formatted exactly
    as typed
  in a fixed-width font
  in a grey dotted-outline box
  lines won't wrap
 ENDIF
 this is useful for:
  * pasting preformatted text
  * algorithm descriptions
  * program source code
  * ASCII art
  * chemical structures
  * poetry

打字机字体

(超出段尾后实效):

arrow →

italics link

New paragraph.

<tt>arrow      &rarr;</tt>

<tt>''italics''</tt>
<tt>[[link]]

New paragraph.</tt>
显示专用字符代码

&rarr;

&amp;rarr;
注释

之间的注释不会显示

在 '''前'''
<!-- comment here -->
'''后''' 之间的注释不会显示

特殊字符

显示 输入

原音变音和重音符号: (参考 Help:Special characters)
À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ñ Ò Ó Ô Õ Ö Ø Ù Ú Û Ü ß à á â ã ä å æ ç è é ê ë ì í î ï ñ ò ó ô œ õ ö ø ù ú û ü ÿ

À Á Â Ã Ä Å
Æ Ç È É Ê Ë
Ì Í Î Ï Ñ Ò
Ó Ô Õ Ö Ø Ù
Ú Û Ü ß à á
â ã ä å æ ç
è é ê ë ì í
î ï ñ ò ó ô
œ õ ö ø ù ú
û ü ÿ


À Á Â Ã Ä Å
Æ Ç È É Ê Ë
Ì Í Î Ï Ñ Ò
Ó Ô Õ Ö Ø Ù
Ú Û Ü ß à á
â ã ä å æ ç
è é ê ë ì í
î ï ñ ò ó ô
œ õ ö ø ù ú
û ü ÿ

&Agrave; &Aacute; &Acirc; &Atilde; &Auml; &Aring;
&AElig; &Ccedil; &Egrave; &Eacute; &Ecirc; &Euml;
&Igrave; &Iacute; &Icirc; &Iuml; &Ntilde; &Ograve;
&Oacute; &Ocirc; &Otilde; &Ouml; &Oslash; &Ugrave;
&Uacute; &Ucirc; &Uuml; &szlig; &agrave; &aacute;
&acirc; &atilde; &auml; &aring; &aelig; &ccedil;
&egrave; &eacute; &ecirc; &euml; &igrave; &iacute;
&icirc; &iuml; &ntilde; &ograve; &oacute; &ocirc;
&oelig; &otilde; &ouml; &oslash; &ugrave; &uacute;
&ucirc; &uuml; &yuml;

标点符号:
¿ ¡ « » § ¶ † ‡ • - – —

¿ ¡ « » § ¶
† ‡ • - – —

¿ ¡ « » § ¶
† ‡ • - – —

&iquest; &iexcl; &laquo; &raquo; &sect; &para;
&dagger; &Dagger; &bull; - &ndash; &mdash;
</td>

商业符号:
™ © ® ¢ € ¥ £ ¤

™ © ® ¢ € ¥ £ ¤

™ © ® ¢ € ¥ £ ¤

&trade; &copy; &reg; &cent; &euro; &yen; &pound; &curren;
希腊字母

α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ ς τ υ φ χ ψ ω Γ Δ Θ Λ Ξ Π Σ Φ Ψ Ω

α β γ δ ε ζ
η θ ι κ λ μ ν
ξ ο π ρ σ ς
τ υ φ χ ψ ω
Γ Δ Θ Λ Ξ Π
Σ Φ Ψ Ω

α β γ δ ε ζ
η θ ι κ λ μ ν
ξ ο π ρ σ ς
τ υ φ χ ψ ω
Γ Δ Θ Λ Ξ Π
Σ Φ Ψ Ω

&alpha; &beta; &gamma; &delta; &epsilon; &zeta;
&eta; &theta; &iota; &kappa; &lambda; &mu; &nu;
&xi; &omicron; &pi; &rho;  &sigma; &sigmaf;
&tau; &upsilon; &phi; &chi; &psi; &omega;
&Gamma; &Delta; &Theta; &Lambda; &Xi; &Pi;
&Sigma; &Phi; &Psi; &Omega;
数学符号

∫ ∑ ∏ √ − ± ∞ ≈ ∝ ≡ ≠ ≤ ≥ × · ÷ ∂ ′ ″ ∇ ‰ ° ∴ ø ∈ ∩ ∪ ⊂ ⊃ ⊆ ⊇ ¬ ∧ ∨ ∃ ∀ ⇒ ⇔ → ↔ ↑

∫ ∑ ∏ √ − ± ∞
≈ ∝ ≡ ≠ ≤ ≥
× · ÷ ∂ ′ ″
∇ ‰ ° ∴ ø
∈ ∩ ∪ ⊂ ⊃ ⊆ ⊇
¬ ∧ ∨ ∃ ∀ ⇒ ⇔
→ ↔ ↑

有问题的符号:

ℵ ∉

ℵ ∉

∫ ∑ ∏ √ − ± ∞
≈ ∝ ≡ ≠ ≤ ≥
× · ÷ ∂ ′ ″
∇ ‰ ° ∴ ø
∈ ∩ ∪ ⊂ ⊃ ⊆ ⊇
¬ ∧ ∨ ∃ ∀ ⇒ ⇔
→ ↔ ↑

&int; &sum; &prod; &radic; &minus; &plusmn; &infin;
&asymp; &prop; &equiv; &ne; &le; &ge; 
&times; &middot; &divide; &part; &prime; &Prime;
&nabla; &permil; &deg; &there4; &oslash;
&isin; &cap; &cup; &sub; &sup; &sube; &supe;
&not; &and; &or; &exist; &forall; &rArr; &hArr;
&rarr; &harr; &uarr;

有问题的符号:

ℵ ∉

&alefsym; &notin;

包含其它页面 — 引用和模版

更改一个被引用的文件,所有引用它的文件都会改变。 Changing a transcluded file will change every file that transcludes it.

transclusion
将其它页面的内容包括进来。
This transclusion demo is a little bit of text from the page Help:Transclusion Demo to be included into any file.
{{:Help:Transclusion Demo}}
Help:Template名字空间

一种为引用而特殊设计的页面。这些页面位于模版: namespace 模版甚至可以接受参数。 当你编辑的时候,页面上使用的所有模版会在编辑框下面列出。

This is underlined
{{H:title|hovertext|This is underlined}}

Template:Ph:Advanced editing/Zh

Links to other help pages

Help contents
Meta | Wikinews | Wikipedia | Wikiquote | Wiktionary | commons: | mw: | b: | s: | mw:Manual | google
Versions of this help page (for other languages see below)
Meta | Wikinews | Wikipediahttp://en.wikipedia.org/Help:Advanced_editing/Zh | Wikiquote | Wiktionary
What links here on Meta or from Meta | Wikipedia | MediaWiki
Reading
Go | Search | Stop words | URL | Namespace | Page name | Section
Backlinks | Link | Piped link | Interwiki link | Redirect | Category | Image page
Logging in and preferences
Logging in | Preferences | User style
Editing
Advanced editing | Editing FAQ | Edit toolbar | Export | Import | Shortcuts
Tracking changes
Recent changes (enhanced) | Related changes | Watching pages | Diff
Page history | Edit summary | User contributions | Minor edit | Patrolled edit
Style & formatting
Wikitext examples | Reference card | HTML in wikitext | List | Table | Sorting | Colors
Special input and output
Inputbox | Special characters | Displaying a formula | Images (uploads) | EasyTimeline
Advanced functioning
Template | Advanced templates | Parser function | ParserFunctions | Parameter default
Variable | Magic word | System message | Substitution | Array | Calculation
Page management
Starting a new page | Renaming (moving) a page | Protecting pages | Deleting a page
Special pages
Talk page | Testing | Sandbox | CentralNotice

Template:-

Personal tools
support the site