X-Git-Url: https://git.openafs.org/?p=openafs-wiki.git;a=blobdiff_plain;f=TWiki%2FTWikiTemplates.mdwn;h=6bfc9a125fbdf00d2de59bb5a01ca63c79f7f672;hp=311957574a6837f905d94684947b752bbf9a908e;hb=8b9dfba6ac0cd36fea2d771e7c452338b2fd4884;hpb=e23c8844b802863b9e6c663fcc371d4595c01ba1 diff --git a/TWiki/TWikiTemplates.mdwn b/TWiki/TWikiTemplates.mdwn index 3119575..6bfc9a1 100644 --- a/TWiki/TWikiTemplates.mdwn +++ b/TWiki/TWikiTemplates.mdwn @@ -211,7 +211,38 @@ The above form asks for a topic name. A hidden input tag named **templatet (date format is YYYYxMMxDD) -The **onlywikiname** parameter enforces [[WikiWords]] for topic names. The **topicparent** parameter sets the topic parent to the topic where the form is located. +The `edit` scipt understands the following parameters, typically supplied by HTML input fields: + +> +> +> +> +> +> +> +> +> +> +> +> +> +> +> +> +> +> +> +> +> +> +> +> +> +> +> +> +> +>
Parameter: Description:
topic Name of topic to create. Can be set in a text field, or is set programmatically (e.g. with a sequential number)
onlywikiname If set, TWiki will complain if the topic name is not a [[Main/WikiWord]]
templatetopic The name of the template topic, e.g. topic used to copy the initial content
topicparent Sets the parent topic
TopicClassification Assuming the template topic has a form with a field called "TopicClassification", it will set the value of the field
anyname Any parameter can passed to the new topic; if the template topic contains %URLPARAM{"anyname"}%, it will be replaced by its value
%T% **TIP:** You can use the `%WIKIUSERNAME%` and `%DATE%` variables in your topic templates to include the signature of the person creating a new topic. The variables are expanded into fixed text when a new topic is created. The standard signature is:
**-- %WIKIUSERNAME% - %DATE%** @@ -313,4 +344,4 @@ With URL: **.../bin/oops/Sandbox/TestTopic2?template=oopstest&param1=W - A drawback of referring to a master template is that you can only test a template from within TWiki, where the include variables are resolved. In the previous system, each template was a structurally complete HTML document with a `.tmpl` filename extension - it contained unresolved `%VARIABLES%`, but could still be previewed directly in a browser. --- [[PeterThoeny]] - 01 Feb 2003
-- [[MikeMannix]] - 14 Sep 2001
-- TWiki:Main/DavidLeBlanc - 11 Mar 2002 +-- TWiki:Main.PeterThoeny - 16 Dec 2003 %BR% -- TWiki:Main.MikeMannix - 14 Sep 2001 %BR% -- TWiki:Main.DavidLeBlanc - 11 Mar 2002