dokuwiki:syntax

DokuWiki 語法大全

項目 語法 說明 來源(內建或 plugin)
文字
tooltip
  1. 單字:
    {!word:tooltip_text}}
  2. 多字:
    <ttip:style:marked_text> tooltip_text </ttip>
  • style 是設定在自訂 CSS 中,class 必須為 .tooltip_xxx
tooltip
  1. <abbr>縮寫/基底文字 [原文或註解內容]</abbr>
  2. <abbr>原文或註解內容 (縮寫/基底文字)</abbr>
abbr
<anno:1>縮寫/基底文字</anno> <@anno:1>原文或註解內容</@anno>
annotate
<autott><content>縮寫/基底文字</content><tip>原文或註解內容</tip><title>(非必要)註解標題</title></autott>
autotooltip
ruby
{{ruby|主文字|ruby 文字}}
主文字數無限 ruby
anchor anchor 處:
{{anchor:該_anchor_的名稱(:網頁文字,非必要)}}
之後,就可以用 #該_anchor_的名稱 加在頁面網址後面來連到該 anchor 囉;另外,DokuWiki 內部頁面連結或是頁內連結也可以用哦,傳送門 anchor
表格
儲存格背景顏色
| @<色碼>:<內容> |
  • <色碼> 可為 #abcdefHTML 顏色名稱45)
  • 只能用在一般儲存格,不能用在表頭儲存格上!
cellbg
圖片
圖片標題(caption)
[{{<圖片位址、大小等>|<caption>}}]
真的頗簡單,就只在一般圖片語法 {{…}} 外加 [] 而已 imagebox
引用
本站其他頁面
{{page>xx:yy&...}}

FIXME

  • 注意第一個引入 flag 的符號是 &
  • 頁面名稱可以用 ... 省略資料夾層級
  • 可用 # 引入單一段落
include
本站其他頁面/圖片(popup)
{{popup>%IMAGE/PAGE%?[%SIZE%]&[keepOpen]|[%TEXT/IMAGE%]}}
Option Description
%IMAGE/PAGE% an image or a page as you know it from DokuWiki
%SIZE% (optional) Width and height (optional) in px. Example: 200×300
keepOpen (optional) All links in a page opened via a popup will also open in a popup.
%TEXT/IMAGE% (optional) Here you can set the name or an additional image. This will be displayed to the user as link to click on for the popup
popupviewer
外部網頁
{{url>http(s)://... width,height noscroll noborder alignment|alternate-text}}

(待翻譯 FIXME

  • width and height are optional. When only one value is given it is assumed to be the height. Otherwise the first value is width and the second value is height. You can give the values in px, em, pt or %. When no unit is given px is is NOT assumed (you have to give the value). Defaults values are: width - 98%, height - 400px.
  • noscroll will disable the scrollbars of the iframe
  • noborder will disable the frame border, note that your CSS might still add borders or may disable them without using this setting
  • Optionally an alignment can be given as left or right to have the iframe floating to the left or right. Should be used with a width.
  • An alternate text is optional. If not specified an empty string will be used.
iframe
Feed
feed plugin
{{blogfeed>blog|Blog Entries}}
{{blogfeed>blog?20|Blog Entries}}

{{commentsfeed>mynamespace|Individual Comments}}
{{commentsfeed>mynamespace?25|Individual Comments}}

{{threadsfeed>namespace|Recent discussion threads}}
{{threadsfeed>namespace?15|Recent discussion threads}}

{{editorfeed>.?user|Pages edited by 'user'}}

{{topicfeed>*?cloud|Tagged «Cloud»}}

{{tasksfeed>projects|Open tasks}}
{{tasksfeed>projects?overdue|Late tasks}}
feed

ken, 2021/05/15 11:04

請問您的討論區是用哪個套件?感謝回覆

輸入您的意見. 允許使用維基語法:
E M K᠎ J U
 
  • 上一次變更: 2019/04/03 10:19
  • ghsrobert