Diff: Help/AppendTextPlugin

Differences between current version and predecessor to the previous major change of Help/AppendTextPlugin.

Other diffs: Previous Revision, Previous Author

Newer page: version 6 Last edited on 17 January 2022 3:00 by harold
Older page: version 5 Last edited on 9 September 2007 0:16 by harold Revert
@@ -1,34 +1,70 @@
-AppendText is a Help:WikiPlugin to automatically add text to a page. For general  
-usage better use the AddCommentPlugin. 
+**~ AppendText** is a [[ Help:WikiPlugin|plugin]] to automatically add text to a page. For general  
+usage better use the [[Help: AddCommentPlugin|AddComment]] plugin
  
-<verbatim>  
-<?plugin AppendText ? >  
-</verbatim>  
+{{{  
+<< AppendText arguments> >  
+}}}  
  
-!! Plugin Arguments  
-__page__: |  
- Append to which page. Default: Current page.  
-__s__: |  
- What text to add. Note: A \n is always prepended.  
-__before__: |  
- (Optional) Add before the matching line beginning with before.  
-__after__: |  
- (Optional) Add after the matching line beginning with after.  
+== Arguments ==  
  
-!! Examples  
+{| class="bordered"  
+|-  
+ ! Argument  
+ ! Description  
+! Default value  
+|-  
+| **page**  
+| Append to which page  
+| Current page.  
+|-  
+| **pages**  
+| Append to multiple pages  
+| none  
+|-  
+| **s**  
+| What text to add. Note: A \n is always prepended.  
+|  
+|-  
+| **before**  
+| (Optional) Add before the matching line beginning with before.  
+|  
+|-  
+| **after**  
+| (Optional) Add after the matching line beginning with after.  
+|  
+|-  
+| **redirect**  
+| Boolean. If true, redirect to modified page.  
+| false  
+|}  
  
-Add from a list of all available plugins one to the current page.  
-<verbatim>  
- <?plugin WikiFormRich action =AppendText buttontext ="AddPlugin"  
- pulldown[] name =s text ="Plugins: " value=<!plugin-list BackLinks page=WikiPlugin !>  
- ?>  
-</verbatim>  
+== Examples == 
  
-Add from a list of all available Categories to the current page.  
-<verbatim >  
- <? plugin WikiFormRich action=AppendText buttontext="AddCategory"  
- pulldown[] name=s text="Categories: " value=<!plugin-list TitleSearch s=Category !>  
- ? >  
-</verbatim
+=== Add from a list of all available plugins one to the current page ===  
+  
+{{{  
+<<WikiFormRich action=AppendText buttontext="AddPlugin"  
+ pulldown[] name=s text="Plugins: " value=<!plugin-list BackLinks page=CategoryWikiPlugin ! >  
+>>  
+}}}  
+  
+ <<WikiFormRich action=AppendText buttontext="AddPlugin"  
+ pulldown[] name=s text="Plugins: " value=<! plugin-list BackLinks page=CategoryWikiPlugin !>  
+>>  
+  
+=== Add from a list of all available Categories to the current page ===  
+  
+{{{  
+<< WikiFormRich action=AppendText buttontext="AddCategory"  
+ pulldown[] name=s text="Categories: " value=<!plugin-list TitleSearch s=Category !>  
+>>  
+}}}  
+  
+<<WikiFormRich action=AppendText buttontext="AddCategory"  
+ pulldown[] name=s text="Categories: " value=<!plugin-list TitleSearch s=Category !>  
+>>  
+  
+<noinclude
 ---- 
-PhpWikiDocumentation 
+[[ PhpWikiDocumentation]] [[CategoryWikiPlugin]]  
+</noinclude>  

current version

AppendText is a plugin to automatically add text to a page. For general usage better use the AddComment plugin.

<<AppendText arguments>>

Arguments

Argument

Description

Default value

page

Append to which page

Current page.

pages

Append to multiple pages

none

s

What text to add. Note: A \n is always prepended.

before

(Optional) Add before the matching line beginning with before.

after

(Optional) Add after the matching line beginning with after.

redirect

Boolean. If true, redirect to modified page.

false

Examples

Add from a list of all available plugins one to the current page

<<WikiFormRich action=AppendText buttontext="AddPlugin"
               pulldown[] name=s text="Plugins: " value=<!plugin-list BackLinks page=CategoryWikiPlugin !>
>>
Plugins:  

Add from a list of all available Categories to the current page

<<WikiFormRich action=AppendText buttontext="AddCategory"
               pulldown[] name=s text="Categories: " value=<!plugin-list TitleSearch s=Category !>
>>
Categories: