plugin:datefilter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:datefilter [2007-10-09 21:12] – andi | plugin:datefilter [2020-06-04 07:46] (current) – arlt | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Datefilter Plugin ====== | ||
+ | |||
+ | ---- plugin ---- | ||
+ | description: | ||
+ | author | ||
+ | email : michael.arlt@sk-schwanstetten.de | ||
+ | type : syntax | ||
+ | lastupdate : 2020-06-04 | ||
+ | compatible : Greebo | ||
+ | depends | ||
+ | conflicts | ||
+ | similar | ||
+ | tags : date, filter, calendar | ||
+ | |||
+ | downloadurl: | ||
+ | bugtracker : https:// | ||
+ | sourcerepo : | ||
+ | donationurl: | ||
+ | ---- | ||
+ | |||
+ | ===== Description ===== | ||
+ | |||
+ | Datefilter filters lines which are in the past. The date is recognized with a simple configureable pattern (e.g. yy-mm-dd). The first found date in the line is deciding. You can have a default pattern and/or specify it at every datefilter. As a result you can realize a simple calendar. | ||
+ | The syntax can be localized - completely. English and German is available. | ||
+ | |||
+ | ===== Thanks to ... ===== | ||
+ | |||
+ | Andreas and Esther for the work they are doing and especially for trying to help others. | ||
+ | |||
+ | ===== Syntax ===== | ||
+ | |||
+ | Simply add around your table with all your dates. Optional you can add a specific dateformat. | ||
+ | |||
+ | < | ||
+ | < | ||
+ | ... | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | ... | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Year, month and date **must** be specified with two letters! If you want to use four digits for the year you should have a look at the examples. | ||
+ | |||
+ | ==== English version (default installation) ==== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | ^date^business appointment^ | ||
+ | |06-11-20|DokuWiki presentation| | ||
+ | |06-11-21|DokuWiki training course| | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Here is the default English filter (yy-mm-dd) used. The result on 06-11-21 is: | ||
+ | |||
+ | ^date^business appointment^ | ||
+ | |06-11-21|DokuWiki training course| | ||
+ | |||
+ | < | ||
+ | < | ||
+ | ^date^business appointment^ | ||
+ | |2006/ | ||
+ | |2006/ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Result on 06-11-21: | ||
+ | |||
+ | ^date^business appointment^ | ||
+ | |2006/ | ||
+ | |||
+ | ==== German version (default installation) ==== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | ^Datum^Geschäftstermin^ | ||
+ | |20.11.06|DokuWiki Präsentation| | ||
+ | |21.11.06|DokuWiki Schulung| | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Ergebnis am 21.11.06 | ||
+ | |||
+ | ^Datum^Geschäftstermin^ | ||
+ | |21.11.06|DokuWiki Schulung| | ||
+ | |||
+ | < | ||
+ | < | ||
+ | ^Datum^Geschäftstermin^ | ||
+ | |20.11.2006|DokuWiki Präsentation| | ||
+ | |21.11.2006|DokuWiki Schulung| | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Ergebnis am 21.11.06 | ||
+ | |||
+ | ^Datum^Geschäftstermin^ | ||
+ | |21.11.2006|DokuWiki Schulung| | ||
+ | |||
+ | ===== Localization ===== | ||
+ | |||
+ | < | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | </ | ||
+ | |||
+ | ===== Download / Installation ===== | ||
+ | |||
+ | Search and install the plugin using the [[plugin: | ||
+ | |||
+ | Have a look at the DokuWiki plugin configuration. | ||
+ | |||
+ | ===== Change History ===== | ||
+ | |||
+ | ==== 2020-06-04 ==== | ||
+ | |||
+ | * Greebo compatibility | ||
+ | |||
+ | ==== 2016-07-11 ==== | ||
+ | |||
+ | * Elenor Of Tsort compatibility | ||
+ | |||
+ | ==== 2006-11-23 ==== | ||
+ | |||
+ | * And again a second public release in a few days - Mea culpa! :-) | ||
+ | * Only improved regular expressions - e.g. day changed from %%[0-9][0-9] to ((0[1-9])|([1-2][0-9])|(3[0-1]))%% - no need for an update if you have no problems | ||
+ | |||
+ | ==== 2006-11-20 ==== | ||
+ | |||
+ | * First public release | ||
+ | * All desired features of the author are implemented | ||
+ | |||
+ | ===== License ===== | ||
+ | |||
+ | This product is released under the [[http:// | ||
+ | |||
+ | ===== Discussion ===== | ||
+ | |||
+ | Sometimes you have an end date until then you wish to show the entry. Now this entry would disappear, when first day of the period passed. | ||
+ | |||
+ | ^begin^end^description^ | ||
+ | |10.04.10|14.04.10|Visit grandma| | ||
+ | |||
+ | ... workaround: avoid the correct expression of the first date (assume dd.mm.yy): | ||
+ | |||
+ | |10.04.|14.04.10|Visit grandma| | ||
+ | |||
+ | ===== Contribution ==== | ||
+ | |||
+ | Quickly hacked extension to the plugin, that can filter date either before or after today, instead of only before today. [[http:// | ||
+ | |||
+ | === extended Syntax === | ||
+ | |||
+ | just use the optional keywords " | ||
+ | (" | ||
+ | < | ||
+ | < | ||
+ | ... | ||
+ | </ | ||
+ | </ | ||