Creating a wiki format with Flexifilter
Last updated on
30 April 2025
You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules
Flexifilter currently ships with a wiki format, but let's step through it so you can understand how it works.
- Go to the flexifilter administration area by clicking Administer -> Site Building -> Flexifilters, and click 'Add new flexifilter'.
- Set the label to 'Wiki'.
- Set the description to 'A flexifilter for a wiki'.
- Prepend with </nowiki>.
- Append with <nowiki>
- Do a chunk grab on </nowiki> and <nowiki>.
- Add several pattern-based text replace components:
- Replace ''' (three single dashes) with alternating <strong> and </strong>.
- Replace '' (two single dashes) with alternating <em> and </em>.
- Replace ==== (four equals signs) with alternating <h4> and </h4>
- Replace === (three equals signs) with alternating <h3> and </h3>
- Replace == (two equals signs) with alternating <h2> and </h2>
- Create a chunk grabber on [[ and ]].
- Add an IF component within the chunk grabber.
- Add the condition "text contains" with the parameter |.
- As subcomponents of this IF statement, prepend with <a href="/drupalwikipath/
- String replace | with ">.
- Append </a>.
- Now, outside the if statement, create an IF NOT statement with the same condition.
- String replace ~ with \~ (escape the character).
- Append ~~.
- Add an advanced append. Step 20 should be added to this component.
- String replace ~~ with </a>.
- Now, outside of the advanced append, prepend with <a href="/drupalwikipath/
- String replace ~~ with ">
- String replace \~ with ~.
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion