Automatically display topic links spaced out: [SpacedWikiWordPlugin
is displayed as Spaced Wiki Word Plugin.
Display "underscore topic names" like Topic_name
as Topic name
This plugin also overrides the core
macro to improve the presentation
of spaced out words, and allow for a
Spaced out WikiWords definitely make links more readable, but they can also produce "Odd Looking Sentence Case" links.
Use underscore topic names if you want total control over links:
- (Optionally) disable automatic linking of WikiWords. Do this if you are in the position to teach your users to only write links in bracket notation like
[[WebHome]]. This is also how Wikipedia links are written. Bracket notation is necessary to create links for underscore topic names, but you can also mix both link notations.
- Use bracket notation without explicit link labels:
[[WebHome][WebHome]] - explicit link label, no spacing out
[[WebHome]] - link is label, so no explicit link label: this is spaced out
- Use underscores to create natural looking links:
- A topic name such as
[[Human_evolution]] will be rendered as Human evolution
- Plain topic names like
Human_evolution are not expanded; always use bracket notation
wiki words are automatically spaced out. Automatically spaced out are:
Explicitly written link labels are not
spaced out. Examples:
is automaticlly spaced out (but not
Spacing out search results
macro. For example, write:
to generate: Spaced Wiki Word Plugin
More info on search syntax in FormattedSearch
Preventing spacing out of some words
Some words (often brand names and medical terms) are written in CamelCase
notation and should not be spaced out. For example: CamelCase, DaimlerChrysler, MasterCard.
Define a list of words that should not get spaced out with
in your prefereces.
My links are not spaced out
- At Plugin test below, check if this plugin is enabled and if the correct spacing settings are applied.
- You have used an explicit link label: with
[[WebHome][WebHome]], "WebHome" is not spaced out. Use
- You have used underscore topic names without bracket notation. Always write
- You are showing links from a search result. See #SearchResults above.
Some words are spaced out, but shouldn't be
You can control the behaviour of the plugin using the following PreferenceSettings
DONTSPACE can be set to a commaa-separated list of words that should not be spaced out
SPACE_OUT_WIKI_WORD_LINKS can be set to 1/0 to enable/disable spacing out
WikiWord links to
Wiki Word links
SPACE_OUT_UNDERSCORE_LINKS can be set to 1/0 to enable/disable spacing out
Topic_name links to
Topic name links
REMOVE_ANCHOR_DASHES can be set to 1/0 to enable/disable removing anchor dashes when writing
All these settings are on by default.
If the plugin is installed and enabled:
WARNING: this plugin is designed for Foswiki 2.0 and later. It may work on some earlier Foswiki versions, but has not been tested with them.
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
Open configure, and open the "Extensions" section. "Extensions Operation and Maintenance" Tab -> "Install, Update or Remove extensions" Tab. Click the "Search for Extensions" button.
Enter part of the extension name or description and press search. Select the desired extension(s) and click install. If an extension is already installed, it will not
show up in the
You can also install from the shell by running the extension installer as the web server user: (Be sure to run as the webserver user, not as root!)
perl tools/extension_installer <NameOfExtension> install
If you have any problems, or if the extension isn't available in
, then you can still install manually from the command-line. See https://foswiki.org/Support/ManuallyInstallingExtensions
for more help.
| 12 July 2017
|| Crawford Currie: rewrote for Foswiki 2
| 10 Nov 2010
|| Padraig Lennon: Foswikitask:Item9994 - Fix Release Version
| 23 Nov 2007
|| Arthur Clemens: made compatible to Foswiki; allow
DONTSPACE to separated words by spaces.
| 05 May 2007
|| Arthur Clemens: fixed a wrong function call, thanks TWiki:Main.JohnFitzpatrick.
| 04 May 2007
|| Arthur Clemens: spacing out uses a Core function (from Plugins version 1.13; fallback for older versions); added support for spacing out of "underscore topic names"; added optional removal of anchor dashes.
| 20 Apr 2007
|| Arthur Clemens: updated with regexes from TWiki Core
| 12 Apr 2004
|| Updated for TWiki 3
| 14 Apr 2002
|| First release