NOTE: This is a
DistributionDocument.
- Please help maintain high quality documentation:
This is a wiki, please
fix the documentation if you find errors or incomplete content.
Put questions and suggestions concerning the documentation of this topic in the comments section below.
Use the Support web for problems you are having using TWiki.
Use the Sandbox web to evaluate & test TWiki.
SPACEOUT{"string"} -- renders string with spaces inserted in sensible places
- Inserts spaces between word components. Word component boundaries are transitions from lowercase to uppercase or numeric, from numeric to uppercase or lowercase, and from uppercase to numeric characters.
- Useful for spacing out WikiWords
- Syntax:
%SPACEOUT{ "%TOPIC%" }%
- Expands to:
Var SPACEOUT
- Supported parameters:
| Parameter: | Description: | Default: |
separator | The separator to put between words e.g. %SPACEOUT{"DogsCatsBudgies" separator=", "}% -> Dogs, Cats, Budgies | ' ' |
-
Hint: Spaced out WikiWords are not automatically linked. To SPACEOUT a WikiWord but preserve the link use "double bracket" format. For example, [[WebHome][%SPACEOUT{"WebHome"}%]] expands to Web Home
- Category: FormattingAndRenderingVariables
- Related: SPACEDTOPIC, $PROPERSPACE() of SpreadSheetPlugin
Comments & Questions about this Distribution Document Topic
%SEARCH{ search="." scope="topic" type="regex" excludetopic="Web*" format="
%SPACEOUT{ '$topic' }" separator="
<br/>" nonoise="on" }%
Please add a working example showing how to embed the use of SPACEOUT within, say, SEARCH, i.e. how to deal with nested % and quotes.
--
TWiki Guest - 2016-08-04
Sorry, add missing %
%SEARCH{ search="." scope="topic" type="regex" excludetopic="Web*" format="%SPACEOUT{ '$topic' }%" separator=" <br/>" nonoise="on" }%
--
TWiki Guest - 2016-08-04
Please ask support questions in the
Support forum. This section is about the
documentation of this topic.
--
Peter Thoeny - 2016-08-04