This is a first comment.
This is a first comment.
This is a first comment.
-- TWiki:Main.MichaelDaum on 22 Aug 2005
%SUBST{topic="..." ...}%
insert a topic by processing its content.
topic="...": name of the topic text to be processed
pattern="...": pattern to be extracted or substituted
format="...": format expression or pattern substitute
hits="<n>" maximum number of occurences to extract or substitute counted from the start of the text (defaults to 100000 aka all hits)
expand="on,off": toggle expansion of TWiki markup before filtering (defaults to on)
%STARTSUBST{...}%
...
%STOPSUBST%
substitute text given inline. see SUBST.
%STARTEXTRACT{...}%
...
%STOPEXTRACT%
extract content given inline. see SUBST.
format, header, footer) may
contain variables $percnt$, $nop, $dollar and $n. The variable
$index referse to the position number within the list being formatted; using $count in the
footer or header argument refers to the total number of list elements.
| Date | Author | Headline |
|---|
| File: | Description: |
|---|---|
data/TWiki/FilterPlugin.txt | Plugin topic |
lib/TWiki/Plugins/FilterPlugin.pm | Plugin Perl module |
configure in your TWiki installation, and enable the plugin in the {Plugins} section.
| Plugin Author: | TWiki:Main.MichaelDaum |
| Copyright ©: | 2005-2007, MichaelDaum? http://wikiring.com |
| License: | GPL (GNU General Public License) |
| Plugin Version: | v1.00 |
| Change History: | |
| 05 Feb 2007: | fixed escapes in format strings; added better default value for max number of hits to prevent deep recursions on bad regexpressions |
| 22 Jan 2007: | fixed SUBST, added skip parameter to FORMATLIST |
| 18 Dec 2006: | using registerTagHandler for FORMATLIST |
| 13 Oct 2006: | fixed limit parameter in FORMATLIST |
| 31 Aug 2006: | added NO_PREFS_IN_TOPIC |
| 15 Aug 2006: | added use strict; and fixed revealed errors |
| 14 Feb 2006: | moved in FORMATLIST from the TWiki:Plugins/NatSkinPlugin; added escape variables to format strings |
| 06 Dec 2005: | fixed SUBST not to cut off the rest of the text |
| 09 Nov 2005: | fixed deep recursion using expand="on" |
| 22 Aug 2005: | Initial version; added expand toggle |
| TWiki Dependency: | $TWiki::Plugins::VERSION 1.024 |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.005 |
| TWiki:Plugins/Benchmark: | GoodStyle nn%, FormattedSearch nn%, FilterPlugin nn% |
| Plugin Home: | TWiki:Plugins/FilterPlugin |
| Feedback: | TWiki:Plugins/FilterPluginDev |
| Appraisal: | TWiki:Plugins/FilterPluginAppraisal |
|
“My green thumb came only as a result of the mistakes I made while learning to see things from the plant's point of view.” ~ H. Fred Ale |