View source for Wiki-格式化

//其他语言 ((../Deutsch/Formatierung Deutsch)), ((/Doc/English/Formatting English)), ((../Español/ReglasFormato Español)), ((../Français/MiseEnForme Français)), ((../Polski/FormatowanieTekstu Polski)), ((../Русский/WackoСинтаксис Русский)).//

参见:**((Actions组件 Actions组件))**

((Markup Wacko text formatting)) 与其他 wiki 略有不同,因此您应该阅读以下示例。 

您可以在 **((/Sandbox Sandbox))** 中试验 ((Markup Wiki Markup))。 
被成对的双引号所包围的文本没有格式化,在显示时保持不变。

#||
||//代码// |//效果// ||
||#
----
===目录==

#|| || ##""{{toc numerate=1}}""## 

((/Doc/简体中文/Actions组件/TableOfContents 详细描述...)) | {{toc numerate=1}} 

|| ||
__NB:__ 如果您将它与 'include' 插件一起使用,但不希望从包含文件中提取的标题列在生成的目录中,请使用 'notoc' 选项,如下所示: 

##""{{include page="Formatting/Headlines" notoc=1}}""##
|| ||#

===基本文本格式===
{{include page="!/Basics" notoc=1}}

===对齐方式===
对齐是在这样一个复杂的结构的帮助下进行的: 

#||
|| default |%%(wacko wrapper="text" wrapper_align="left") 左对齐%%||
|| ##""%%(wacko wrapper=text wrapper_align=center) center%%""## |%%(wacko wrapper=text wrapper_align=center) 居中%%||
|| ##""%%(wacko wrapper=text wrapper_align=right) right%%""## |%%(wacko wrapper=text wrapper_align=right) 右对齐%%||
|| ##""%%(wacko wrapper=text wrapper_align=justify) justify%%""## |%%(wacko wrapper=text wrapper_align=justify) 两端对齐%%||
||#

##wrapper_align## can be ##center##, ##right## or ##justify##.

===链接===
{{include page="!/链接"}}

===包含已上传文件===
#|| ||
##""file:/mammut_mascot.jpg""##
仅检查全局文件 
##""file:mammut_mascot.jpg""##
检查本地文件,该文件仅适用于本页的读者 
##""file:/Subpage/archive.zip""##
本地文件的绝对路径,本地文件必须包含在另一个页面中 
++文件必须已经上传。++ 

((/Doc/简体中文/Actions组件/文件上传 详细描述...))
|
file:/mammut_mascot.jpg
file:/Subpage/archive.zip
|| ||#
====媒体参数 ====
通过附加问号##?## 并通过与号##&## 添加附加参数,将参数添加到文件语法中。 
例如: ##~file:/lotus_flower.jpg?right&caption&400##
file:/lotus_flower.jpg?right&caption&400
  * 链接
    * ##direct## - 到文件
    * ##nolink## - 仅显示图片
    * ##linkonly## - 仅显示链接
    * ##meta## - 到 filemeta 处理程序 (默认) 
  * 对齐方式
    * ##right## - 右对齐
    * ##left## - 左对齐
    * ##center## - 居中
  * 尺寸
    * ##400x300## - 宽 × 高
    * ##0x700## - 高
    * ##600## - 宽
  * 其他
    * ##caption## - 显示标题
    * ##clear## - 清除浮动

===标题===
{{include page="!/Headlines"  notoc=1}}

===带编号或不带编号的列表===

使用制表符或双空格缩进列表,并使用 ##*##、##1.##、##A##.、##a##. 或 ##i##。 指定所需的列表类型。 
#|| ||
%%
Lists:
  first line
    indented line
----
  * bullet list
  * bullet list-2
----
  1. numbered list
  1. numbered list-2
  2.#8 numbered list, with transition
----
  A. using upper case characters
  A. using upper case characters-2
----
  a. using lower case characters
  a. using lower case characters-2
----
  i. using Roman numbers
  i. using Roman numbers-2
----
  1. list
    1. nested list
      * and even more nested list
    1. nested list 2
  2. list 2
%%
|
Lists:
  first line
    indented line
----
  * bullet list
  * bullet list-2
----
  1. numbered list
  1. numbered list-2
  2.#8 numbered list, with transition
----
  A. using upper case characters
  A. using upper case characters-2
----
  a. using lower case characters
  a. using lower case characters-2
----
  i. using Roman numbers
  i. using Roman numbers-2
----
  1. list
    1. nested list
      * and even more nested list
    1. nested list 2
  2. list 2
|| ||#

===引用和定义 ===
#||
||
##""<[ Citation of text 
(块引用) ]>""##
|
<[ Citation of text 
(块引用) ]>
|| ||
##""(?Term Some definition?)""##
|
(?Term Some definition?)
|| ||
##""(?Term containing spaces == Some other definition?)""##
|
(?Term containing spaces == Some other definition?)
|| ||#

===脚注===
#||
||
##""Text, then footnote[[*]] and second one[[**]]""##
|
Text, then footnote[[*]] and second one[[**]]
|| ||
##""Text, then numeric footnote[[*1]] and second one[[*2]]""##
|
Text, then numeric footnote[[*1]] and second one[[*2]]
|| ||
##""[[#*]] Text for first footnote""##
##""[[#**]] Text for second footnote""##
##""[[#1]] Text for numeric footnote""##
##""[[#2]] Text for second numeric footnote""##
|
[[#*]] Text for first footnote
[[#**]] Text for second footnote
[[#1]] Text for numeric footnote
[[#2]] Text for second numeric footnote
|| ||#

#||
|| **auto-generated footnotes**
## ""[[^ text of footnote here]]""## | generates the footnotes at the end of the page, see ((!/脚注 example)) ||
||#

===层次显示===
要将一段文字标记为回复或评论,你可以使用以下语法。

#||
|| %%嗨!
> 是的,就是这样。
>> 你确定吗?
> 当然,是的!
>> 真的吗?
>>> 现在怎么办?
%% | 
嗨!
> 是的,就是这样。
>> 你确定吗?
> 当然,是的!
>> 真的吗?
>>> 现在怎么办? ||
||#


===表格===

**带边框表格**
##""#|
*|标题 1|标题  2|标题  3|*
||单元格11|单元格12|单元格13||
||单元格21|单元格22||
|#""##

#|
*|标题 1|标题  2|标题  3|*
||单元格11|单元格12|单元格13||
||单元格21|单元格22||
|#

**无边框表格,100%宽度**
##""#||
||单元格11|单元格12|单元格13||
||单元格21|单元格22||
||#""##

#||
||单元格11|单元格12|单元格13||
||单元格21|单元格22||
||#

**注意:** 如果可用,可以使用内联 HTML 创建复杂表。
要在单元格中包含管道##|## 作为内容,请用双引号将管道括起来:##~""|""## 

===杂项 ===

**水平线 (separator):**
##""----""##
----

**强制换行:**
##""test---new line""##
test---new line

**强制空行:**
##~---"" ~""---##

**文本输出“原样”——忽略标记**
文本应该用一对双引号括起来,例如 ##~""测试---换行~""##. 您可以查看 ((Formatting/source source of this page)) 以获取大量示例。
此外,对于任何形式的标记的筛选,都可以使用## ~ ##(波浪号)。 

===内联 HTML ===
**HTML 输出“原样”**
!!这只有在站点管理员允许的情况下才有效。!! 

#||
||
##""<# <input type="text"> #>""## | <# <input type="text"> #>
||
||#

如果您看到 ##""<input type="text">""## 而不是输入字段,则站点管理员不会打开此功能(配置参数:##allow_rawhtml##)。
**NB**:这是非常危险的选择,避免 XSS! 

===特殊字符 ===
wiki 中内置的自动校对器会自动将保存的文本调整为格式规范,从而使作者免于进行过度详细的编辑。 以下是它所做的更改: 
{{include page="!/SpecialCharacter"  notoc=1}}

===巨集===

宏是一些小快捷方式,它可以使用相关变量(例如您的姓名和维基名称、写作日期等)自动更新您正在编写的文档。基本上,它们只是小文本快捷方式。 

**要自动插入您的姓名,请使用:**
##""::::""##
((user:RomanIvanov RomanIvanov))

**自动显示名称和日期:**
##""::@::""##
((user:RomanIvanov RomanIvanov)) /20.06.2003 18:13/

**日期:**
##""::+::""##
20.06.2003 18:13

===语法突出显示===
WackoWiki 很容易用文本扩展 ((((/Doc/English/Formatters formatters))。它们使用语法 ##""%%(name) text%%""## 调用。
Wacko 包中包含几个格式化程序:
{{include page="!/Formatter"}}

===Wrappers around formatters==
{{include page="!/Wrapper"}}