wiki:syntax
差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录前一修订版后一修订版 | 前一修订版 | ||
wiki:syntax [2023/07/06 06:21] – [嵌入 HTML 和 PHP] ob | wiki:syntax [2023/08/04 14:46] (当前版本) – 已恢复为旧版 (2023/07/06 06:52) 弘毅 | ||
---|---|---|---|
行 441: | 行 441: | ||
- | ===== 嵌入 HTML ===== | + | ===== 嵌入 HTML和PHP |
通过使用 '' | 通过使用 '' | ||
行 492: | 行 492: | ||
===== RSS/ | ===== RSS/ | ||
- | [[DokuWiki]] 以集成来自外部XML源的数据。为了解析 XML 源,使用了[[http:// | + | [[DokuWiki]] 以集成来自外部XML源的数据。为了解析XML源,使用了[[http:// |
^ 参数 | ^ 参数 | ||
行 499: | 行 499: | ||
| author | | author | ||
| date | 显示项目日期 | | | date | 显示项目日期 | | ||
- | | description| 显示项目描述。如果HTML不可用,那么所有 HTML 标签都将被去除 | | + | | description| 显示项目描述。如果HTML不可用,那么所有HTML标签都将被去除 | |
- | | nosort | + | | nosort |
- | | //n//[dhm] | refresh period, where d=days, h=hours, | + | | //n//[dhm] | 刷新周期,其中 |
- | The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. | + | 刷新周期默认为 |
+ | 默认情况下,Feed 将按日期排序,最新项目排在最前面。 你可以使用'' | ||
- | By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the '' | + | **例子:** |
- | + | ||
- | **Example:** | + | |
{{rss> | {{rss> | ||
行 514: | 行 513: | ||
- | ===== 宏 ===== | + | ===== 控制宏 ===== |
部分宏可以影响 DokuWiki 在页面中的渲染。例如: | 部分宏可以影响 DokuWiki 在页面中的渲染。例如: | ||
- | ^ Macro ^ Description | + | ^ 宏 ^ 描述 |
| %%~~NOTOC~~%% | | %%~~NOTOC~~%% | ||
| %%~~NOCACHE~~%% | 默认 DokuWiki 会缓存所有的页面输出。但有时候你可能并不想要这个特性(例如使用了%%< | | %%~~NOCACHE~~%% | 默认 DokuWiki 会缓存所有的页面输出。但有时候你可能并不想要这个特性(例如使用了%%< |
wiki/syntax.1688624517.txt · 最后更改: 2023/07/06 06:21 由 ob