Help:Editing FAQ/zh: Difference between revisions
Created page with "更多指导可参见 w:Wikipedia:Tutorial Introduction to Wikipedia Editing。" |
No edit summary |
||
| (41 intermediate revisions by 3 users not shown) | |||
| Line 10: | Line 10: | ||
<span id="Q:_How_can_I_edit_a_page_that_already_exists?"></span> |
<span id="Q:_How_can_I_edit_a_page_that_already_exists?"></span> |
||
=== 我该如何编辑一篇已有的页面? === |
=== 问:我该如何编辑一篇已有的页面? === |
||
要编辑 Wiki 页面,可点击页面顶部的“编辑”标签来编辑整页,或点击某一章节旁的“编辑”链接仅编辑该章节。 |
答:要编辑 Wiki 页面,可点击页面顶部的“编辑”标签来编辑整页,或点击某一章节旁的“编辑”链接仅编辑该章节。 |
||
更多指导可参见 [[w:Wikipedia:Tutorial Introduction to Wikipedia Editing]]。 |
更多指导可参见 [[w:Wikipedia:Tutorial Introduction to Wikipedia Editing]]。 |
||
<span id="Q:_How_can_I_sign_the_content_I_edit?"></span> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
=== 我怎样在编辑的内容中签名? === |
|||
===Q: How can I sign the content I edit?=== |
|||
使用三个波浪号 <code><nowiki>~~~</nowiki></code> 可插入指向你用户页的链接;使用四个波浪号 <code><nowiki>~~~~</nowiki></code> 可插入链接和时间戳;使用五个波浪号 <code><nowiki>~~~~~</nowiki></code> 则只插入时间和日期。 |
|||
</div> |
|||
<span lang="en" dir="ltr" class="mw-content-ltr">A: Use three tildes (<code><nowiki>~~~</nowiki></code>) for a link to your user page, four (<code><nowiki>~~~~</nowiki></code>) for the link and save time, and five (<code><nowiki>~~~~~</nowiki></code>) for just the time and date.</span> |
|||
<span id="Q:_Is_it_possible_to_link_to_a_specific_section_header_if_there_are_multiple_sections_with_the_same_name?_If_so,_how?"></span> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
=== 如果页面上有多个同名章节标题,我能否链接到特定的某一个?如果可以,怎么做? === |
|||
===Q: Is it possible to link to a specific section header if there are multiple sections with the same name? If so, how?=== |
|||
可以。每个章节标题(无论层级深浅)都会根据它在页面中出现的次数自动编号。 |
|||
</div> |
|||
| ⚫ | |||
<span lang="en" dir="ltr" class="mw-content-ltr">A: Yes, each section header (in any size or depth) is numbered based on how many times its name appears on the page.</span> |
|||
通常 <code><nowiki>[[Foo]]</nowiki></code> 会自动链接到第一个标题(即 “Foo 1”),因此数字 <code>1</code> 可省略。 |
|||
| ⚫ | |||
若希望隐藏编号,可使用带管道的链接形式:<code><nowiki>[[Foo 2|Foo]]</nowiki></code>。 |
|||
<span lang="en" dir="ltr" class="mw-content-ltr">The number <code>1</code> is usually unnecessary, as linking to the first header automatically occurs with <code><nowiki>[[Foo]]</nowiki></code>.</span> |
|||
<span lang="en" dir="ltr" class="mw-content-ltr">To hide the number, use a piped link like <code><nowiki>[[Foo 2|Foo]]</nowiki></code>.</span> |
|||
如果你不确定某个标题在页面中出现了多少次,有两种方法可以查明: |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
If you're unsure how many times a header appears on a page, there are two ways to find out. |
|||
</div> |
|||
# 查看目录(Table of Contents) |
|||
# <span lang="en" dir="ltr" class="mw-content-ltr">Refer to the table of contents.</span> |
|||
#: 在网页中点击目录中的目标标题,页面会跳转到对应部分, 此时浏览器地址栏的 [[w:Uniform Resource Locator|URL]] 末尾会显示该标题的 ID。 例如标题为 “<code>Foo</code>” 且为第 3 次出现时,URL 可能是: |
|||
#: <span lang="en" dir="ltr" class="mw-content-ltr">To link to a specific header in a webpage with a table of contents, you can click on the header you want, and the page will jump to it.</span> <span lang="en" dir="ltr" class="mw-content-ltr">The [[w:Uniform Resource Locator|URL]] will display the ID of that header at the end.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For instance, if the header name is <code>Foo</code> and it's the third instance, the URL might look like this:</span> |
|||
#:: <code><nowiki>http://meta.wikimedia.org/wiki/Example_article#Foo_3</nowiki></code> |
#:: <code><nowiki>http://meta.wikimedia.org/wiki/Example_article#Foo_3</nowiki></code> |
||
#: |
#: 此时你可以使用 <nowiki>[[#Foo 3]]</nowiki> 来创建链接。 |
||
#查看源代码(Inspect Source) |
|||
#<span lang="en" dir="ltr" class="mw-content-ltr">Inspect the source.</span> |
|||
#: 查看页面源代码,找到目标章节并注意其 ID 标记. 例如,如果章节标题命名为 <code>Foo</code>,并且是第二次出现,它的标签将是: |
|||
#: <span lang="en" dir="ltr" class="mw-content-ltr">When inspecting the source code, locate the desired section and note its ID tags, which display a numerical value.</span> <span lang="en" dir="ltr" class="mw-content-ltr">For instance, if the section header is named <code>Foo</code> and it's the second occurrence, its tags would be:</span> |
|||
#:: <code><nowiki><p><a name="Foo_2" id="Foo_2"></a></p></nowiki></code> |
#:: <code><nowiki><p><a name="Foo_2" id="Foo_2"></a></p></nowiki></code> |
||
#:: <code><nowiki><h3>Foo</h3></nowiki></code> |
#:: <code><nowiki><h3>Foo</h3></nowiki></code> |
||
#: |
#: 这表示该标题可通过 <nowiki>[[#Foo 2]]</nowiki> 进行链接。 |
||
需要注意的是,这些编号可能会随着页面的编辑而变化。如需避免此问题,可参考这个说明: |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
{{ll|Help:Section#Linking sections using an arbitrary id|#Linking sections using an arbitrary id}}(使用自定义 ID 链接章节) |
|||
</div> |
|||
<span id="Other"></span> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
== |
== 其他 == |
||
</div> |
|||
<span id="Q:_Can_preformatted_text_be_included_in_a_numbered_list?"></span> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
=== 编号列表中能否包含预格式化文本(preformatted text)? === |
|||
===Q: Can preformatted text be included in a numbered list?=== |
|||
</div> |
|||
可以。方法之一是直接在表格单元格中'''使用 HTML 列表元素'''(List Elements): |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
A: '''Using HTML List Elements:''' One approach involves using HTML list elements directly within the table cell: |
|||
</div> |
|||
'''有序列表:''' |
|||
'''<span lang="en" dir="ltr" class="mw-content-ltr">Ordered list:</span>''' |
|||
<table border="1" cellpadding="2" cellspacing="0"> |
<table border="1" cellpadding="2" cellspacing="0"> |
||
| Line 89: | Line 80: | ||
'''无序列表:''' |
|||
'''<span lang="en" dir="ltr" class="mw-content-ltr">Unordered list:</span>''' |
|||
<table border="1" cellpadding="2" cellspacing="0"> |
<table border="1" cellpadding="2" cellspacing="0"> |
||
| Line 123: | Line 114: | ||
</table> |
</table> |
||
<span id="Q:_Signing?"></span> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
=== |
===问:签名?=== |
||
</div> |
|||
尽管我按照指示使用了四个波浪号,我的用户名却未链接到用户页面。 |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
Even though I use the four tildes as instructed, my username isn't linked to my user page. |
|||
</div> |
|||
我每次都按照指示输入四个波浪线,但本该显示我名字的地方却没有链接到我的用户页面。之后SineBot会提示我未完成签名(尽管你明明能看到我的名字),然后它便自动替我完成了签名。 |
|||
<span lang="en" dir="ltr" class="mw-content-ltr">I type the four tildes as it says every time, but where my name is there isn't a link to my user page and after I do it the SineBot says I haven't signed it (even though you can see my name there) and then it signs it for me.</span> |
|||
Bsrboy 22:58, 25 March 2009 (UTC) <<< see? >>> |
Bsrboy 22:58, 25 March 2009 (UTC) <<< see? >>> |
||
<!-- A new answer by me --> |
<!-- A new answer by me --> |
||
A: 请确保在为留言签名时,您的用户名已关联至个人用户页。您可通过验证签名是否显示为指向个人用户页的链接来进行确认。 |
|||
<span lang="en" dir="ltr" class="mw-content-ltr">A: Ensure that your username is linked to your user page when signing comments you can do this by confirming that your signature appears as a link to your user page.</span> |
|||
例如,[[User:Network-charles|Network-charles]]。 |
|||
再次确认您是否正确使用了四个波浪号(<code>~</code>),有时输入或格式错误会导致签名无法正确注册。 |
|||
<span lang="en" dir="ltr" class="mw-content-ltr">Also double-check that you are using four tildes (<code>~</code>) correctly, sometimes, errors in typing or formatting can prevent the signature from registering properly.</span> |
|||
<span id="Q:_Can_I_create_a_frame_structure_on_a_Wiki_page?"></span> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
===Q:我能在Wiki页面上创建框架结构吗?=== |
|||
===Q: Can I create a frame structure on a Wiki page?=== |
|||
</div> |
|||
我想在我的维基页面中嵌入一个图表。 |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
I want to embed a chart into my Wiki page. |
|||
</div> |
|||
A: 你可以通过内联CSS样式的HTML {{tag|div|open}}元素来实现这一点。 |
|||
<span lang="en" dir="ltr" class="mw-content-ltr">A: You can achieve this using HTML {{tag|div|open}} elements with inline CSS styles.</span> |
|||
设置{{tag|div|open}}的高度和宽度,并通过overflow属性启用滚动功能。 |
|||
<span lang="en" dir="ltr" class="mw-content-ltr">Set the {{tag|div|open}} height and width, and enable scrolling with the overflow property.</span> |
|||
<span id="Using_Tables"></span> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
== |
==使用表格== |
||
</div> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
<div lang="en" dir="ltr" class="mw-content-ltr"> |
||
| Line 183: | Line 167: | ||
</table> |
</table> |
||
<span id="Using_Links"></span> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
|||
== |
== 使用链接 == |
||
</div> |
|||
<div lang="en" dir="ltr" class="mw-content-ltr"> |
<div lang="en" dir="ltr" class="mw-content-ltr"> |
||
Latest revision as of 21:33, 7 January 2026
| 注意:当您编辑本页面时,即同意以CC0协议授权您的贡献。您可以在公有领域帮助页面找到更多信息。 |
本页是对 Help:编辑页面 的补充说明。
以下内容汇集了与编辑相关的“帮助:”页面中的常见问答。 如果你在其他地方找到有价值的信息,也欢迎将其补充到这里。
编辑页面
问:我该如何编辑一篇已有的页面?
答:要编辑 Wiki 页面,可点击页面顶部的“编辑”标签来编辑整页,或点击某一章节旁的“编辑”链接仅编辑该章节。 更多指导可参见 w:Wikipedia:Tutorial Introduction to Wikipedia Editing。
我怎样在编辑的内容中签名?
使用三个波浪号 ~~~ 可插入指向你用户页的链接;使用四个波浪号 ~~~~ 可插入链接和时间戳;使用五个波浪号 ~~~~~ 则只插入时间和日期。
如果页面上有多个同名章节标题,我能否链接到特定的某一个?如果可以,怎么做?
可以。每个章节标题(无论层级深浅)都会根据它在页面中出现的次数自动编号。
例如,如果页面中有三个名为 “Foo” 的标题,它们的链接分别是:[[#Foo 1]], [[#Foo 2]], [[#Foo 3]]。
通常 [[Foo]] 会自动链接到第一个标题(即 “Foo 1”),因此数字 1 可省略。
若希望隐藏编号,可使用带管道的链接形式:[[Foo 2|Foo]]。
如果你不确定某个标题在页面中出现了多少次,有两种方法可以查明:
- 查看目录(Table of Contents)
- 在网页中点击目录中的目标标题,页面会跳转到对应部分, 此时浏览器地址栏的 URL 末尾会显示该标题的 ID。 例如标题为 “
Foo” 且为第 3 次出现时,URL 可能是:http://meta.wikimedia.org/wiki/Example_article#Foo_3
- 此时你可以使用 [[#Foo 3]] 来创建链接。
- 在网页中点击目录中的目标标题,页面会跳转到对应部分, 此时浏览器地址栏的 URL 末尾会显示该标题的 ID。 例如标题为 “
- 查看源代码(Inspect Source)
- 查看页面源代码,找到目标章节并注意其 ID 标记. 例如,如果章节标题命名为
Foo,并且是第二次出现,它的标签将是:<p><a name="Foo_2" id="Foo_2"></a></p><h3>Foo</h3>
- 这表示该标题可通过 [[#Foo 2]] 进行链接。
- 查看页面源代码,找到目标章节并注意其 ID 标记. 例如,如果章节标题命名为
需要注意的是,这些编号可能会随着页面的编辑而变化。如需避免此问题,可参考这个说明:
- Linking sections using an arbitrary id(使用自定义 ID 链接章节)
其他
编号列表中能否包含预格式化文本(preformatted text)?
可以。方法之一是直接在表格单元格中使用 HTML 列表元素(List Elements):
有序列表:
Here is a pre-formatted text. Enclosed within a border. |
<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> |
无序列表:
|
<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.
|
{|style="background:white"
|- style="background:lightgrey;"
| 123 || 456 ||789
|- style="background:lightgrey;"
| 987 || 654 || 321
|} |