wiki:syntax
差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
wiki:syntax [2022/10/02 11:39] – 外部编辑 127.0.0.1 | wiki:syntax [2023/12/26 21:30] (当前版本) – admin | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== | + | ====== |
- | [[doku> | + | ---- |
- | ===== Basic Text Formatting ===== | + | <WRAP center round box 60%> |
+ | **开源大世界**支持一些简单的标记语言,以尽可能使文档的可读性更高。本页包含了您在编辑页面时可能用到所有语法的说明。如果需要查看本页源码, 只需要点击页面顶部或者底部的// | ||
+ | </ | ||
- | DokuWiki supports **bold**, //italic//, __underlined__ and '' | ||
- | DokuWiki supports **bold**, //italic//, __underlined__ and '' | ||
- | Of course you can **__//'' | ||
- | You can use < | + | ===== 1 基本文字格式 ===== |
- | You can use < | + | ---- |
- | You can mark something as < | + | DokuWiki支持**粗体**,// |
- | You can mark something as <del>deleted</del> as well. | + | <code> |
+ | DokuWiki支持**粗体**,// | ||
+ | 当然,您可以**__//'' | ||
+ | </code> | ||
- | **Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line. | + | 您也可以使用< |
- | This is some text with some linebreaks\\ Note that the | + | < |
- | two backslashes are only recognized at the end of a line\\ | + | 您也可以使用< |
- | or followed by\\ a whitespace \\this happens without it. | + | </ |
- | This is some text with some linebreaks\\ Note that the | + | 同时也可以使用< |
- | two backslashes are only recognized at the end of a line\\ | + | |
- | or followed by\\ a whitespace \\this happens without it. | + | |
- | You should use forced newlines only if really needed. | + | < |
+ | 同时也可以使用< | ||
+ | </ | ||
- | ===== Links ===== | + | **段落**是由空行所建立的。如果您想**强制换行**而不建立段落,您可以使用两个连续的反斜杠接空格或回车作为标记。请看样例: |
- | DokuWiki supports multiple ways of creating links. | + | 这是一些有着换行标记的文字。\\ 请注意 |
+ | 双反斜杠只在回车符之前\\ | ||
+ | 或者接在\\ 一个空格之前的时候才有效。\\而这样就并不起作用。 | ||
- | ==== External ==== | + | < |
+ | 这是一些有着换行标记的文字。\\ 请注意 | ||
+ | 双反斜杠只在回车符之前\\ | ||
+ | 或者接在\\ 一个空格之前的时候才有效。\\而这样就并不起作用。 | ||
+ | </ | ||
- | External links are recognized automagically: | + | 请仅在必须的时候使用强制换行标记。 |
- | DokuWiki supports multiple ways of creating links. External links are recognized | ||
- | automagically: | ||
- | link text as well: [[http:// | ||
- | addresses like this one: < | ||
- | ==== Internal | + | ===== 2 链接 ===== |
- | Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]]. | + | ---- |
- | Internal links are created by using square brackets. You can either just give | + | DokuWiki支持以多种形式创建链接。 |
- | a [[pagename]] or use an additional [[pagename|link text]]. | + | |
- | [[doku> | + | ==== 外部链接 ==== |
- | You can use [[some: | + | ---- |
- | You can use [[some:namespaces]] by using a colon in the pagename. | + | 外部链接会被自动地识别:http:// |
- | For details about namespaces see [[doku> | + | < |
+ | DokuWiki支持以多种形式创建链接。外部链接会被自动地识别: | ||
+ | http:// | ||
+ | ——您也可以设置链接文本:[[http:// | ||
+ | 类似这样的电子邮件地址:< | ||
+ | </ | ||
- | Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[syntax# | ||
- | This links to [[syntax# | + | ==== 内部链接 ==== |
- | Notes: | + | ---- |
- | * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. | + | 内部链接(维基词条)可以用方括号创建。您可以只给出[[页面名]],或附加[[页面名|链接文本]]。 |
- | * DokuWiki does not use [[wp> | + | |
- | * When a section' | + | |
- | ==== Interwiki ==== | + | < |
+ | 内部链接可以用方括号创建。您可以只给出 | ||
+ | [[页面名]],或附加[[页面名|链接文本]]。 | ||
+ | </ | ||
- | DokuWiki supports | + | [[页面名]]会被自动地转换为小写字母,允许使用中文字符。 |
- | DokuWiki supports | + | 您可以通过在页面名中添加冒号的方式来使用[[wiki:命名空间]]。 |
- | For example this is a link to Wikipedia' | + | |
- | ==== Windows Shares ==== | + | < |
+ | 您可以通过在页面名中添加冒号的方式来使用[[wiki: | ||
+ | </ | ||
- | Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate [[wp> | + | 如果您需要更多有关“命名空间(namespaces)”的详细信息,请参见[[命名空间]]。 |
- | Windows Shares like [[\\server\share|this]] are recognized, too. | + | 链接到一个特定章节也是可能的。只需要在# |
- | Notes: | + | < |
- | + | 这是一个指向[[syntax#内部链接|本节]]的链接。 | |
- | * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone" | + | |
- | * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http:// | + | |
- | <?php | + | |
- | /** | + | |
- | * Customization of the english language file | + | |
- | * Copy only the strings that needs to be modified | + | |
- | */ | + | |
- | $lang[' | + | |
</ | </ | ||
- | ==== Image Links ==== | + | 注意: |
+ | * 指向[[syntax|已存在页面]]的和[[nonexisting|不存在页面]]的链接,其外观是不同的。 | ||
+ | * 默认情况下,DokuWiki不使用[[wp> | ||
+ | * 当一节的标题改变时,它的书签也会改变。因此,请不要过于依赖章节链接。 | ||
- | You can also use an image to link to another internal or external page by combining the syntax for links and [[# | ||
- | [[http:// | + | ==== Wiki间链接 ==== |
- | [[http:// | + | ---- |
- | Please note: The image formatting is the only formatting syntax accepted in link names. | + | DokuWiki支持[[doku> |
- | The whole [[# | + | < |
+ | DokuWiki支持[[doku> | ||
+ | 例如,这是一个指向Wikipedia上Wiki条目的链接:[[wp>Wiki]] | ||
+ | </ | ||
- | ===== Footnotes ===== | + | ==== 图像链接 |
- | You can add footnotes ((This is a footnote)) by using double parentheses. | + | ---- |
- | You can add footnotes ((This is a footnote)) by using double parentheses. | + | 您也可以通过结合链接和[[# |
- | ===== Sectioning ===== | + | < |
+ | [[https:// | ||
+ | </ | ||
- | You can use up to five different levels of headlines to structure your content. If you have more than three headlines, a table of contents is generated automatically -- this can be disabled by including the string ''< | + | [[https:// |
- | ==== Headline Level 3 ==== | + | 请注意:图像的格式化语法是链接文本唯一接受的格式化语法。 |
- | === Headline Level 4 === | + | |
- | == Headline Level 5 == | + | |
- | ==== Headline Level 3 ==== | + | 所有的图像和链接语法都是支持的(包括图像大小调整、内部和外部的图像与链接以及wiki内链接)。 |
- | === Headline Level 4 === | + | |
- | == Headline Level 5 == | + | |
- | By using four or more dashes, you can make a horizontal line: | + | ===== 3 脚注 ===== |
---- | ---- | ||
- | ===== Media Files ===== | + | 您可以使用两个连续小括号来添加脚注((这是一个脚注))。 |
- | You can include external and internal [[doku>images|images, | + | < |
+ | 您可以使用两个连续小括号来添加脚注((这是一个脚注))。 | ||
+ | </code> | ||
- | Real size: {{wiki: | + | ===== 4 分节 ===== |
- | Resize to given width: | + | ---- |
- | Resize to given width and height((when the aspect ratio of the given width and height doesn't match that of the image, it will be cropped to the new ratio before resizing)): {{wiki: | + | 您可以使用多达5层的标题来组织您的内容。如果您使用了三个以上的标题,将自动生成目录——这可以通过在页面加入''< |
- | Resized external image: {{https:// | + | ==== H3标题 ==== |
+ | === H4标题 === | ||
+ | == H5标题 == | ||
- | Real size: {{wiki: | + | < |
- | | + | ==== H3标题 ==== |
- | | + | === H4标题 === |
- | | + | == H5标题 == |
+ | </code> | ||
+ | 您可以通过4个以上连续的“-”号来创建一条水平分割线: | ||
- | By using left or right whitespaces you can choose the alignment. | + | ---- |
- | {{ wiki: | + | < |
+ | ---- | ||
+ | </ | ||
- | {{wiki: | + | ===== 5 图像和其它文件 ===== |
- | {{ wiki: | + | ---- |
- | {{ wiki: | + | 您可以用两个大括号在页面中加入外部或内部的[[doku> |
- | {{wiki: | + | |
- | {{ wiki: | + | |
- | Of course, you can add a title (displayed as a tooltip by most browsers), too. | + | 原始大小: |
- | {{ wiki:dokuwiki-128.png |This is the caption}} | + | 指定宽度: |
- | | + | 指定宽度和高度((当指定的长宽比与图像的不一致,在调整图像大小前,其将先被裁剪到新的比例)): |
- | For linking an image to another page see [[#Image Links]] above. | + | 重新指定宽度和高度的外部图像: |
- | ==== Supported Media Formats ==== | + | < |
+ | 原始大小: | ||
+ | 指定宽度: | ||
+ | 指定宽度和高度((当指定的长宽比与图像的不一致,在调整图像大小前,其将先被裁剪到新的比例)): | ||
+ | 重新指定宽度和高度的外部图像: | ||
+ | </ | ||
- | DokuWiki can embed the following media formats directly. | + | 通过使用左空格或右空格,您可以选择对齐方式。 |
- | | Image | '' | + | {{ wiki:logo.png}} |
- | | Video | '' | + | |
- | | Audio | '' | + | |
- | | Flash | '' | + | |
- | If you specify a filename that is not a supported media format, then it will be displayed as a link instead. | + | {{wiki:logo.png }} |
- | By adding ''? | + | {{ wiki: |
- | | + | < |
+ | {{ wiki:logo.png}} | ||
+ | {{wiki: | ||
+ | {{ wiki: | ||
+ | </ | ||
- | {{wiki: | + | 当然,您也可以指定一个标题(多数浏览器显示为提示文本((鼠标悬停可以看到)))。 |
- | ==== Fallback Formats ==== | + | {{ wiki: |
- | Unfortunately not all browsers understand all video and audio formats. To mitigate the problem, you can upload your file in different formats for maximum browser compatibility. | + | < |
+ | {{ wiki:logo.png |这是标题}} | ||
+ | </ | ||
- | For example consider this embedded mp4 video: | + | 如果您指定的文件名(无论是外部的还是内部的)不是一个图像('' |
- | {{video.mp4|A funny video}} | + | 对于将图像链接到其他页面,参见上面的[[# |
- | When you upload a '' | ||
- | Additionally DokuWiki supports a " | + | ===== 6 列表 ===== |
- | ===== Lists ===== | + | ---- |
- | Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a '' | + | DokuWiki支持带编号或不带编号的列表。要创建列表,在文字前加入两个空格,然后使用'' |
- | * This is a list | + | * 这是一个列表 |
- | * The second item | + | * 第二项 |
- | * You may have different levels | + | * 您可以有不同的层次 |
- | * Another item | + | * 另一项 |
- | - The same list but ordered | + | - 带编号的列表 |
- | - Another item | + | - 另一项 |
- | - Just use indention for deeper levels | + | - 用缩进表示更深的层 |
- | - That's it | + | - 就这样 |
< | < | ||
- | | + | * 这是一个列表 |
- | * The second item | + | * 第二项 |
- | * You may have different levels | + | * 您可以有不同的层次 |
- | * Another item | + | * 另一项 |
- | | + | - 带编号的列表 |
- | - Another item | + | - 另一项 |
- | - Just use indention for deeper levels | + | - 用缩进表示更深的层 |
- | - That's it | + | - 就这样 |
</ | </ | ||
- | Also take a look at the [[doku> | ||
- | ===== Text Conversions | + | ===== 7 文本转换 |
- | DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML. | + | ---- |
- | The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, | + | DokuWiki可以将预定义的字符或者字符串转换成图像、其他文本或HTML。 |
- | ==== Text to Image Conversions ==== | + | 文本转换为图像主要用于表情符号。文本到HTML的转换用于排版的字符替换,但也可以配置为使用其他HTML。 |
- | DokuWiki | + | ==== 文本到图像的转换 ==== |
+ | |||
+ | ---- | ||
+ | |||
+ | DokuWiki会将一些常用的 | ||
* 8-) %% 8-) %% | * 8-) %% 8-) %% | ||
行 247: | 行 267: | ||
* ;-) %% ;-) %% | * ;-) %% ;-) %% | ||
* ^_^ %% ^_^ %% | * ^_^ %% ^_^ %% | ||
- | * m( %% m( %% | ||
* :?: %% :?: %% | * :?: %% :?: %% | ||
* :!: %% :!: %% | * :!: %% :!: %% | ||
行 254: | 行 273: | ||
* DELETEME %% DELETEME %% | * DELETEME %% DELETEME %% | ||
- | ==== Text to HTML Conversions ==== | ||
- | Typography: | + | ==== 文本到HTML的转换 ==== |
+ | |||
+ | ---- | ||
+ | |||
+ | 印刷:[[DokuWiki]]可以将特定字符转换为印刷时所用的样式。这是可识别的字符示例。 | ||
-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) | ||
行 266: | 行 288: | ||
</ | </ | ||
- | The same can be done to produce any kind of HTML, it just needs to be added to the [[doku> | + | 同样的做法可以产生任何类型的HTML,只需要添加到[[doku> |
- | There are three exceptions which do not come from that pattern file: multiplication entity | + | 这里有三个例外,它们并非来自模式文件:乘号(640x480)、'单引号'和"双引号"。它们可以通过[[doku> |
- | ===== Quoting | + | ===== 8 引用 |
- | Some times you want to mark some text to show it's a reply or comment. You can use the following syntax: | + | ---- |
- | < | + | 有时您想将某些文本标记为回复或者评论。您可以使用下列语法: |
- | I think we should do it | + | |
- | > No we shouldn' | + | <code> |
- | + | 我想我们应该为开源贡献力量。 | |
- | >> | + | > 是吗? |
- | + | >> 对的,这样生活才能充满力量! | |
- | > Really? | + | > 真的? |
- | + | >> | |
- | >> | + | >>> |
- | + | ||
- | >>> | + | |
</ | </ | ||
- | I think we should do it | + | 我想我们应该为开源贡献力量。 |
+ | > 是吗? | ||
+ | >> 对的,这样生活才能充满力量! | ||
+ | > 真的? | ||
+ | >> 是的! | ||
+ | >>> | ||
- | > No we shouldn' | ||
- | >> Well, I say we should | + | ===== 9 表格 ===== |
- | > Really? | + | ---- |
- | >> Yes! | + | DokuWiki支持用简单的语法创建表格。 |
- | >>> | + | ^ 标题1 |
+ | | (1,1) | (1,2) | (1,3) | | ||
+ | | (2,1) | 一些跨列合并(注意两条竖线) | ||
+ | | (3,1) | (3,2) | (3,3) | | ||
- | ===== Tables ===== | + | 表格的每一行都以分隔符 '' |
- | DokuWiki supports a simple syntax to create tables. | + | < |
+ | ^ 标题1 | ||
+ | | (1,1) | (1,2) | (1,3) | | ||
+ | | (2,1) | 一些跨列合并(注意两条竖线) | ||
+ | | (3,1) | (3,2) | (3,3) | | ||
+ | </ | ||
- | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | + | 要水平合并单元格,只需要将后一个单元格设置为空即可,如上面演示的一样。请确保每一行有相同数量的单元格分隔符! |
- | | Row 1 Col 1 | Row 1 Col 2 | Row 1 Col 3 | | + | |
- | | Row 2 Col 1 | some colspan (note the double pipe) || | + | |
- | | Row 3 Col 1 | Row 3 Col 2 | Row 3 Col 3 | | + | |
- | Table rows have to start and end with a '' | + | 竖直的标题列也是可以实现的: |
- | | + | | |
- | | Row 1 Col 1 | + | ^ 标题3 |
- | | Row 2 Col 1 | + | ^ 标题4 |
- | | Row 3 Col 1 | + | ^ 标题5 |
- | To connect cells horizontally, | + | 可以看到,单元格前面的分隔符决定了单元格的格式。 |
- | Vertical tableheaders are possible, too. | + | < |
+ | | ^ 标题1 | ||
+ | ^ 标题3 | ||
+ | ^ 标题4 | ||
+ | ^ 标题5 | ||
+ | </ | ||
- | | ^ Heading 1 ^ Heading 2 ^ | + | 跨行合并单元格(垂直合并单元格)也是可以实现的,通过在下面的相邻单元格输入'':::'' |
- | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | + | |
- | ^ Heading 4 | no colspan this time | | | + | |
- | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | + | |
- | As you can see, it's the cell separator before a cell which decides about the formatting: | + | ^ 标题1 |
+ | |(1,1)| 对该单元垂直合并 | ||
+ | |(2, | ||
+ | |(3,1)| ::: |(2,3)| | ||
- | | ^ Heading 1 ^ Heading 2 ^ | + | 除跨行合并语法外,单元格中不能包含其他任何内容。 |
- | ^ Heading 3 | Row 1 Col 2 | Row 1 Col 3 | | + | |
- | ^ Heading 4 | no colspan this time | | | + | |
- | ^ Heading 5 | Row 2 Col 2 | Row 2 Col 3 | | + | |
- | You can have rowspans | + | < |
+ | ^ 标题1 ^ 标题 2 ^ 标题 3 ^ | ||
+ | |(1,1)| 对该单元垂直合并 | ||
+ | |(2, | ||
+ | |(3,1)| ::: |(2,3)| | ||
+ | </ | ||
- | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | + | 您可以对齐表格的文字。只需在文本的相反方向添加至少两个空格:如果需要右对齐,在左边添加两个空格;反之,则在右边添加。在两边均添加空格可以实现居中对齐。 |
- | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | | + | |
- | | Row 2 Col 1 | ::: | Row 2 Col 3 | | + | |
- | | Row 3 Col 1 | ::: | Row 2 Col 3 | | + | |
- | Apart from the rowspan syntax those cells should not contain anything else. | + | ^ 有对齐的表格 |
+ | | | ||
+ | | 左对齐 | ||
+ | | xxxxxxxxxxxx | ||
- | ^ Heading 1 ^ Heading 2 ^ Heading 3 ^ | + | 下面是源文件中的样子: |
- | | Row 1 Col 1 | this cell spans vertically | Row 1 Col 3 | | + | |
- | | Row 2 Col 1 | ::: | Row 2 Col 3 | | + | |
- | | Row 3 Col 1 | ::: | Row 2 Col 3 | | + | |
- | You can align the table contents, too. Just add at least two whitespaces at the opposite end of your text: Add two spaces on the left to align right, two spaces on the right to align left and two spaces at least at both ends for centered text. | + | < |
- | + | ^ 有对齐的表格 | |
- | ^ Table with alignment | + | | |
- | | right| | + | |左对齐 |
- | |left | + | |
| xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | ||
+ | </ | ||
- | This is how it looks in the source: | + | 注意:不支持垂直对齐。 |
- | ^ Table with alignment | + | ===== 10 无格式化 ===== |
- | | | + | |
- | |left | | + | |
- | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | + | |
- | Note: Vertical alignment is not supported. | + | ---- |
- | ===== No Formatting ===== | ||
- | If you need to display text exactly like it is typed (without any formatting), | + | 如果您需要文本完全显示为它键入的样子(没有任何格式化),用'' |
< | < | ||
- | This is some text which contains addresses like this: http:// | + | 这是一些包含这样的地址:http:// |
</ | </ | ||
- | The same is true for %%//__this__ text// with a smiley ;-)%%. | + | 对于带有表情符号的%%;-)的//__这段__文本//%%也一样。 |
- | | + | < |
- | This is some text which contains addresses like this: http:// | + | < |
- | </ | + | 这是一些包含这样的地址:http:// |
- | The same is true for %%//__this__ text// with a smiley ;-)%%. | + | </ |
+ | 对于带有表情符号的%%;-)的//__这段__文本//%%也一样。 | ||
+ | </ | ||
- | ===== Code Blocks | + | ===== 11 代码块 |
+ | |||
+ | ---- | ||
- | You can include code blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags '' | + | 您可以将代码块包含到文档中,可以通过缩进两个空格或者使用标签'' |
- | | + | |
< | < | ||
- | This is preformatted code all spaces are preserved: like <-this | + | 这是预格式化的代码,所有空格都被保留:像 |
</ | </ | ||
< | < | ||
- | This is pretty much the same, but you could use it to show that you quoted a file. | + | 这非常相似,但您可以用它来表明您引用了一个文件。 |
</ | </ | ||
- | Those blocks were created by this source: | + | 这些区块由下面的源码创建: |
- | | + | |
< | < | ||
- | | + | |
</ | </ | ||
< | < | ||
- | | + | |
</ | </ | ||
+ | | ||
+ | ==== 语法高亮 ==== | ||
- | ==== Syntax Highlighting ==== | + | ---- |
- | [[wiki: | + | [[wiki: |
<code java> | <code java> | ||
行 418: | 行 452: | ||
</ | </ | ||
- | The following language strings are currently recognized: | + | 当前可以识别下列语言字符串://4cs, abap, actionscript-french, actionscript, |
- | There are additional [[doku> | + | ==== 可下载的代码块 ==== |
+ | |||
+ | ---- | ||
- | ==== Downloadable Code Blocks ==== | + | 当您使用上面的'' |
- | When you use the '' | ||
< | < | ||
行 436: | 行 471: | ||
</ | </ | ||
- | If you don't want any highlighting but want a downloadable file, specify a dash ('' | + | 如果您不想要任何高亮,但想要一个可下载的文件,指定破折号('' |
- | ===== Embedding | + | ===== 12 嵌入HTML ===== |
- | You can embed raw HTML or PHP code into your documents by using the '' | + | ---- |
+ | |||
+ | 您可以嵌入原始HTML代码到文件中,通过使用'' | ||
- | HTML example: | + | HTML例子: |
< | < | ||
< | < | ||
- | This is some <span style=" | + | 这是一些<span style=" |
</ | </ | ||
+ | |||
< | < | ||
- | <p style=" | + | <p style=" |
</ | </ | ||
</ | </ | ||
+ | |||
+ | 上面是源码,下面是实际效果: | ||
< | < | ||
- | This is some <span style=" | + | 这是一些<span style=" |
</ | </ | ||
+ | |||
< | < | ||
- | <p style=" | + | <p style=" |
</ | </ | ||
- | PHP example: | + | ---- |
+ | |||
+ | 嵌入B站视频的方法: | ||
< | < | ||
- | <php> | + | <HTML> |
- | echo 'The PHP version: '; | + | <div style=" |
- | echo phpversion(); | + | <iframe style="position: absolute; width: 100%; height: 100%; left: 0; top: 0;" src="// |
- | echo ' (generated inline HTML)'; | + | </div> |
- | </php> | + | </HTML> |
- | <PHP> | + | |
- | echo '< | + | |
- | echo '< | + | |
- | echo '</tr></table>'; | + | |
- | </PHP> | + | |
</ | </ | ||
+ | 你要嵌入想要的视频只需更改上面代码中的**aid=xxxxxxxxx& | ||
- | < | + | 点击b站的视频分享按钮,就可看见该视频的id号: |
- | echo 'The PHP version: '; | + | |
- | echo phpversion(); | + | |
- | echo ' (inline HTML)'; | + | |
- | </ | + | |
- | < | + | |
- | echo '< | + | |
- | echo '< | + | |
- | echo '</ | + | |
- | </ | + | |
- | **Please Note**: HTML and PHP embedding is disabled by default in the configuration. If disabled, the code is displayed instead of executed. | + | 图1:{{ : |
- | ===== RSS/ATOM Feed Aggregation ===== | + | 图2:{{ : |
- | [[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http://simplepie.org/|SimplePie]] is used. All formats understood by SimplePie can be used in DokuWiki as well. You can influence the rendering by multiple additional space separated parameters: | + | |
- | ^ Parameter | ||
- | | any number | will be used as maximum number items to show, defaults to 8 | | ||
- | | reverse | ||
- | | author | ||
- | | date | show item dates | | ||
- | | description| show the item description. If [[doku> | ||
- | | nosort | ||
- | | //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). | | ||
- | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki: | + | 上面是源码,下面是实际效果: |
- | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | ||
- | **Example:** | + | < |
+ | <div style=" | ||
+ | <iframe style=" | ||
+ | </ | ||
+ | </ | ||
- | {{rss> | ||
- | {{rss> | + | ===== 13 LaTeX公式 ===== |
+ | ---- | ||
- | ===== Control Macros ===== | + | LaTeX公式支持。 |
- | Some syntax influences how DokuWiki renders | + | < |
+ | $a > b,b > c \Rightarrow a > c $ | ||
+ | </ | ||
+ | |||
+ | 上面是源码,下面是实际效果: | ||
+ | |||
+ | $a > b,b > c \Rightarrow a > c $ | ||
+ | |||
+ | ===== 14 控制宏 ===== | ||
+ | |||
+ | ---- | ||
- | ^ Macro ^ Description | | + | 一些语法会影响DokuWiki对页面的解释,而自身不输出任何内容。可用的控制宏如下: |
- | | %%~~NOTOC~~%% | + | |
- | | %%~~NOCACHE~~%% | DokuWiki | + | |
- | ===== Syntax Plugins ===== | + | ^ 宏 ^ 描述| |
+ | | %%~~NOTOC~~%% | ||
+ | | %%~~NOCACHE~~%% | DokuWiki默认会缓存所有的输出。有时并不希望这样(例如,当使用了上面的%%< | ||
- | DokuWiki' | ||
- | ~~INFO: | ||
wiki/syntax.1664681943.txt.gz · 最后更改: 2022/10/02 11:39 由 127.0.0.1