目录
Dokuwiki 的模版
Dokuwiki 模版简介
DokuWiki 支持 Template (模版、皮肤)。可以到 DokuWiki Templates 查找并下载模版。
常用的模版
下面列出了几个比较活跃的模版:
- 较通用的模版是 Arctic、Battlehorse 适用范围比较宽泛
- 对于个人站点,推荐使用 Arctic、Masa、Battlehorse 等
- 对于 BLOG 个人站点,推荐使用 r7thblog1、lmcstyle 等
- 对于封闭性的 WIKI 站点,推荐使用 lmcstyle、mmClean 等
- 对于 WIKI 文档站点,推荐使用类似 MediaWiki 的 Monobook 或 Simple
模版安装的一般方法
- 下载压缩文件
- 解压缩并上传至 <dokuwiki>/lib/tpl/ 目录
- 根据各个模版的使用说明进行配置
下面的模版可以使用 Wiki管理界面中的 配置管理器 进行配置,如:
- Arctic
- Battlehorse
- Minima
- Monobook
若更换模板后没有生效,请按住 Ctrl+Alt 的同时按页面刷新按钮。
模板的安装配置示例
安装和设置 Arctic 模板
下载安装
- 首先到 http://www.chimeric.de/projects/dokuwiki/template/arctic 下载适用于 Dokuwiki-2008-05-05 所需的软件包
- 解压缩并上传至 <dokuwiki>/lib/tpl/ 目录
配置
进入 Dokuwiki 管理界面中的 配置管理器 进行配置
1、选择使用 Arctic 模板并保存设置
2、配置 Arctic 模板并保存设置
| 选项 | 取值 | 说明 |
|---|---|---|
| Sidebar setup | left/right/both/none | 选择 Sidebar 类型 |
| Pagename to use for sidebars | 默认为 sidebar | 指定 sidebar 的文件名 |
| Show trace at the top of the page | Yes | 是否在页面顶部显示“面包屑导航” |
| Actionlink style | buttons/links | 选择动作链接的类型 |
| Namespace for group sidebars | 默认为 group | 当进入 group 名字空间后显示 Group Sidebar |
| Namespace for user sidebars | 默认为 user | 当进入 user 名字空间后显示 User Sidebar |
| Left sidebar order (comma separated) | 用逗号分割的 Sidebar 类型列表 | 设置各种 Sidebar 的显示顺序 |
| Content of the left sidebar | 选择在 Left sidebar 可用的 Sidebar 类型 | 设置在 Left sidebar 可用的 Sidebar 类型 |
| Right sidebar order (comma separated) | 用逗号分割的 Sidebar 类型列表 | 设置各种 Sidebar 的显示顺序 |
| Content of the right sidebar | 选择在 Right sidebar 可用的 Sidebar 类型 | 设置在 Right sidebar 可用的 Sidebar 类型 |
| Position of the search field (only applies if both sidebars are used) | left/right | 当同时使用 Left sidebar 和 Right sidebar 时指定 搜索条 的显示位置 |
安装配置结束将显示类似如下的界面。
- 您可以到 arctic other styles 下载其他颜色的 style.ini 文件,下载并上传覆盖原来的 style.ini 文件即可
- 您也可以直接修改 style.ini 文件,例如要改变内容的显示宽度,
可以将如下行: __wiki_width__ = "84%" 改为: __wiki_width__ = "94%"
安装和设置 Battlehorse 模板
下载安装
- 首先到 Battlehorse 的主页 下载最新的软件包:
- 解压缩并上传至 <dokuwiki>/lib/tpl/ 目录
配置
进入 Dokuwiki 管理界面中的 配置管理器 进行配置
1、选择使用 Battlehorse 模板
2、配置 Battlehorse 模板
| 选项 | 取值 | 说明 |
|---|---|---|
| sidebar position | left/right | 选择 Sidebar 显示位置 |
| sidebar page name | 默认为 sidebar | 设置 Sidebar 页面名称 |
| enable action palette | Yes/No | 设置是否使用活拨的 action bar |
| default status for user actions | Yes/No | 设置 user actions 的默认显示状态 |
| default status for page actions | Yes/No | 设置 page actions 的默认显示状态 |
| default status for wiki actions | Yes/No | 设置 wiki actions 的默认显示状态 |
| default status for submit actions | Yes/No | 设置 submit actions 的默认显示状态 |
| template language | en/it/zh | 选择模版语言 |
可以对模版进行汉化,方法是:
- 进入 <dokuwiki>/lib/tpl/battlehorse/lang 目录
- 拷贝 en 目录为 zh 目录
- 编辑汉化 zh 目录下的
settings.php文件
安装配置结束将显示类似如下的界面。
若你想更换模版颜色,可以进入 <dokuwiki>/lib/tpl/battlehorse/ 目录,复制 style_blue.ini 或 style_plain.ini 为 style.ini;也可以直接修改 style.ini 文件。
安装和设置 Monobook 模板
下载安装
- 首先到 Monobook 的主页 下载最新的软件包
- 解压缩并上传至 <dokuwiki>/lib/tpl/ 目录
- 使用插件管理器安装 Display Wiki Page for DokuWiki
配置
进入 Dokuwiki 管理界面中的 配置管理器 进行配置
1、选择使用 Monobook 模板
2、配置 Battlehorse 模板
| 选项 | 说明 |
|---|---|
| Use discussion tabs? | 是否使用讨论标签页 |
| If yes, root namespace for discussions: | 指定讨论存储的名字空间 |
| Use site notice? | 是否使用嵌入的 notice 页面 |
| If yes, site notice location: | 指定 notice 页面位置 |
| Use navigation? | 是否使用嵌入的导航页面(sidebar) |
| If yes, navigation location: | 指定导航页面位置 |
| Use copyright? | 是否使用嵌入的版权页 |
| If yes, copyright location: | 指定版权页面位置 |
| Use search? | 是否使用搜索工具条 |
| Use toolbox? | 是否是用 toolbox |
| If yes, use default toolbox? | 是否使用默认的 toolbox |
| If not default, toolbox location: | 指定非默认的 toolbox 页面位置 |
| Breadcrumb location (if enabled): | 选择“面包屑导航”的位置(上/下) |
| 'You are here' location (if enabled): | 选择“层次导航”的位置(上/下) |
| Author name in “Cite this Article”: | 指定作者名 |
安装配置结束将显示类似如下的界面。
















