\define tiddlername() $:/NS/$(currentTiddler)$
<$list filter="[<tiddlername>has[text]]" variable=nul>
<$transclude tiddler=<<tiddlername>>/>
</$list>
<$list filter="[<tiddlername>!has[text]]" variable=nul>
<$link to=<<tiddlername>> ><<currentTiddler>></$link>
</$list>{{any name||$:/NS}}The idea is within this "namespace" your tiddler titles can be anything and not clash with regular tiddlers. For example $:/NS/pagebreak could contain the invisible code to throw a page break in print output. {{$:/NS/pagebreak}}
REGARDS
Tony
\define tiddlername() $:/NS/$(currentTiddler)$
<$list filter="[<tiddlername>has[text]]">
<$transclude tiddler=<<currentTiddler>>/> {{||$:/core/ui/Buttons/edit}}
</$list>
<$list filter="[<tiddlername>!has[text]]" variable=nul>
<$link to=<<tiddlername>> ><<currentTiddler>></$link>
</$list>The idea is within this "namespace" your tiddler titles can be anything and not clash with regular tiddlers. For example $:/NS/pagebreak could contain the invisible code to throw a page break in print output. {{$:/NS/pagebreak}}
I'm using something similar for my i18n macro.
https://groups.google.com/forum/m/#!topic/tiddlywikidev/a9rq0wsaGvs
* If a translation exists, it is displayed
* Else
* A message with link to the translation to be created is displayed
* If an original exists it is displayed
* else A message with link to the original tiddler to be created is displayed
In my case it's not $:/NS/ but $:/a_domain/i18n/lg-LG/ but the mechanism is the same.
Cheers
Sylvain
@sycom