DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:const

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
plugin:const [2023-04-03 22:11] – [Installation] 95.77.67.230plugin:const [2024-02-26 10:51] (current) – [Discussion] 2a01:cb08:8ae4:de00:a0ef:f1a9:f5ae:4f85
Line 6: Line 6:
 email      :  email      : 
 type       : action,syntax type       : action,syntax
-lastupdate : 2020-02-29+lastupdate : 2023-04-04
 compatible : Igor, Greebo, Frusterick Manners, Elenor Of Tsort, Detritus compatible : Igor, Greebo, Frusterick Manners, Elenor Of Tsort, Detritus
 depends    :  depends    : 
Line 24: Line 24:
  
 Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually. Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
- 
-==== Pages Using this plugin ==== 
-  * ? 
-\\ 
  
 ===== Examples/Usage ===== ===== Examples/Usage =====
Line 62: Line 58:
   - with ''variable=string'' you can assign a string to the variable. You can also assign a constant to a variable.    - with ''variable=string'' you can assign a string to the variable. You can also assign a constant to a variable. 
   - with ''result:formular'' you can execute a formular and store the result in the result variable. Inside the formular constants and earlier defined variables are allowed.   - with ''result:formular'' you can execute a formular and store the result in the result variable. Inside the formular constants and earlier defined variables are allowed.
-  - to display a variable on the page, use ''<nowiki>%%variable%%</nowiki>'' +  - to display a variable on the page, use ''<nowiki>%%variable%%</nowiki>'' or ''%%§§variable§§%%''
  
 **Available constants are:** **Available constants are:**
-^constants description ^+^Constants       Description ^
 |''%ID%''        | pageid ''noNS(cleanID(getID()))''| |''%ID%''        | pageid ''noNS(cleanID(getID()))''|
 |''%NAMESPACE%'' | namespace ''getNS(cleanID(getID()))'' | |''%NAMESPACE%'' | namespace ''getNS(cleanID(getID()))'' |
 |''%RANDOM%''    | random number ''strval(rand())'' | |''%RANDOM%''    | random number ''strval(rand())'' |
 |''%USER%''      | username | |''%USER%''      | username |
-|''%YEAR%''      | year ''date("Y")''+|''%YEAR%''      | year ''%%date("Y")%%''
-|''%MONTH%''     | month ''date("m")''+|''%MONTH%''     | month ''%%date("m")%%''
-|''%MONTHNAME%'' | monthname ''date("F")''+|''%MONTHNAME%'' | monthname ''%%date("F")%%''
-|''%WEEK%''      | weeknumber ''date("W")''+|''%WEEK%''      | weeknumber ''%%date("W")%%''
-|''%DAY%''       | day ''date("d")''+|''%DAY%''       | day ''%%date("d")%%''
-|''%DAYNAME%''   | dayname ''date("l")'' |+|''%DAYNAME%''   | dayname ''%%date("l")%%'' |
 |''%AUTOINDEX%'' | autoinkrement variable  | |''%AUTOINDEX%'' | autoinkrement variable  |
  
Line 105: Line 100:
  
 ===== Discussion ===== ===== Discussion =====
 +
 +Any idea to set ''const'' at wiki level ?
 +[[user>jerome|Jérôme Barotin]] --- //2023-02-26 10:50//
  
 This plugin doesn't work at all, is buggy and useless. This plugin doesn't work at all, is buggy and useless.
plugin/const.1680552680.txt.gz · Last modified: 2023-04-03 22:11 by 95.77.67.230

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