====== Variable Plugin ====== ---- plugin ---- description: Displays some dynamic info about the current page, user or date. It uses exactly the same syntax and variables as namespace templates. (previous authors: Esther Brunner) author : Gina Häußge, Michael Klier email : dokuwiki@chimeric.de type : syntax lastupdate : 2008-02-14 compatible : > 2007-06-26 > 2006-11-06 depends : conflicts : similar : tags : template, info ---- ^ Download | [[http://www.chimeric.de/_src/plugin-var.tgz|plugin-var.tgz]] | ===== Syntax ===== ^ @ID@ | full ID of the page | ^ @NS@ | namespace of the page | ^ @PAGE@ | page name (ID without namespace and underscores replaced by spaces) | ^ @USER@ | ID of current user | ^ @NAME@ | full name of current user | ^ @MAIL@ | mail address of current user | ^ @DATE@ | current date | ^ @YEAR@ | current year in YYYY format | ^ @MONTH@ | current month in MM format | ^ @DAY@ | current day in DD format | This plugin doesn't work within titles, links and other substitution patterns, for technical reasons. Use this plugin only when necessary. It turns caching for the current page off, which may have a negative effect on performance. ===== Further Resources ===== * [[http://darcs.chimeric.de/darcsweb.cgi?r=var|Darcs Repository]] * [[http://dev.chimeric.de/codereference/nav.html?plugins/var/index.html|Source code]] ===== Discussion =====