summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Thoeny <web-hurd@gnu.org>2001-09-15 19:19:17 +0000
committerPeter Thoeny <web-hurd@gnu.org>2001-09-15 19:19:17 +0000
commitf53cb61c08649618587228ced63e1ddd5d68ddd2 (patch)
tree8db025a62c7e3cfb405bc64a4b8a94721b607a6c
parentdf9cb1c13a58fe0d4d7ab797f8356324e0f84142 (diff)
none
-rw-r--r--TWiki/TWikiTemplates.mdwn17
1 files changed, 9 insertions, 8 deletions
diff --git a/TWiki/TWikiTemplates.mdwn b/TWiki/TWikiTemplates.mdwn
index 80513101..80abe6f3 100644
--- a/TWiki/TWikiTemplates.mdwn
+++ b/TWiki/TWikiTemplates.mdwn
@@ -71,7 +71,7 @@ All common parts are defined in a master template, <code>**twiki.tmpl**</code>,
## <a name="Types_of_Template"> Types of Template </a>
- There are two types of templates:
+There are two types of templates:
* **HTML Page Templates**: Defines layout of %WIKITOOLNAME% pages
* **Template Topics**: Defines default text when you create a new topic
@@ -114,9 +114,9 @@ Template topics define the default text for new topics. There are three types of
> </tr>
> </table>
- All template topics are located in the %TWIKIWEB% web. The [[WebTopicEditTemplate]] can be overloaded. The following search order applies when you create a new topic:
+All template topics are located in the %TWIKIWEB% web. The [[WebTopicEditTemplate]] can be overloaded. The following search order applies when you create a new topic:
-1. The topic name specified by the `templatetopic` parameter.
+1. The topic name specified by the `templatetopic` CGI parameter.
2. WebTopicEditTemplate in the current web.
3. WebTopicEditTemplate in the %TWIKIWEB% web.
@@ -126,7 +126,7 @@ Here is an example for creating new topics based on a specific template topic:
<form action="%SCRIPTURLPATH%/edit%SCRIPTSUFFIX%/%WEB%/" name="new">
<ul>
- <li> New example topic: <input name="topic" size="22" type="text" value="ExampleTopic%SERVERTIME{$year$mo$day}%" /> <input name="templatetopic" type="hidden" value="ExampleTopicTemplate" /> <input type="submit" value="Create" /> (date format is YYYYMMDD) </li>
+ <li> New example topic: <input name="topic" size="23" type="text" value="ExampleTopic%SERVERTIME{$yearx$mox$day}%" /> <input name="templatetopic" type="hidden" value="ExampleTopicTemplate" /> <input type="submit" value="Create" /> (date format is <nop>YYYYxMMxDD) </nop></li>
</ul>
</form>
@@ -135,10 +135,11 @@ Above form asks for a topic name. A hidden input tag of name "templatetopic" spe
<pre>
&amp;lt;form name="new" action="%<nop>SCRIPTURLPATH%/edit%<nop>SCRIPTSUFFIX%/%<nop>WEB%/"&amp;gt;
* New example topic:
- &amp;lt;input type="text" name="topic" value="ExampleTopic%<nop>SERVERTIME{$year$mo$day}%" size="22"&amp;gt;
- &amp;lt;input type="hidden" name="templatetopic" value="ExampleTopicTemplate"&amp;gt;
- &amp;lt;input type="hidden" name="onlywikiname" value="on"&amp;gt;
- &amp;lt;input type="submit" value="Create"&amp;gt; (date format is YYYYMMDD)
+ &amp;lt;input type="text" name="topic" value="ExampleTopic%<nop>SERVERTIME{$yearx$mox$day}%" size="23" /&amp;gt;
+ &amp;lt;input type="hidden" name="templatetopic" value="ExampleTopicTemplate" /&amp;gt;
+ &amp;lt;input type="hidden" name="onlywikiname" value="on" /&amp;gt;
+ &amp;lt;input type="submit" value="Create" /&amp;gt;
+ (date format is &amp;lt;nop&amp;gt;YYYYxMMxDD)
&amp;lt;/form&amp;gt;
</nop></nop></nop></nop></pre>