equal
deleted
inserted
replaced
|
1 %META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.1" version="2"}% |
|
2 %META:TOPICPARENT{name="TWikiVariables"}% |
|
3 #VarSPACEOUT |
|
4 ---+++ SPACEOUT{"string"} -- renders string with spaces inserted in sensible places |
|
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. |
|
6 * Useful for spacing out WikiWords |
|
7 * Syntax: =%<nop>SPACEOUT{ "%<nop>TOPIC%" }%= |
|
8 * Expands to: =%SPACEOUT{ "%INCLUDINGTOPIC%" }%= |
|
9 * Supported parameters: |
|
10 | *Parameter:* | *Description:* | *Default:* | |
|
11 | =separator= | The separator to put between words e.g. %<nop>SPACEOUT{"DogsCatsBudgies" separator=", "}% -> %SPACEOUT{"DogsCatsBudgies" separator=", "}% | ' ' | |
|
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"}%]] |
|
13 * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarSPACEDTOPIC][SPACEDTOPIC]], [[SpreadSheetPlugin#FuncPROPERSPACE][$PROPERSPACE()]] of SpreadSheetPlugin |
|
14 |