MoinMoin Wiki 语法¶
Typeface¶
基本语法:
''italic'' 斜体
'''bold''' 加粗
`monospace` Single backticks for inline monospaced text.
{{{monospace}}} 文本块输出,可用于代码等
__underline__ 下划线
^super^script 上标
,,sub,,script 下标
~-smaller-~ 缩小
~+larger+~ 放大
--(stroke)-- 文字中间一个横线
Linking¶
连接:
- internal link
- WikiName
- internal free link
- [[free link]]
- internal link to sub page
- /SubPage or [[/sub page]]
- internal link to sister page
- ../SisterPage or [[../SisterPage|link text]]
- internal link with linktext
- [[SomePage|some Page]]
- internal link to a section
- [[SomePage#subsection|subsection of Some Page]]
- internal link with linktext & parameter
- [[SomePage|some Page|target="_blank"]]
- internal link using a graphic as button
- [[ SomePage | {{attachment:imagefile.png}} ]]
- internal link using graphic button, open new window
- [[SomePage|{{attachment:samplegraphic.png}}|target="_blank"]]
- link to attachment
- [[attachment:image.png]]
- link to attachment of another page
- [[attachment:SomePage/image.png]]
- interwiki link
- Otherwiki:somepage
- interwiki free link
- [[otherwiki:somepage]]
- external link
- http://example.net/
- external link with linktext
- [[http://example.net/|example site]]
- external link with linktext, open new window
- [[http://example.net/|example site|target="_blank"]]
- external link using a graphic as button
- [[http://example.net/|{{attachment:samplegraphic.png}}]]
- external link using graphic button, open new window
- [[http://example.net/|{{attachment:samplegraphic.png}}|target="_blank"]]
- border of internal link
- WikiName``s
- avoid an internal link
- !WikiName
- IBM / Lotus Notes links
- [[Notes://GunganCen/CA256992000B94BF/BC4B9A3C3F7C5458CA256A6C001A64F1/B0558F2B9DDB41C3CA25741900006827 | TA Branch Meeting]]
Embedding¶
Embedding/Transclusion is used if you want to include an external file within your wiki. Most commonly, this will be a graphic. But it can also be a text file or any other file that the wiki understands, including video. Additional options can be combined (for example, you can provide link for downloading and display the contents of that file on the page!).
- embed an attached graphics
- {{attachment:image.png}}
- embed an attached graphics and give alt text
- {{attachment:image.png|alt text}}
- embed an attached graphics and define alignment
- {{attachment:image.png|alt text|align="position"}}
- embed an attached graphics and resize it
- {{attachment:image.png|alt text|width=100 height=150}}
- embed an external graphics
- {{http://example.net/image.png}}
- embed an external graphics and give alt text
- {{http://example.net/image.png|alt text}}
- embed an external graphics and define alignment
- {{http://example.net/image.png|alt text|align="position"}}
- embed an external graphics and resize it
- {{http://example.net/image.png|alt text|width=100}}
- embed an attached video
- {{attachment:video.mpg}}
Headlines¶
标题:
= Heading =
== Subheading ==
=== Level 3 ===
==== Level 4 ====
===== Level 5 =====
Horizontal Rules¶
水平不同粗细的线:
--- (not a rule)
----
-----
------
-------
--------
---------
----------
-------------------------------------------- (not thicker than 10)
Lists¶
You can create different lists in a quite natural way. All you do is indent the line containing the list item with at least one space. To nest lists of different levels, you use different depths of indenting. All items on the same indent level belong to the same (sub-)list. That also means that you cannot change the style of a list after you started it.
A numbered list, mixed with bullets:
1. one
1. two
1. one
* bullet 1
* bullet 2
1. two
1. three
* bullet
1. one
Variations of numbered lists:
* Lowercase roman
i. one
i. two
* Uppercase roman (with start offset 42)
I.#42 forty-two
I. forty-three
* Lowercase alpha
a. one
a. two
* Uppercase alpha
A. one
A. two
highlight parser¶
{{{#!highlight python
class FooBar:
""" doc string """
}}}
bash, sh, ksh
bat
c
cpp, c++
cmake
css
fortran
http
java
js, javascript
json
make, makefile, mf, bsdmake
matlab
tcsh, csh
tex, latex
text
verilog, v
vhdl
xml
…