mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Merge branch 'tiddlywiki-com'
This commit is contained in:
commit
d5a7425458
@ -1,22 +1,18 @@
|
|||||||
created: 20160810122928198
|
created: 20160810122928198
|
||||||
modified: 20160810122934291
|
modified: 20230505104214168
|
||||||
tags: [[Editor toolbar]]
|
tags: [[Editor toolbar]]
|
||||||
title: Using Excise
|
title: Using Excise
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
|
||||||
! Excise text
|
! Excise text
|
||||||
From the EditorToolbar you can export selected text to a new tiddler and insert a [[link|Linking in WikiText]] [[Transclusion]] or [[macro|Macros]] in its place. Click ''Excise text'' (<<.icon $:/core/images/excise>>), input name of the new tiddler, and choose excise method.
|
From the EditorToolbar you can export selected text to a new tiddler and insert a [[link|Linking in WikiText]] [[Transclusion]] or [[macro|Macros]] in its place. Click ''Excise text'' (<<.icon $:/core/images/excise>>), input name of the new tiddler, and choose excise method.
|
||||||
|
|
||||||
!! How to excise text
|
!! How to excise text
|
||||||
# Highlight the relevant piece of text
|
# Highlight the relevant piece of text
|
||||||
#Click ''Excise text'' (<<.icon $:/core/images/excise>>)
|
# Click ''Excise text'' (<<.icon $:/core/images/excise>>)
|
||||||
# Give the new tiddler a title.
|
# Give the new tiddler a title.
|
||||||
# Chosse if the new tiddler will be tagged with the title of the current tiddler''*''.
|
# Chosse if the new tiddler will be tagged with the title of the current tiddler (see note below).
|
||||||
# Choose replacing method. [[link|Linking in WikiText]] [[Transclusion]] or [[macro|Macros]].
|
# Choose replacing method: [[link|Linking in WikiText]], [[transclusion|Transclusion]], or [[macro|Macros]].
|
||||||
|
|
||||||
# Click the ''{{$:/language/Buttons/Excise/Caption/Excise}}'' button
|
# Click the ''{{$:/language/Buttons/Excise/Caption/Excise}}'' button
|
||||||
|
|
||||||
|
<<.strong Note!>> If you choose the option to `Tag new tiddler with the title of this tiddler`, the new tiddler will be tagged with the name of the current tiddler before it has been edited. If you have changed the title of the current tiddler, save it first and edit it again to perform excision with this option.
|
||||||
|
|
||||||
''*NOTE:'' If you choose tic the option to `Tag new tiddler with the title of this tiddler`. The tag will be the'' draft title''. If you create a new tiddler (or clone an existing one), the draft title and the tag, will be `New Tiddler`. __You have to save the tiddler and re-edit it to get the new title as tag.__
|
|
||||||
|
21
editions/tw5.com/tiddlers/macros/TranslinkMacro.tid
Normal file
21
editions/tw5.com/tiddlers/macros/TranslinkMacro.tid
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
created: 20230505090333510
|
||||||
|
modified: 20230505090333510
|
||||||
|
tags: Macros [[Core Macros]]
|
||||||
|
title: translink Macro
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
caption: translink
|
||||||
|
|
||||||
|
The <<.def translink>> [[macro|Macros]] returns a frame with the title and [[transcluded|Transclusion]] text of a chosen tiddler. The title links to the transcluded tiddler.
|
||||||
|
|
||||||
|
If the chosen tiddler is missing, an appropriate message will be shown instead of the transcluded text.
|
||||||
|
|
||||||
|
This is the default macro used when [[excising|Using Excise]] text and replacing it with a macro.
|
||||||
|
|
||||||
|
!! Parameters
|
||||||
|
|
||||||
|
; title
|
||||||
|
: The title of the tiddler to be transcluded
|
||||||
|
; mode
|
||||||
|
: The mode of the [[transclude widget|TranscludeWidget]] used inside the macro, defaults to `block`
|
||||||
|
|
||||||
|
<<.macro-examples "translink">>
|
9
editions/tw5.com/tiddlers/macros/examples/translink.tid
Normal file
9
editions/tw5.com/tiddlers/macros/examples/translink.tid
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
created: 20230505092952569
|
||||||
|
modified: 20230505092952569
|
||||||
|
tags: [[translink Macro]] [[Macro Examples]]
|
||||||
|
title: translink Macro (Examples)
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
<$macrocall $name=".example" n="1" eg="""<<translink "Philosophy of Tiddlers">>"""/>
|
||||||
|
<$macrocall $name=".example" n="2" eg="""<<translink "Philosophy of Tiddlers" inline>>"""/>
|
||||||
|
<$macrocall $name=".example" n="3" eg="""<<translink Foo>>"""/>
|
@ -13,7 +13,7 @@ Excises the currently selected text into a new tiddler and replaces it with a li
|
|||||||
|!Name |!Description |
|
|!Name |!Description |
|
||||||
|title |Title of the new tiddler the selected content is excised to|
|
|title |Title of the new tiddler the selected content is excised to|
|
||||||
|type |Type of the replacement to be inserted: Can be one of <<.value "transclude">>, <<.value "link">> or <<.value "macro">>|
|
|type |Type of the replacement to be inserted: Can be one of <<.value "transclude">>, <<.value "link">> or <<.value "macro">>|
|
||||||
|macro |In case //type=<<.value "macro">>//, specifies the name of the macro to be inserted. The title of the new tiddler is provided as the first parameter to the macro. Defaults to the ''translink'' macro|
|
|macro |In case //type=<<.value "macro">>//, specifies the name of the macro to be inserted. The title of the new tiddler is provided as the first parameter to the macro. Defaults to the [[translink macro|translink Macro]]|
|
||||||
|tagnew |If '<<.value "yes">>', will tag the new tiddler with the title of the tiddler currently being edited |
|
|tagnew |If '<<.value "yes">>', will tag the new tiddler with the title of the tiddler currently being edited |
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -529,3 +529,5 @@ HuanC Fu, @hffqyd, 2023/03/03
|
|||||||
Michelle Saad, @michsa, 2023-03-08
|
Michelle Saad, @michsa, 2023-03-08
|
||||||
|
|
||||||
Yukai Chou, @muzimuzhi, 2023-04-07
|
Yukai Chou, @muzimuzhi, 2023-04-07
|
||||||
|
|
||||||
|
Carmine Guida, @carmineguida, 2023-05-17
|
||||||
|
Loading…
Reference in New Issue
Block a user