colas@0
|
1 |
%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.1" version="2"}%
|
colas@0
|
2 |
%META:TOPICPARENT{name="TWikiVariables"}%
|
colas@0
|
3 |
#VarSPACEOUT
|
colas@0
|
4 |
---+++ SPACEOUT{"string"} -- renders string with spaces inserted in sensible places
|
colas@0
|
5 |
* Inserts spaces after lower case letters that are followed by a digit or a capital letter, and after digits that are followed by a capital letter.
|
colas@0
|
6 |
* Useful for spacing out WikiWords
|
colas@0
|
7 |
* Syntax: =%<nop>SPACEOUT{ "%<nop>TOPIC%" }%=
|
colas@0
|
8 |
* Expands to: =%SPACEOUT{ "%INCLUDINGTOPIC%" }%=
|
colas@0
|
9 |
* Supported parameters:
|
colas@0
|
10 |
| *Parameter:* | *Description:* | *Default:* |
|
colas@0
|
11 |
| =separator= | The separator to put between words e.g. %<nop>SPACEOUT{"DogsCatsBudgies" separator=", "}% -> %SPACEOUT{"DogsCatsBudgies" separator=", "}% | ' ' |
|
colas@0
|
12 |
* %T% Hint: Spaced out !WikiWords are not automatically linked. To SPACEOUT a !WikiWord but preserve the link use "double bracket" format. For example, =[<nop>[WebHome][%<nop>SPACEOUT{"Web<nop>Home"}%]]= expands to [[WebHome][%SPACEOUT{"WebHome"}%]]
|
colas@0
|
13 |
* Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSPACEDTOPIC][SPACEDTOPIC]], [[SpreadSheetPlugin#FuncPROPERSPACE][$PROPERSPACE()]] of SpreadSheetPlugin
|
colas@0
|
14 |
|