-StencilsPackage which supports style MediaWiki templates.
|
+Stencils Package works exactly like MediaWiki's templates (e.g., at wikipedia.org). |
|
-The package seems to copy the contents of the stencil into a page when used i this {{StencilName|??}} way. |
+--- |
+ |
+A stencil prompts a user to enter information and can be very useful in situations where you want a standard appearance. |
+ |
+It is created with the layout and styling you want it to have when it is to be used in a page or wherever, and may contain a combination of text, attachments and prompted input areas. |
+ |
+The prompted input areas are surrounded by 3 parentheses: |
+~np~{{{ }}} ~/np~ |
+ |
+Once saved, only the prompted areas are shown for each stencil preview (ie on the stencils tab behind a wiki page that you are editing). |
+ |
+A user can cut and paste a stencil to wherever they want to use it. When the page (or other content) is saved the stencil pulls all the layout and styling options into how this stencil looks. |
+ |
+ |
+!! Creation |
+ |
+In the Stencils drop-down menu, choose Create Stencil. |
+ |
+Enter a title, and description (optional) and then format your stencil. |
+ |
+eg |
+ |
+Title:Contact Details |
+ |
+Description: |
+ |
+~np~||{{{Name}}}|{{{Phone}}}~/np~ |
+~np~{{{Address}}}||~/np~ |
+ |
+Save. |
+ |
+ |
+!! Preview |
+ |
+~np~{{Contact Details|~/np~ |
+~np~|Name=~/np~ |
+~np~|Phone=~/np~ |
+~np~|Address=~/np~ |
+~np~}}~/np~ |
+ |
+ |
+!! Appearance |
+ |
+||Joanne Bloggs|555 645 8967|4 Merry-go-round Way, On Your Horse, Fantasy Island|| |
+ |
+ |
+!! Notes |
+* Stencils do not allow spaces between words inside the parentheses, so use an underscore instead. |
+* Neither do the user prompt inputs support non-english language characters, so you will need to use an anglicized form, where one exists. |
+* Html character encoding also does not work (using FCKeditor). |
+* Each input prompt needs to be unique within the stencil ie. only one {{{Name}}}, or one {{{Phone}}} (unless you want the same data filled in, in more than one place). ie For different {{{Name}}} prompts you could define {{{President_Name}}}, {{{Treasurer_Name}}} and {{{Secretary_Name}}} |
+ |
+ |
+!! see also |
+* [http://en.wikipedia.org/wiki/Wikipedia:Template_documentation] |
+* [http://en.wikipedia.org/wiki/Template:US_state] |