2016-04-22 07:36:29 +00:00
|
|
|
title: $:/core/ui/EditorToolbar/excise-dropdown
|
|
|
|
|
|
|
|
\define lingo-base() $:/language/Buttons/Excise/
|
2016-04-26 06:43:13 +00:00
|
|
|
|
|
|
|
\define body(config-title)
|
2016-04-22 07:36:29 +00:00
|
|
|
''<<lingo Hint>>''
|
|
|
|
|
2016-04-26 06:43:13 +00:00
|
|
|
<<lingo Caption/NewTitle>> <$edit-text tag="input" tiddler="$config-title$/new-title" default="" focus="true"/>
|
2016-04-22 07:36:29 +00:00
|
|
|
|
2016-04-26 06:43:13 +00:00
|
|
|
<$set name="new-title" value={{$config-title$/new-title}}>
|
2016-04-22 07:36:29 +00:00
|
|
|
<$list filter="""[<new-title>is[tiddler]]""">
|
|
|
|
<div class="tc-error">
|
|
|
|
<<lingo Caption/TiddlerExists>>
|
|
|
|
</div>
|
|
|
|
</$list>
|
|
|
|
</$set>
|
|
|
|
|
2016-04-26 06:43:13 +00:00
|
|
|
<$checkbox tiddler="""$config-title$/tagnew""" field="text" checked="yes" unchecked="no" default="false"> <<lingo Caption/Tag>></$checkbox>
|
2016-04-22 07:36:29 +00:00
|
|
|
|
2016-04-26 06:43:13 +00:00
|
|
|
<<lingo Caption/Replace>> <$select tiddler="""$config-title$/type""" default="transclude">
|
2016-04-22 07:36:29 +00:00
|
|
|
<option value="link"><<lingo Caption/Replace/Link>></option>
|
|
|
|
<option value="transclude"><<lingo Caption/Replace/Transclusion>></option>
|
|
|
|
<option value="macro"><<lingo Caption/Replace/Macro>></option>
|
|
|
|
</$select>
|
|
|
|
|
2016-04-26 06:43:13 +00:00
|
|
|
<$reveal state="""$config-title$/type""" type="match" text="macro">
|
|
|
|
<<lingo Caption/MacroName>> <$edit-text tag="input" tiddler="""$config-title$/macro-title""" default="translink"/>
|
2016-04-22 07:36:29 +00:00
|
|
|
</$reveal>
|
|
|
|
|
|
|
|
<$button>
|
|
|
|
<$action-sendmessage
|
|
|
|
$message="tm-edit-text-operation"
|
|
|
|
$param="excise"
|
2016-04-26 06:43:13 +00:00
|
|
|
title={{$config-title$/new-title}}
|
|
|
|
type={{$config-title$/type}}
|
|
|
|
macro={{$config-title$/macro-title}}
|
|
|
|
tagnew={{$config-title$/tagnew}}
|
2016-04-22 07:36:29 +00:00
|
|
|
/>
|
|
|
|
<$action-deletetiddler
|
2016-04-26 06:43:13 +00:00
|
|
|
$tiddler=<<qualify "$:/state/Excise/NewTitle">>
|
2016-04-22 07:36:29 +00:00
|
|
|
/>
|
|
|
|
<$action-deletetiddler
|
|
|
|
$tiddler=<<dropdown-state>>
|
|
|
|
/>
|
|
|
|
<<lingo Caption/Excise>>
|
|
|
|
</$button>
|
2016-04-26 06:43:13 +00:00
|
|
|
\end
|
2016-04-22 07:36:29 +00:00
|
|
|
|
2016-04-26 06:43:13 +00:00
|
|
|
<$macrocall $name="body" config-title=<<qualify "$:/state/Excise/">>/>
|