Reference: Display Filters: Substitute | ||||||
---|---|---|---|---|---|---|
![]() ![]() ![]() ![]() |
|
Filter Overview |
This filter allows certain strings in an article to be replaced with other
strings or with graphics when the article is displayed. You might use
this to, for example, fix a few particularly common and annoying spelling
errors, or to replace an ASCII smiley :-) with an actual smiley, as
shown in the example below Like all other display filters, the Substitute filter only affects the presentation of the article. It does not change the original in any way. |
User Interface |
The user interface for this filter looks like this:
The filter accepts a list of replacement rules, each of which has the following parameters:
|
Example |
Here is an example of some text with a Substitute filter set to convert
ASCII smileys to a smiley graphic:
And here is the original text without using the substitute filter:
|
Variables | There is one variable supported by this filter. The variable ${Img} may be used in the replacement text to specify the location in the replacement text where the defined image should be imbedded. |