DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:button

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
Last revisionBoth sides next revision
plugin:button [2020-07-09 20:25] rpeyronplugin:button [2023-08-19 15:15] – Checked compatibilty with latest release rpeyron
Line 6: Line 6:
 email      : remi+dokuwiki@via.ecp.fr email      : remi+dokuwiki@via.ecp.fr
 type       : syntax type       : syntax
-lastupdate : 2020-05-11 +lastupdate : 2023-08-18 
-compatible : Adora Belle, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor Of Tsort, Frusterick Manners, Greebo, Hogfather+compatible : Adora Belle, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor Of Tsort, Frusterick Manners, Greebo, Hogfather, Igor, Jack Jackrum
 depends    :  depends    : 
 conflicts  : siteexport conflicts  : siteexport
Line 39: Line 39:
   * ''namespace:image'' is the location of the image to use in the media manager   * ''namespace:image'' is the location of the image to use in the media manager
   * ''extra css'' is some css code to add to the button, or the name of a style defined with ''conf.styles'' (see below)   * ''extra css'' is some css code to add to the button, or the name of a style defined with ''conf.styles'' (see below)
-  * ''wiki page'' is the targetted id page ; you may also use ''/'' prefix to force an external URI (for instance : ''/mailto:example@example.org'' )+  * ''wiki page'' is the targetted id page ; targets with %%://%% or %%mailto:%% are treated as external URI ; you may also use ''!'' prefix to force an external URI (for instance : %%!apt:package%% ; protocol has to be allowed in dokuwiki, check [[:urlschemes]]
   * ''**Title** of the link'' is the name that will be displayed on the button, with formatting support ('\\' will break the line in the button, '**' for bold, etc.)   * ''**Title** of the link'' is the name that will be displayed on the button, with formatting support ('\\' will break the line in the button, '**' for bold, etc.)
  
Line 121: Line 121:
   * 07/03/2020 : Fixed PHP warning (Issue #9)   * 07/03/2020 : Fixed PHP warning (Issue #9)
   * 11/05/2020 : Improved CSS configurability & regex (Issue #10 and #12)   * 11/05/2020 : Improved CSS configurability & regex (Issue #10 and #12)
-  * 09/07/2020 : Added '/' prefix in URI to allow to force non internal URI (mailto: prefix for instance)+  * 09/07/2020 : Added '!' prefix in URI to allow to force non internal URI (apt: prefix for instance
 +  * 04/08/2020 : Hack to fix issue with Hogfather (see Issue #13 for details) 
 +  * 07/02/2022 : Added Português do Brasil translation (PR by mac-sousa) 
 +  * 26/11/2022 : Fixed some warnings for PHP8.1 and fix filename of br translation 
 +  * 13/12/2022 : Fixed PHP7 with str_contains polyfill 
 +  * 29/05/2023 : Fixed require deprecated warning (thanks to #28) 
 +  * 18/08/2023 : Fixed more deprecation warnings (thanks to nerun with #33)
  
 =====Request===== =====Request=====
  
 If you have any request, please add an issue to [[https://github.com/rpeyron/plugin-button/issues]]  If you have any request, please add an issue to [[https://github.com/rpeyron/plugin-button/issues]] 
- 
-You may also add requests below ; but note that I do not track changes on this page, so you should notify me by mail if you need a quick answer. 
  
 Older requests : Older requests :
   * For the plugin to recognize white space so buttons can all be the same size \\ -> //The best way to do that is to add a 'width' in the style section : %%[[{buttons:fbreader.png|width: 25em}vlc|Bouton vlc]]%% ; if you want all your buttons with the same size, you may also want to modify default style : %%[[{conf.styles}default|color:green; width:15em;]]%%//     * For the plugin to recognize white space so buttons can all be the same size \\ -> //The best way to do that is to add a 'width' in the style section : %%[[{buttons:fbreader.png|width: 25em}vlc|Bouton vlc]]%% ; if you want all your buttons with the same size, you may also want to modify default style : %%[[{conf.styles}default|color:green; width:15em;]]%%//  
   * Button Color can be changed with a hex code \\ -> //This can already be done by specifying the color in the style section : %%[[{buttons:fbreader.png|width: 25em; color: #20FE55; background-color: #7780F0;}color|Button with specific colors]]%%//   * Button Color can be changed with a hex code \\ -> //This can already be done by specifying the color in the style section : %%[[{buttons:fbreader.png|width: 25em; color: #20FE55; background-color: #7780F0;}color|Button with specific colors]]%%//
plugin/button.txt · Last modified: 2024-01-18 12:58 by Aleksandr

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