mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 15:24:50 +00:00
e8bb897e26
When renaming an existing tiddler, the edit template now shows a checkbox that determines whether or not to relink references to the tiddler in the list or tags fields of other tiddlers.
45 lines
1.0 KiB
Plaintext
45 lines
1.0 KiB
Plaintext
title: $:/core/ui/EditTemplate/title
|
|
tags: $:/tags/EditTemplate
|
|
|
|
<$edit-text field="draft.title" class="tc-titlebar tc-edit-texteditor" focus="true"/>
|
|
|
|
<$vars pattern="""[\|\[\]{}]""" bad-chars="""`| [ ] { }`""">
|
|
|
|
<$list filter="[is[current]regexp:draft.title<pattern>]" variable="listItem">
|
|
|
|
<div class="tc-message-box">
|
|
|
|
{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}}
|
|
|
|
</div>
|
|
|
|
</$list>
|
|
|
|
</$vars>
|
|
|
|
<$reveal state="!!draft.title" type="nomatch" text={{!!draft.of}} tag="div">
|
|
|
|
<$list filter="[{!!draft.title}!is[missing]]" variable="listItem">
|
|
|
|
<div class="tc-message-box">
|
|
|
|
{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}
|
|
|
|
</div>
|
|
|
|
</$list>
|
|
|
|
<$list filter="[{!!draft.of}!is[missing]]" variable="listItem">
|
|
|
|
<$vars fromTitle={{!!draft.of}} toTitle={{!!draft.title}}>
|
|
|
|
<$checkbox tiddler="$:/config/RelinkOnRename" field="text" checked="yes" unchecked="no" default="no"> {{$:/language/EditTemplate/Title/Relink/Prompt}}</$checkbox>
|
|
|
|
</$vars>
|
|
|
|
</$list>
|
|
|
|
</$reveal>
|
|
|
|
|