DokuWiki

It's better when it's simple

User Tools

Site Tools


template:ad-hominem

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
template:ad-hominem [2023-04-01 18:16] – [Ad-Hominem Template] sascha-leibtemplate:ad-hominem [2024-03-27 13:11] (current) – [Cookies Banner] sascha-leib
Line 5: Line 5:
 author        : Sascha Leib author        : Sascha Leib
 email         : ad@hominem.info email         : ad@hominem.info
-lastupdate_dt : 2023-04-01 +lastupdate_dt : 2024-02-07 
-compatible    : !Frusterick Manners, !Greebo, Igor+compatible    : !Frusterick Manners, !Greebo, Jack Jackrum, Kaos
 depends       : depends       :
-conflicts     : +conflicts     : plugin:cookielaw
 similar       : dokuwiki similar       : dokuwiki
 screenshot_img: http://ad.hominem.info/img/template-screenshot_04.jpg screenshot_img: http://ad.hominem.info/img/template-screenshot_04.jpg
-tags          : responsive, sidebar, mobile, print, html5, css3, semantic, clean, dark, dark-mode, customizable, minimal, accessible, subsite, hogfather+tags          : responsive, sidebar, mobile, print, html5, css3, semantic, clean, dark, dark-mode, customizable, minimal, accessible, subsite, kaos
  
-downloadurl   : https://github.com/saschaleib/dokuwiki-template-ad-hominem/archive/refs/tags/v1.6.3.zip+downloadurl   : https://github.com/saschaleib/dokuwiki-template-ad-hominem/archive/refs/tags/2024-02-07.zip
 bugtracker    : https://github.com/saschaleib/dokuwiki-template-ad-hominem/issues bugtracker    : https://github.com/saschaleib/dokuwiki-template-ad-hominem/issues
 sourcerepo    : https://github.com/saschaleib/dokuwiki-template-ad-hominem sourcerepo    : https://github.com/saschaleib/dokuwiki-template-ad-hominem
Line 42: Line 42:
   * Configuration to override the "home"-link (see below)   * Configuration to override the "home"-link (see below)
   * Integrated "Cookies" banner functionality   * Integrated "Cookies" banner functionality
-  * Compatible with PHP8 and DokuWiki “Igor”.+  * Compatible with PHP8 and DokuWiki “Kaos”.
  
 ===== Download and Install ====== ===== Download and Install ======
Line 78: Line 78:
   * "The message to display on the Cookie banner": This is a free-text field that allows you to set the text to display. This text is directly copied into a ''<p>'' context in the banner, without escaping. That means you can insert some (inline) HTML for formatting, if needed.   * "The message to display on the Cookie banner": This is a free-text field that allows you to set the text to display. This text is directly copied into a ''<p>'' context in the banner, without escaping. That means you can insert some (inline) HTML for formatting, if needed.
  
-  * "Link to the “More information” page": this is either an internal or external address that the "More information" link shall link to. Internal addresses should look like, e.g. ''about:cookies'' (this is also the default), external addresses start with either <html>http://</html> or <html>https://</html> +  * "Link to the “More information” page": this is either an internal or external address that the "More information" link shall link to. Internal addresses should look like, e.g. ''about:cookies'' (this is also the default), external addresses start with either ''%%http://%%'' or ''%%https://%%'' 
  
 ==== Override Home Link ==== ==== Override Home Link ====
Line 124: Line 124:
 Most importantly, use the class "''print-wide''" can be used to mark up sections that should span both columns, e.g. for images, tables, etc.  Most importantly, use the class "''print-wide''" can be used to mark up sections that should span both columns, e.g. for images, tables, etc. 
  
-If you use the [[plugin:wrap|wrap]] plugin, you can simply wrap (pun intended) such a section with:+If you use the [[plugin:wrap|Wrap]] plugin, you can simply wrap (pun intended) such a section with:
  
 > ''<WRAP print-wide>'' > ''<WRAP print-wide>''
Line 130: Line 130:
 > ''</WRAP>'' > ''</WRAP>''
  
-Alternatively, ''<figure>'' blocks are also spanning both columns by default and also have specialized styling to make sure they look good in print (including their ''<figcaption>''s). If you want to override this behaviour, you can keep them in a single column by adding the class ''print-narrow''.+Another option is the [[plugin:adhoctags|Ad.Hoc Tags]] plugin of the same authorwhich allows you to use a larger number of HTML tags, including the possibility to simply add class names (and other attributes) in your code. Here you could write, e.g.: 
 + 
 +> ''<aside print-wide>'' 
 +>  … 
 +> ''</aside>'' 
 + 
 +Last but not least: ''<figure>'' blocks are also spanning both columns by default and also have specialized styling to make sure they look good in print (including their ''<figcaption>''s). If you want to override this behaviour, you can keep them in a single column by adding the class ''print-narrow''.
  
 Other print-related classes include ''noprint'' and ''print-only'', which do exactly what their names promise. Other print-related classes include ''noprint'' and ''print-only'', which do exactly what their names promise.
 +
 +===== 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:adhoctags|Ad-Hoc Tags]], which enables //specific// HTML tags in a more Wiki-like syntax.
 +
 +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 =====
template/ad-hominem.1680365800.txt.gz · Last modified: 2023-04-01 18:16 by sascha-leib

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki