template:ad-hominem
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
template:ad-hominem [2022-01-05 22:04] – sascha-leib | template:ad-hominem [2024-03-27 13:11] (current) – [Cookies Banner] sascha-leib | ||
---|---|---|---|
Line 5: | Line 5: | ||
author | author | ||
email : ad@hominem.info | email : ad@hominem.info | ||
- | lastupdate_dt : 2022-01-05 | + | lastupdate_dt : 2024-02-07 |
- | compatible | + | compatible |
depends | depends | ||
- | conflicts | + | conflicts |
similar | similar | ||
screenshot_img: | screenshot_img: | ||
- | tags : !beta, | + | tags : responsive, sidebar, mobile, print, html5, css3, semantic, clean, dark, dark-mode, customizable, |
- | downloadurl | + | downloadurl |
bugtracker | bugtracker | ||
sourcerepo | sourcerepo | ||
Line 20: | Line 20: | ||
This is an attempt to create a very simple and lightweight template for DokuWiki that stays true to the ideas of the original design, but modernizes the code and improve on the usability. | This is an attempt to create a very simple and lightweight template for DokuWiki that stays true to the ideas of the original design, but modernizes the code and improve on the usability. | ||
- | It was designed to work for [[https://ad.hominem.info/|my DokuWiki site of the same name]] but may be useful for others, too. | + | It was designed to work for my DokuWiki site of the same name (now migrated to [[https://denkfehler.online/ |
- | Please keep in mind that this is still "work in progress", | + | This is provided |
Feedback and bug reports are of course always welcome :-) | Feedback and bug reports are of course always welcome :-) | ||
Line 33: | Line 33: | ||
* This also works for Wikipedia links! | * This also works for Wikipedia links! | ||
* Looks good in print. | * Looks good in print. | ||
- | * Tries to implement | + | * The template implements |
- | * Neatly formatted and standards-compliant code (where possible – the main page text comes from the DokuWiki renderer | + | * [[wp> |
+ | * Neatly formatted and standards-compliant code (where possible – again, | ||
* Makes better use of larger screens (target is half of a 4K screen), but because the template is fully responsive, smaller is no problem (down to ca. 300px wide) | * Makes better use of larger screens (target is half of a 4K screen), but because the template is fully responsive, smaller is no problem (down to ca. 300px wide) | ||
* improvements to edit view, media manager, etc. | * improvements to edit view, media manager, etc. | ||
* User-side controlled “dark mode”, i.e. follows the client side dark mode settings. | * User-side controlled “dark mode”, i.e. follows the client side dark mode settings. | ||
* Improvements to the default functionality, | * Improvements to the default functionality, | ||
+ | * Configuration to override the " | ||
* Integrated " | * Integrated " | ||
+ | * Compatible with PHP8 and DokuWiki “Kaos”. | ||
===== Download and Install ====== | ===== Download and Install ====== | ||
Line 75: | Line 78: | ||
* "The message to display on the Cookie banner": | * "The message to display on the Cookie banner": | ||
- | * "Link to the “More information” page": this is either an internal or external address that the "More information" | + | * "Link to the “More information” page": this is either an internal or external address that the "More information" |
+ | |||
+ | ==== Override Home Link ==== | ||
+ | |||
+ | The template has an option to override the " | ||
+ | |||
+ | If you enter, for example, "/ | ||
+ | |||
+ | Leaving the field empty will keep the original behaviour (home is your wiki homepage) intact. | ||
===== Dark Mode ===== | ===== Dark Mode ===== | ||
- | Starting from version '' | + | This template |
The following screenshots show the light and dark mode side by side: | The following screenshots show the light and dark mode side by side: | ||
- | {{ http://ad.hominem.info/img/template-screenshot_04.jpg | Screenshots in light and dark mode }} | + | {{ https://denkfehler.online/_template/screenshot_13.jpg | Screenshots in light and dark mode }} |
Generally, there is nothing to do for a site admin, but please be aware of this, and make sure to check your site in dark mode from time to time (or in light mode, if you normally use dark mode). | Generally, there is nothing to do for a site admin, but please be aware of this, and make sure to check your site in dark mode from time to time (or in light mode, if you normally use dark mode). | ||
Line 89: | Line 100: | ||
There are two potential issues to be aware of: | There are two potential issues to be aware of: | ||
- | * If you used the " | + | * If you used the " |
* If possible, create images in a way that they also work with dark backgrounds. Especially if you use transparency, | * If possible, create images in a way that they also work with dark backgrounds. Especially if you use transparency, | ||
Line 96: | Line 107: | ||
And, of course, you can also override the dark mode colours using the [[plugin: | And, of course, you can also override the dark mode colours using the [[plugin: | ||
+ | |||
+ | ===== Cookies ===== | ||
+ | |||
+ | This template also comes with its own implementation of the [[plugin: | ||
+ | |||
+ | The “'' | ||
+ | |||
+ | Please keep in mind, however, that the DokuWiki system sets additional cookies, which are explained on [[faq: | ||
+ | |||
+ | ===== 2-column “compact” print style ===== | ||
+ | |||
+ | Since 1.5 there is now an option to switch from the default " | ||
+ | |||
+ | This " | ||
+ | |||
+ | Most importantly, | ||
+ | |||
+ | If you use the [[plugin: | ||
+ | |||
+ | > ''< | ||
+ | > … | ||
+ | > ''</ | ||
+ | |||
+ | Another option is the [[plugin: | ||
+ | |||
+ | > ''< | ||
+ | > … | ||
+ | > ''</ | ||
+ | |||
+ | Last but not least: ''< | ||
+ | |||
+ | Other print-related classes include '' | ||
+ | |||
+ | ===== HTML Tags ===== | ||
+ | |||
+ | As of DokuWiki “Jack Jackrum”, embedding HTML tags in the DokuWiki code is no longer supported. In order to still allow semantic markup to be added, the autor of this template also provides a plugin, [[plugin: | ||
+ | |||
+ | This has been developed with, and is designed to be used with this template (though it is fully useable with other templates as well, of course). | ||
===== Visit my site ===== | ===== Visit my site ===== | ||
Line 101: | Line 150: | ||
The best way to experience this template is by browsing my sites, which make full use of it: | The best way to experience this template is by browsing my sites, which make full use of it: | ||
- | * [[https://ad.hominem.info/|Ad Hominem Info]] | + | * [[https://denkfehler.online/ |
- | * [[https://denkfehler.online/hauptseite|Denkfehler | + | * [[https://fallacies.online/wiki/index|Fallacies |
template/ad-hominem.1641416652.txt.gz · Last modified: 2022-01-05 22:04 by sascha-leib