aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/cutpaste.mdwn
diff options
context:
space:
mode:
authorWilliam Uther <willu@cse.unsw.edu.au>2008-09-11 17:05:51 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-09-11 17:05:51 -0400
commitc69a7f758590c91bd137a8d1cfa99f37bf28045a (patch)
tree16cbc730e9b63528b6a608856e8221b4fba40390 /doc/plugins/cutpaste.mdwn
parent4f0ac7fe59c196a602e07cc6c4abfc248999ec6b (diff)
downloadikiwiki-c69a7f758590c91bd137a8d1cfa99f37bf28045a.tar
ikiwiki-c69a7f758590c91bd137a8d1cfa99f37bf28045a.tar.gz
patch plugin documentation to refer to directive pages
Diffstat (limited to 'doc/plugins/cutpaste.mdwn')
-rw-r--r--doc/plugins/cutpaste.mdwn55
1 files changed, 3 insertions, 52 deletions
diff --git a/doc/plugins/cutpaste.mdwn b/doc/plugins/cutpaste.mdwn
index a5dff08ab..90c5ccfb9 100644
--- a/doc/plugins/cutpaste.mdwn
+++ b/doc/plugins/cutpaste.mdwn
@@ -1,55 +1,6 @@
[[!template id=plugin name=toggle author="[[Enrico]]"]]
[[!tag type/chrome]]
-With this plugin you can store and recall pieces of text. It defines three
-preprocessing commands:
-
- * `\[[!cut id=name text="text"]]` memorizes the text allowing to recall it
- using the given ID. The text being cut is not included in the output.
- * `\[[!copy id=name text="text"]]` memorizes the text allowing to recall it
- using the given ID. The text being cut *is* included in the output.
- * `\[[!paste id=name]]` is replaced by the previously memorized text.
-
-The text being cut, copied and pasted can freely include wiki markup, including
-more calls to cut, copy and paste.
-
-You do not need to memorize the text before using it: a cut directive can
-follow the paste directive that uses its text. In fact, this is quite useful
-to postpone big blocks of text like long annotations and have a more natural
-flow. For example:
-
- This plugin provides three directives:
-
- * \[[!toggle id="cut" text="cut"]] that cuts text
- * \[[!toggle id="copy" text="copy"]] that copies text
- * \[[!toggle id="paste" text="paste"]] that pastes text
-
- \[[!toggleable id="cut" text="\[[!paste id=cutlongdesc]]"]]
- \[[!toggleable id="copy" text="\[[!paste id=copylongdesc]]"]]
- \[[!toggleable id="paste" text="\[[!paste id=pastelongdesc]]"]]
-
- \[...some time later...]
-
- \[[!cut id=cutlongdesc text="""
- blah blah blah
- """]]
- \[[!cut id=copylongdesc text="""
- blah blah blah
- """]]
- \[[!cut id=pastelongdesc text="""
- blah blah blah
- """]]
-
-This can potentially be used to create loops, but ikiwiki is clever and breaks
-them.
-
-Since you can paste without using double quotes, copy and paste can be used to
-nest directive that require multiline parameters inside each other:
-
- \[[!toggleable id=foo text="""
- \[[!toggleable id=bar text="\[[!paste id=baz]]"]]
- """]]
-
- \[[!cut id=baz text="""
- multiline parameter!
- """]]
+This plugin implements the [[ikiwiki/directive/cut]],
+[[ikiwiki/directive/copy]] and [[ikiwiki/directive/paste]] [[ikiwiki/directive]]s.
+With these directives you can store and recall pieces of text.