Diff: Help/AppendTextPlugin

Note: You are viewing an old revision of this page. View the current version.

Differences between version 4 and previous revision of Help/AppendTextPlugin.

Other diffs: Previous Major Revision, Previous Author

Newer page: version 4 Last edited on 22 May 2014 3:01 by harold Revert
Older page: version 3 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**  
+| 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>  

version 4

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

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: