Mikio
is a Bootstrap 4 style template for DokuWiki
2023-05-13
2022-10-04
2022-04-25
2022-03-05
breadcrumbHome
and breadcrumbShowLast
for the breadcrumbs as it only applies to the you are here bar. Breadcrumbs and You Are Here options may have reset2020-09-27
sidebarMobileDefaultCollapse
optionuseLESS
optionComment Syntax support converts custom control macros such as the Mikio macro ~~hero-image ...~~
into comments. If you plan to use this extension on your site, you will need to use the alternative macro format of -~hero-image ...~-
for Mikio to detect the information.
The configuration can be change with the Configuration Manager Plugin
iconTag
: icon tag to use to engage the icon engine. Default to icon
customTheme
: the mikio theme to use, located in the mikio/themes
directory
showNotifications
: where to show site notifications for admin staff
useLESS
: use the LESS compilier or direct CSS for the mikio stylesheet. Requires the ctype PHP extension installed
brandURLGuest
: change the brand URL for guests. Leave blank to use the default
brandURLUser
: change the brand URL for logged in users. Leave blank to use the default
navbarUseTitleIcon
: show the site logo in the navbar
navbarUseTitleText
: show the site title in the navbar
navbarUseTaglineText
: show the site tagline in the navbar. Requires the navbarUseTitleText
to be enabled
navbarCustomMenuText
: custom menu to use in the navbar. Menu items are in the format of url|title with each item seperated by a semicolon. Requires one of the navbarPos
to be set to custom
navbarDWMenuType
: how to show the DokuWiki menu items in the navbar. Can be either icons, text or both
navbarDWMenuCombine
: how to show the DokuWiki menu in the navbar. Can be either category dropdowns, single items or a combined dropdown. The combined menu title is pulled from the tools-menu
language value
navbarPosLeft
: what menu to show on the left of the navbar
navbarPosMiddle
: what menu to show in the middle of the navbar
navbarPosRight
: what menu to show on the right of the navbar
navbarShowSub
: show the sub navbar. This menu is pulled from the submenu
page in the current or parent namespaces. The menu is also shown on child pages. If no page is found, the sub navbar is automatically hidden
navbarItemShowCreate
: show the Create Page menu item
navbarItemShowShow
: show the Show Page menu item
navbarItemShowRevs
: show the Revisions menu item
navbarItemShowBacklink
: show the Backlinks menu item
navbarItemShowRecent
: show the Recent Changes menu item
navbarItemShowMedia
: show the Media Manager menu item
navbarItemShowIndex
: show the Sitemap menu item
navbarItemShowProfile
: show the Update Profile menu item
navbarItemShowAdmin
: show the Admin menu item
navbarItemShowLogin
: show the Login menu item
navbarItemShowLogout
: show the Logout menu item
searchButton
: show the search button as a icon or text
searchUseTypeahead
: use Typeahead page suggestions in search bar
heroTitle
: show the hero block on pages
heroImagePropagation
: search for hero images in parent namespaces if none is found in the current namespace
tagsConsolidate
: Consolidate tags found in the current page and display it in the hero, content header or sidebar
tagsShowHero
: Show the tags in the hero element of the page. Can be turned off if using the <tags>
element in the MikioPlugin
breadcrumbHideHome
: hide breadcrumbs in the root namespace
breadcrumbPosition
: where to display the breadcrumbs, either under the navbar, in the hero element or above the page content
breadcrumbPrefix
: enable changing the breadcrumb prefix
breadcrumbPrefixText
: text to set the breadcrumb prefix. Requires breadcrumbPrefix
to be enabled
breadcrumbSep
: enable changing the breadcrumb seperator
breadcrumbSepText
: text to set the breadcrumb seperator. Requires breadcrumbSep
to be enabled
youarehereHideHome
: hide you are here in the root namespace
youareherePosition
: where to display the you are here, either under the navbar, in the hero element or above the page content
youareherePrefix
: enable changing the you are here prefix
youareherePrefixText
: text to set the you are here prefix. Requires you are herePrefix
to be enabled
youarehereSep
: enable changing the you are here seperator
youarehereSepText
: text to set the you are here seperator. Requires you are hereSep
to be enabled
youarehereHome
: change the you are here home item to none, page title of root page, 'home' or an icon/image. The 'home' text is pulled from the home
language value
youarehereShowLast
: only show an amount of you are here from the last. Will also show the home item in the list if enabled. Set this to 0
to show all items
sidebarShowLeft
: show the left sidebar if content is found
sidebarLeftRow1
: content to show in the first row of the left sidebar
sidebarLeftRow2
: content to show in the second row of the left sidebar
sidebarLeftRow3
: content to show in the third row of the left sidebar
sidebarLeftRow4
: content to show in the forth row of the left sidebar
sidebarMobileDefaultCollapse
: collapse the sidebars by default when viewed on mobile
sidebarShowRight
: show the right sidebar if content is found
tocFull
: show the table of contents as a full height item
pageToolsFloating
: when and if to show the floating page tools
pageToolsFooter
pageToolsShowCreate
: show the Create Page item
pageToolsShowEdit
: show the Edit Page item
pageToolsShowRevs
: show the Revisions item
pageToolsShowBacklink
: show the Backlinks item
pageToolsShowTop
: show the Back to Top item
footerCustomMenuText
: custom menu to use in the footer. Menu items are in the format of url|title with each item seperated by a semicolon
footerSearch
: show the search bar in the footer
licenseType
: how to show the license in the footer
licenseImageOnly
: show the license in the footer as an image only. Requires licenseType
to at least be enabled
includePageUseACL
: respect ACL when including pages
includePagePropagate
: search parent namespaces when including pages
The right sidebar can be applied by creating a normal wiki page called "rightsidebar". Go to http://your-wiki.com/doku.php?id=rightsidebar, click "Create this page", edit the page, save, and you're done. That's it, your saved changes will appear in your right sidebar.
The following pages can be either html files in the root of the template or a page in the namespace. Namespace pages take priority.
topheader
: content to include above the navbarheader
: content include below the navbar but above the page contentcontentheader
: content to include above the page contentcontentfooter
: content to include below the page contentsidebarheader
: content to include above the left sidebar contentsidebarfooter
: content to include below the left sidebar contentrightsidebarheader
: content to include above the right sidebar contentrightsidebarfooter
: content to include below the right sidebar contentfooter
: content to include in the footerbottomfooter
: content to include below the footerThe following images can be used to replace content in the
template. Images can be in TEMPLATE_ROOT/images/
,
TEMPLATE_ROOT/themes/THEME/images/
, or in the namespace. Images can
be either png, jpg, gif or svg.
logo
: site logo in the navbarbreadcrumb-prefix
breadcrumb prefixbreadcrumb-sep
breadcrumb seperatorhero
hero image for hero elementtitle
: The hero title is sourced from the page title. The page title is removed from the page contentsubtitle
: Pages can set the subtitle by inserting ~~hero-subtitle TEXT~~
in the page contentimage
: The hero image is sourced from an image named hero in the current or parental namespace. Namespace searching can be confined by the includePagePropagate
setting. Pages can also override the image by inserting ~~hero-image URL~~
in the page content. DokuWiki and external URLs are supported. The height of the image area is 240px while the width is 33% of the window width. It is recommended to use an image of at least 480x240 (2:1)colors
: Colors can be overridden by including ~~hero-colors BACKGROUND_COLOR HERO_TITLE_COLOR HERO_SUBTITLE_COLOR BREADCRUMB_TEXT_COLOR BREADCRUMB_HOVER_COLOR~~
. You do not need to include all the color options. Use 'initial' to skip a color overrideNamespaces can also apply the above hero settings in child pages by including the above settings in a page named theme
.
Mikio now supports hiding elements using the ~~hide-parts (parts)~~
macro. Each element within the hide-parts macro is required to be seperated by spaces. Currently the following parts are supported:
topheader
: content above the navbarnavbar
: the main navigation barheader
: content below the navbar but above the page contenthero
: the page hero barcontentheader
: content above the page contentcontentfooter
: content below the page contentsidebarheader
: content above the left sidebar contentsidebarfooter
: content below the left sidebar contentrightsidebarheader
: content above the right sidebar contentrightsidebarfooter
: content below the right sidebar contentfooter
: content in the footerbottomfooter
: content below the footerTo hide the topheader, navbar and hero, you would use the macro ~~hide-parts topheader navbar hero~~
icon
to a user set value in the settings/icons/icons.php
Users can also add their own icon sets into the template. Supported icon sets can either be webfonts or indivial files (such as a SVG library). Instructions can be found in the /icons/icons.php
file.
By default, Dokuwiki inserts the text start.txt · Last modified: 2023/12/04 10:57...
on each page. This can now be customized in the config.
You can use the follow placeholders to insert page attributes:
{file}
- The file name of the page{date}
- The last modification date of the page{user}
- The user whom last edited the page{locked}
- The user whom has the page currently lockedYou can also use Dokuwiki language settings by wrapping the string ID with the percentage symbol. For example use to the language string set against lastmod
, use %lastmod%
. In a default install under english, %lastmod%
will be replaced with Last modified:
.
There is also support for simple optional text. By wrapping text in square brackets and at the beginning of the square bracket, inserting the placeholder name followed by an equals sign, if the placeholder exists, then the contents of the square brackets will be parsed. There is also support for LOGGEDIN
to check if there is a logged in user.
For example the string Hello[LOGGEDIN= by {user}]
would output as Hello
if the vistor is a guest (not logged in) or Hello by james
if the visitor has logged into the site.
Optionals can also be stacked, for example Hello[LOGGEDIN=[USER= by {user}]]
. the by {user}
would only be present if there is a logged in user AND the page has a user editor set.
Of course, you can leave the setting blank to hide the page info altogether.
The default value which is the same standard DokuWiki is: {file} · %lastmod% {date}[LOGGEDIN=[USER= %by% {user}][LOCKED= · %lockedby% {locked}]]
Themes should be placed in the themes directory, in its own directory. LESS files are supported.
Mikio now supports dark mode! When the user prefers a dark theme, or has selected dark mode, the html tag will set the theme dataset to theme-dark
, else it will be theme-light
.
You can detect this in CSS using:
:root[data-theme="theme-dark"] {
// CSS selectors here
}
or in Javascript using:
const html = document.querySelector('html');
if(html.dataset.theme == 'theme-dark') {
// ...
}
The Mikio Plugin is also available to add bootstrap 4 style + more elements to DokuWiki pages.
If the plugin is installed, the Template Styles Settings page will be expanded to allow directly editing the plugin element styling.
sidebar-title
: Text for the collapsable block in the sidebartools-menu
: Text for the combined tools DokuWiki menu titlehome
: Text for the breadcrumb home titleNEXT-RELEASE
2024-06-05
<tags>
element in the MikioPlugin #70. Requested by garanovich. 2024-05-03
2024-02-09
2023-12-12
autoDarkLight
configuration setting will override user setting when showDarkLight
is disabled #56.SameSite
requirement.always
to reflect DokuWiki. #58. Thanks schplurtz.2023-12-11
2023-12-04
2023-10-30
2023-10-20
2023-10-16
2023-10-14
2023-06-05
~~hide-parts~~
no longer working. #52. Thanks nathanmcguire.-~SETTING~-
as well as the standard ~~SETTING~~
. This fixes an incompatibility with the Comment Syntax support extension.2023-05-19
tpl»mikio»showNotifications
to an empty string is the same as setting it to always
.plugin»translation»dropdown
is turned on.2023-05-18
2023-05-13
2023-05-11
noshadow
subtheme2022-10-31
2022-10-12
2022-10-09
2022-10-04
2022-05-10
2022-05-05
2022-03-05
2021-12-11
2021-08-11
2021-06-17
2021-06-09
2021-03-10
2021-03-04
2021-01-22
2020-11-12
2020-10-07
2020-10-01
sidebarMobileDefaultCollapse
option being inconsistent in code and not working correctly #11. Thanks to GJRobert for catching that.2020-09-27
2020-09-10
2020-08-26
2020-07-27
2020-07-24
2020-07-20
2020-07-16
2020-07-15
2020-07-14
2020-07-09
input[type=file]
is hidden by plugins #22020-07-07
This template uses a modified version of simple_html_dom and bootstrap-3-typeahead.