SharePoint Chinese Wiki

论坛 | 成员 | 关于 | 搜索    


页面编辑说明

修改时间: 2007-06-06 22:46 由 chiz - 编目为: Wiki帮助文档
在ScrewTurn Wiki中编辑Wiki页相当的简单。你可以插入WikiMarkup和标准的XHTML,或者使用Format Helper Toolbar。在任何情况下,你都可以通过简单快速的方法编排文字或者插入链接、图片和他其很多内容。


编辑

1 - WikiMarkup

WikiMarkup是一套独特的前缀和后缀,它允许编排文本和插入项目,像链接和图片。在这一节你将学习如何使用WikiMarkup

编辑

1.1 - 基本文本格式

  • '''粗体''' 显示 粗体
  • ''斜体'' 显示 斜体
  • __下划线__ 显示 下划线
  • --删除线-- 显示 删除线
  • 你可以使用任意组合,例如 --删除线 '' '''粗体''' 和 斜体''-- 显示 删除线 粗体 和 斜体

编辑

1.2 - 链接

链接使用 [] 来标示。
注意: 从1.0.10版开始,两个括号也可以用来表示链接,例如 [[链接]].
  • 想要插入一个链接到内部页只需写 [PageName], 这显示 PageName (如果链接的页不存在,链接将显示不同的颜色。)
  • 你可以给链接加一个标题: [PageName|This is a Link] 显示 This is a Link
  • 电子邮件链接将会自动被发现,例如 [mail@server.com] 显示
    显然你也可以加一个标题: [mail@server.com|Contact us] 变成
  • 外部链接会被一个特殊的图标标记: [http://www.screwturn.eu] 显示 http://www.screwturn.eu
  • 你可以链接一个内部文件或子目录: [blog/|Blog] 显示 [GPL.txt|GPL] 显示
  • 如果你给URL加一个 ^ 标签, 链接将会在一个新的浏览器窗口当中打开,例如 [^MyPage] 显示 MyPage

你可以使用 文件管理 接口上传文件。

编辑

1.2.1 - Notes

Links and Images share the same general syntax, but the number of fields changes.

编辑

1.2.2 - Categories

You can link a Category by using the following syntax:

[c:CategoryName]

For example, you can link the Help category or all the uncategorized Pages ([c:-|uncategorized Pages]).

编辑

1.2.3 - Page Attachments

You can attach a file to a Page using the following syntax:

[attachment:File.jpg]

Attachment are listed at the bottom of the Page. Please note that this function is still quite "raw", and the attached files are not real attachments, but just links to some uploaded files.

编辑

1.3 - Headings

You can create headings using a sequence of equal (=) signs:
  • ==Biggest Heading (H1)==
  • ===Big Heading (H2)===
  • ====Small Heading (H3)====
  • =====Smallest Heading (H4)=====
  • The first 3 Headings work as separators, the latter is only a small heading (use it sparingly)
  • H1 is not recommended because it's used for the Page Title and therefore may cause confusion

Note: headings must be placed at the beginning of lines.

编辑

1.3.1 - Horizontal Line

You can place a horizontal line using four hyphens ----.

编辑

1.4 - Images

Images use [ and ] as delimiters.
Note: since version 1.0.10, images also work with 2 brackets, for example [[image|Title|Url]].
There are several types of images:
  • [image|Title|Url|Big Url/Link Url (optional)] inserts an inline image, without borders nor legend
  • [imageleft|Title|Url|Big Url/Link Url (optional)] and [imageright|Title|Url|Big Url (optional)] insert images aligned respectively on the left and o the right, displaying borders and a description
  • [imageauto|Title|Url|Big Url/Link Url (optional)] inserts an image with automatic alignment, displaying borders and description
  • In all the cases, Big Url/Link Url is optional; when specified, it links the image with its big version or with any another document

You can upload images and files using the File Management interface.

编辑

1.4.1 - Notes

Links and Images share the same general syntax, but the number of fields changes.

编辑

1.5 - Lists

A list is made by a sequence of lines starting with one or more asterisks (*) and/or diesis (#). You can create nested list using more than one asterisk or diesis.

* Element 1
* Element 2


produces

  • Element 1
  • Element 2
# Element 1
# Element 2


produces

  1. Element 1
  2. Element 2
# Element 1
# Element 2
#* Element 2.1
#* Element 2.2
# Element 3


produces

  1. Element 1
  2. Element 2
    • Element 2.1
    • Element 2.2
  3. Element 3
# Element 1
# Element 2
#* Element 2.1
#*# Element 2.1.1
#*#* Element 2.1.1.1
# Element 3


produces

  1. Element 1
  2. Element 2
    • Element 2.1
      1. Element 2.1.1
        • Element 2.1.1.1
  3. Element 3

编辑

1.6 - Code and the NoWiki Tag

If you want to insert an inline piece of code, wrap it with {{ and }}; for example {{This is code}} produces This is code.
If you want to insert a block of code, for example a C# class, wrap it with {{{{ and }}}}, as in

using System;

namespace MyNamespace {
   public class HelloWorld {
      public static void Main(string[] args) {
         Console.WriteLine("Hello World");
      }
   }
}

If you want to exclude a block of text from the WikiMarkup formatting, wrap it with <nowiki> and </nowiki>, for example <nowiki>[MyPage]</nowiki> produces [MyPage].

编辑

1.6.1 - The @@ Tag

If you need to place some code that contains, for example, XML and even WikiMarkup and you want it to be displayed exactly as is, wrap with with two @:

@ @
<xml>
   '''Bold'''
   <bla z="b" />
</xml>
@ @

Removing the space between the @ signs, the result is:

<xml>
   '''Bold'''
   <bla z="b" />
</xml>

编辑

1.7 - Line Breaks

Two line breaks are treated as they are. A single line break is ignored. If you want to insert a single line break, you can use the standard XHTML tag <br /> or its WikiMarkup alias {BR} (letter casing is ignored). It's not recommended to abuse single line breaks because they tend to create confusion in the page.

编辑

1.8 - Special Tags

The ScrewTurn Wiki engine provides a few special markers that are replaced automatically with specific content. All these tags ignore the letter casing.
  • {wikititle} produces SharePoint Chinese Wiki (the title of the Wiki)
  • {up} produces GetFile.aspx?File= (the file upload path)
  • {top} produces 顶部 (link to the top of the current Page)
  • {toc} produces the Table of Contents of the Page, using Hx headers as titles
  • {themepath} produces Themes/Elegant/ (the current theme path)
  • {rsspage} produces RSS (the link to the current Page's RSS feed, available only in Pages)
  • {wikiversion} produces 2.0.19 (the version of the Wiki engine)
  • {mainurl} produces http://www.sharepointwiki.net/ (the Main URL of the Wiki)
  • {pagecount} produces 87 (the # of Pages in the Wiki)
  • {username} inserts the Username of the current user
  • {cloud} inserts a Categories Cloud
  • {searchbox} inserts a Search Box (only one Search Box can be used at a time)
  • {clear} to use when inserting images at the bottom of a Page

编辑

1.9 - Boxes

If you want to wrap some content inside a box, use triple brackets ((( and ))). For example, (((My box))) produces
My box

编辑

1.10 - Text Indentation

The text can be indented using one or more colons, at the beginning of a line.

: Single indentation
:: Double indentation

results in

Single indentation
Double indentation

编辑

1.11 - Tables

The WikiMarkup also supports tables. Since the tables offer many options, they are described in the dedicated section Tables.

编辑

1.12 - User Signature

Users can sign their edits using four tildes: ~~~~. The result is the following: Dario Solera, 2007-02-15 11:39

编辑

1.13 - Snippets and Page Transclusion

To use the special features called Snippets and Page Transclusion, please go to the dedicated pages:
编辑

1.14 - Page Redirection

You can redirect a user automatically to another Page when he visits a Page. You can just add the following code at the beginning of the Page:

>>> [PageName]

or

>>> PageName

When the user visits a Page containing a Redirection tag, the engine will display the destination Page. At the top of the destination Page Page, a message will be displayed, containing a link for visiting the origin Page without being redirected.

编辑

1.15 - XHTML Support and Escaping

ScrewTurn Wiki supports standard XHTML content. You can use any tag, except for <script> that might be disabled by the administrators.
XHTML comments are also supported: <!-- -->.

If you want to insert a block of HTML or XML displaying the tags, you can use the <esc></esc> tag. This tags escapes all the angular brackes making them visible.

<esc><strong>Your tag</strong></esc>

produces

<strong>Your tag</strong>

编辑

2 - Format Toolbar

In the editing page there is the toolbar reported in this picture:
图片

Format Toolbar

The list of the buttons is reported below.

  1. Bold: sets/unsets selected text as bold
  2. Italic: sets/unsets selected text as italic
  3. Underlined: sets/unsets selected text as underlined
  4. Striked: sets/unsets selected text as striked
  5. H1: sets/unsets selected text as Header Level 1 (unrecommended)
  6. H2: sets/unsets selected text as Header Level 2
  7. H3: sets/unsets selected text as Header Level 3
  8. H4: sets/unsets selected text as Header Level 4 (use sparingly)
  9. Subscript: sets/unsets selected text as subscript
  10. Superscript: sets/unsets selected text as superscript
  11. Page link: allows to insert a link to a Wiki Page using a menu
  12. File link: allows to insert a link to an uploaded file
  13. External: allows to insert a link to an external destination
  14. Image: allows to insert an image using a simple Image Browser
  15. Anchors: shows two items, the first allows to inserts anchors in the text, the second allows to insert links to anchors in the text
  16. Inline Code: sets/unsets selected text as code
  17. Block Code: sets/unsets selected text as a block of code
  18. Box: wraps/unwraps selected text with (((...)))
  19. Line Break: inserts a single line break in the text
  20. Insert Snippet: allows to insert a Snippet using a menu
  21. Special Tags: shows a list of available special tags which, once clicked, insert a specific special tag in the text
  22. NoWiki: wraps/unwraps selected text with <nowiwi>...</nowiwi> tags
  23. Comment: wraps/unwraps selected text with XHTML comment tags
  24. Escape: wraps/unwraps selected text with escape tags
Copyright ©2006-2007 SharePoint中文Wiki, All Rights reserved.京ICP备06059951号