wiki-archive/twiki/data/TWiki/VarSPACEOUT.txt,v

40 lines
1.3 KiB
Plaintext

head 1.1;
access;
symbols;
locks; strict;
comment @# @;
1.1
date 2006.06.25.16.26.29; author TWikiContributor; state Exp;
branches;
next ;
desc
@buildrelease
@
1.1
log
@buildrelease
@
text
@%META:TOPICINFO{author="TWikiContributor" date="1111929255" format="1.2" version="1"}%
%META:TOPICPARENT{name="TWikiVariables"}%
#VarSPACEOUT
---+++ SPACEOUT{"string"} -- renders string with spaces inserted in sensible places
* 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.
* Useful for spacing out WikiWords
* Syntax: =%<nop>SPACEOUT{ "%<nop>TOPIC%" }%=
* Expands to: =%SPACEOUT{ "%INCLUDINGTOPIC%" }%=
* Supported parameters:
| *Parameter:* | *Description:* | *Default:* |
| =separator= | The separator to put between words e.g. %<nop>SPACEOUT{"DogsCatsBudgies" separator=", "}% -> %SPACEOUT{"DogsCatsBudgies" separator=", "}% | ' ' |
* %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"}%]]
* Related: [[#VarSPACEDTOPIC][SPACEDTOPIC]], [[SpreadSheetPlugin#FuncPROPERSPACE][$PROPERSPACE()]] of SpreadSheetPlugin
@