ArchWiki教程 (简体中文)

From ArchWiki

(Redirected from ArchWiki 使用教学)
Jump to: navigation, search


本篇是一个如何在Arch Linux Wiki上编辑Wiki文章的简短使用教学。更多的细节,请参见Help:Editing
如果你打算试试编辑这里解释的语法信息,请在 沙盘 里练习。
i18n
Deutsch
English
Français
简体中文
繁體中文
Image:Tango-preferences-desktop-locale.png This page (or parts of it) was marked to be translated.
If you speak the original and target languages of the page, feel free to finish the translation. After you have finished the translation, remove the {{translateme}} flag from the document.

Contents

[edit] 注册和登录

浏览页面是不需要创建一个账户或登录的。要创建一个账户(免费注册),只需点击一下在任何页面右上角的 "创建一个账户或登录" 链接。只需要登录一次便可以编辑所有wiki文章。

[edit] 编辑页面

和所有的 wiki 系统一样,你可以编辑所有非保护模式 下的页面,你可以立即看到你的修改。 只需点击在每页上方的 "edit(编辑)" 链接。

请在编辑窗口和保存及预览按键中的 "Summary" 方框中解释你所做的编辑,例如:"更正错别字" 或者 "添加关于 xyz 的信息"。

在保存页面前,请使用 预览 这个按钮来检查你正在编辑的页面的排版与格式。请记得在预览后点击save 来保存你的编辑页面。

如果你已经成功 登录 ,你可以使用 This is a minor edit 选项来标示你的编辑只是一个小变动minor (例如错别字,格式排列的改变),让其他人知道你并没有对页面的内容作任何大更动。

现在轮到你试着来练习一下如何编辑wiki页面了。使用网页浏览器,在新的页面打开 沙箱 (沙箱就是用來让你可以任意测试 wiki 语法),然后点击页面上方的 "edit" 这个链接。在编辑窗口內加入一些东西,然后点击 save 这个按钮。

[edit] 添加一个新页面

为了在一些项目分类中添加一个新的页面(亦即“我的新页面”添加到“某项目分类”)你需要:

  1. "Edit" 你的新标题的页面 "http://wiki.archlinux.org/index.php/My_New_Page"
  2. 在你的页面的首行添加[[Category:Some Category]]。

这就可以了。

[edit] 格式

大部分的文本格式都使用wiki markup来实现,所以你不必去学习HTML.

[edit] 粗体和斜体

粗体斜体 由一个词汇或短语加上多个单引号(')形成:

  • ''斜体'' 将表示成斜体。(每一边有两个单引号)
  • '''bold''' 将表示成粗体。(每一边三个单引号)
  • '''''粗斜体'''''将表示成粗斜体。(每一边有2+3=5个单引号)

[edit] 主标题与子标题

妥善使用主标题和子标题可以让你的文章的结构看起来更为完整与清楚。如果你的页面的内容可以整理出两个或者更多个比较大的主题,你可以在你的文章中插入一些主标题来分出段落和增加文章的可读性。

标题可以用下面的语法来表现:

  • =顶级标题= (1个等号)
  • ==子标题== (两个等号)
  • ===再往下一层=== (三个等号)
  • ====再往下一层==== (四个等号)
  • =====再往下一层===== (五个等号)

如果一个文章至少有三个标题,一个文章内容的列表(TOC)就会被自动生成。如果你不想这个TOC的功能,请在你的文章中添加__NOTOC__ .试着在沙盘中添加一些标题,同时观察下TOC的功能.

[edit] 缩排

要缩排文本,就在一行的开头加上冒号(:)。冒号(:)放的越多,就缩得越进。一个新行(按下EnterReturn)表示一个缩进段落的结束。

To indent text, place a colon (:) at the beginning of a line. The more colons you put, the further indented the text will be. A newline (pressing Enter or Return) marks the end of the indented paragraph.

例如:

This is aligned all the way to the left.
:This is indented slightly.
::This is indented more.

会有如下显示:

This is aligned all the way to the left.

This is indented slightly.
This is indented more.

[edit]

To insert a bullet, use an asterisk (*). Similar to indentation, more asterisks in front of a paragraph means more indentation.

一个简单例子:

*First list item
*Second list item
**Sub-list item under second
*Isn't this fun?

将会如下显示:

  • First list item
  • Second list item
    • Sub-list item under second
  • Isn't this fun?

[edit] Numbered lists

You can also create numbered lists. For this, use the number sign or hash symbol (#). Using more #s will affect the level of indenting.

Example:

#First item 
#Second item 
##Sub-item under second item 
#Third item 

Shows up as:

  1. First item
  2. Second item
    1. Sub-item under second item
  3. Third item

[edit] 代码

要在wiki中加入代码, 就在每一行开头加一个空格.

例如
空格test
空格test
就会

test
 test
test

test

test

[edit] 链接

wiki中的链接对于浏览者浏览你的页面很有帮助.

[edit] Internal links

You can extensively cross-reference wiki pages using internal links. You can add links to existing titles, and also to titles you think ought to exist in future.

To make a link to another page on the same wiki, just put the title in double square brackets.

For example, if you want to make a link to, say, the Wikia page, it would be:

[[Wikia]]

If you want to use words other than the article title as the text of the link, you can add an alternative name by adding after the pipe "|" divider (SHIFT + BACKSLASH on English-layout and other keyboards).

For example, if you wanted to make a link to ArchLinux, but wanted it to say "home page" you would write it as such:

View the [[ArchLinux|home page]]...

It would appear as:

View the home page...

When you want to use the plural of an article title (or add any other suffix) for your link, you can add the extra letters directly outside the double square brackets.

For example, you would write:

Add questions to the Arch Linux for [[quiz]]zes.

It would appear as:

Add questions to the Arch Linux for quizzes.

[edit] Interlanguage links

The ArchWiki allows you to write articles in multiple languages. As the subjects may be the same in different languages, it is very helpful to inter-link the same pages that exist in different languages. If an article exists in more than one language, the ArchWiki has a "i18n-box" that may be added to the article that contains the links to the same article but in other languages.

To add this i18n-box to an article, type at the beginning of the article:

{{i18n_links_start}}
{{i18n_entry|Deutsch|German Title of the Article}}
{{i18n_entry|Français|French Title of the Article}}
{{i18n_links_end}}

If the non-english Title is the same as the english one, then the non-english title is

Title (Language)

例如:

Gnome
Gnome (Deutsch)
Gnome (Français)

[edit] Interwiki links

To link to another wiki document, you can use its title followed by a colon and the article name, instead of using the full URL.

For example, the creatures wiki home page is at Creatures:Main Page, which can be typed as

[[Creatures:Main Page]]
rather than as http://wiki.archlinux.org/index.php/Main_Page

[edit] External links

If you want to link to a site outside of Wikicities, just type the full URL for the page you want to link to.

http://www.google.com/

It is often more useful to make the link display something other than the URL, so use one square bracket at each end, with the alternative title after the address separated by a space (not a pipe). So if you want the link to appear as Google search engine, just type:

[http://www.google.com/ Google search engine]

[edit] Redirects

To redirect automatically from one page to another, type #REDIRECT and then put in brackets the name of the page to be redirected to.

For example, you could redirect from "Cats" to "Cat". That way, anyone typing either version in the search box will automatically go to "Cat".

[edit] Wiki variables and templates

Use {{SITENAME}} to see the current wiki document. For instance, {{SITENAME}} on this site prints out as ArchWiki.

You can also create your own templates. After you create the page Template:XXX, using the command {{XXX}} will include that content in your current page. So, if you have something that needs to be included on many other pages, you might want to use a template.

[edit] 讨论页面

讨论(Discussion) 或是 "talk - 留言" 的页面主要是让你可以跟其他 Arch Wiki 的使用者有个对话的空间.

To discuss any page, go to that page and then click the "discussion" tab at the top of the page. Add a new comment at the end, or below the comment you are replying to.

为你的留言签个名,签名的方式可以用 ~~~~ 来加入你的帐号名称和时间标记.

Use indenting to format your discussion. Standard practice is to indent your reply one more level deep than the person you are replying to.

Experiment by editing the 沙盘的留言页面.

[edit] 使用者留言页面

每个人都有个 user talk page (使用者留言页面),在这个页面上,每个人都可以写下公开的留言。如果某人签了个留言給你,你将会看到一个短讯,写着 "You have new messages",并包含一个链接直接连到你的使用者留言页面。

你可以选择在留言者自己的使用者留言页面上留言,或是在你自己的使用者留言页面上,跟贴在对方的留言之后。如果你选择留言在对方的留言页面上,对方将会在收到相同的通知短讯。

[edit] Special Categories

There exist special Categories to help working with the ArchWiki.

[edit] Article is not yet finished to be usable

The Category Stub contains all articles that were marked with the
{{stub}}
flag. The reasons an article may be stub are:
  • it is too short
  • it does not explain enough
  • it contains unfinished parts

[edit] Article not yet translated

The Category "Translation Requested" contains all articles that were marked with the
{{translateme}}
flag. The reasons an article may be in this special category are:
  • parts of it does not yet exist in the language it should be
  • the contents are not at all translated but simply copied from english/other language
  • the original language article was updated and some parts are missing in the translated page

[edit] Article contains potentially wrong or confusing informations

The Category "Accuracy Disputes" contains all articles that were marked with the
{{accuracy}}
flag. The reasons an article may be in this special category are:
  • users observed potentially wrong or confusing informations and are discussing in the Talk: on the related page how to fix it
  • page contains depreached / outdated information that needs to be updated

This flag is explained in detail in the Accuracy_dispute article.

Personal tools