User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

harlowe:click-prepend [2017/10/09 20:39] (current)
Line 1: Line 1:
 +**(click-prepend:​ // [[harlowe:​HookName|HookName]] or [[harlowe:​String|String]]//​) -> //​[[harlowe:​Changer|Changer]]//​**
 +A special shorthand combination of the [[harlowe:​click|(click:​)]] and [[harlowe:​prepend|(prepend:​)]] macros, this allows you to prepend
 +text to a hook or [[harlowe:​string|string]] when it's clicked. ''​%%(click:​ ?​1)[(prepend:?​1)[...]]%%''​
 +can be rewritten as ''​%%(click-prepend:​ ?​1)[...]%%''​.
 +=== Example usage: ===
 +Who stands with me?
 +(click-prepend:​ "?"​)[ but my shadow].
 +=== See also: ===
 +[[harlowe:​click-replace|(click-replace:​)]],​ [[harlowe:​click-append|(click-append:​)]]
harlowe/click-prepend.txt ยท Last modified: 2017/10/09 20:39 (external edit)