Jump to content

帮助:编辑操作的常见问题与解答

From mediawiki.org
This page is a translated version of the page Help:Editing FAQ and the translation is 86% complete.

本页是对 Help:编辑页面 的补充说明。

以下内容汇集了与编辑相关的“帮助:”页面中的常见问答。 如果你在其他地方找到有价值的信息,也欢迎将其补充到这里。

编辑页面

问:我该如何编辑一篇已有的页面?

答:要编辑 Wiki 页面,可点击页面顶部的“编辑”标签来编辑整页,或点击某一章节旁的“编辑”链接仅编辑该章节。 更多指导可参见 w:Wikipedia:Tutorial Introduction to Wikipedia Editing

我怎样在编辑的内容中签名?

使用三个波浪号 ~~~ 可插入指向你用户页的链接;使用四个波浪号 ~~~~ 可插入链接和时间戳;使用五个波浪号 ~~~~~ 则只插入时间和日期。

如果页面上有多个同名章节标题,我能否链接到特定的某一个?如果可以,怎么做?

可以。每个章节标题(无论层级深浅)都会根据它在页面中出现的次数自动编号。 例如,如果页面中有三个名为 “Foo” 的标题,它们的链接分别是:[[#Foo 1]], [[#Foo 2]], [[#Foo 3]]。 通常 [[Foo]] 会自动链接到第一个标题(即 “Foo 1”),因此数字 1 可省略。 若希望隐藏编号,可使用带管道的链接形式:[[Foo 2|Foo]]

如果你不确定某个标题在页面中出现了多少次,有两种方法可以查明:

  1. 查看目录(Table of Contents)
    在网页中点击目录中的目标标题,页面会跳转到对应部分, 此时浏览器地址栏的 URL 末尾会显示该标题的 ID。 例如标题为 “Foo” 且为第 3 次出现时,URL 可能是:
    http://meta.wikimedia.org/wiki/Example_article#Foo_3
    此时你可以使用 [[#Foo 3]] 来创建链接。
  2. 查看源代码(Inspect Source)
    查看页面源代码,找到目标章节并注意其 ID 标记. 例如,如果章节标题命名为 Foo,并且是第二次出现,它的标签将是:
    <p><a name="Foo_2" id="Foo_2"></a></p>
    <h3>Foo</h3>
    这表示该标题可通过 [[#Foo 2]] 进行链接。

需要注意的是,这些编号可能会随着页面的编辑而变化。如需避免此问题,可参考这个说明:

  1. Linking sections using an arbitrary id (使用自定义 ID 链接章节)

其他

编号列表中能否包含预格式化文本(preformatted text)?

可以。方法之一是直接在表格单元格中使用 HTML 列表元素(List Elements):

有序列表:

  1. Use ordered lists (OL) to begin each item with a number.
  2. End a list item before starting a line with spaces.
  3. Here is a pre-formatted text.
    Enclosed within a border.
    
  4. And the last item
<ol>
<li>Use ordered lists (OL) to begin each item with a number.</li>
<li>End a list item before starting a line with spaces.</li>
<pre>
Here is a pre-formatted text.
Enclosed within a border.
<li>And the last item</li>
</ol>


无序列表:

  • one
  • two
    Here are a couple lines...
    ...of preformatted text
    
  • and the numbering
  • starts over
<ul>
<li>one</li>
<li>two<pre>

Here are a couple lines...
...of preformatted text

</pre></li>
<li>and the numbering</li>
<li>starts over</li>
</ul>

问:签名?

尽管我按照指示使用了四个波浪号,我的用户名却未链接到用户页面。

我每次都按照指示输入四个波浪线,但本该显示我名字的地方却没有链接到我的用户页面。之后SineBot会提示我未完成签名(尽管你明明能看到我的名字),然后它便自动替我完成了签名。 Bsrboy 22:58, 25 March 2009 (UTC) <<< see? >>>

A: 请确保在为留言签名时,您的用户名已关联至个人用户页。您可通过验证签名是否显示为指向个人用户页的链接来进行确认。 例如,Network-charles。 再次确认您是否正确使用了四个波浪号(~),有时输入或格式错误会导致签名无法正确注册。

Q:我能在Wiki页面上创建框架结构吗?

我想在我的维基页面中嵌入一个图表。

A: 你可以通过内联CSS样式的HTML ‎<div>元素来实现这一点。 设置‎<div>的高度和宽度,并通过overflow属性启用滚动功能。

使用表格

Q: Is it possible to create transparent borders and rules for a table?

A: Yes, it's possible. However, it's challenging because there isn't a specific cellborder command for table styles. You can adjust the border and rule attributes, but browsers may not always interpret them as desired.

I think the easiest way to write this is using wiki table notation with a different background for the table and for each row.

123 456 789
987 654 321
{|style="background:white"
|- style="background:lightgrey;"
| 123 || 456 ||789
|- style="background:lightgrey;"
| 987 || 654 || 321
|}

使用链接

See: Manual:Opening external links in a new window