diff options
Diffstat (limited to 'TWiki')
-rw-r--r-- | TWiki/TWikiTemplates.mdwn | 17 |
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> &lt;form name="new" action="%<nop>SCRIPTURLPATH%/edit%<nop>SCRIPTSUFFIX%/%<nop>WEB%/"&gt; * New example topic: - &lt;input type="text" name="topic" value="ExampleTopic%<nop>SERVERTIME{$year$mo$day}%" size="22"&gt; - &lt;input type="hidden" name="templatetopic" value="ExampleTopicTemplate"&gt; - &lt;input type="hidden" name="onlywikiname" value="on"&gt; - &lt;input type="submit" value="Create"&gt; (date format is YYYYMMDD) + &lt;input type="text" name="topic" value="ExampleTopic%<nop>SERVERTIME{$yearx$mox$day}%" size="23" /&gt; + &lt;input type="hidden" name="templatetopic" value="ExampleTopicTemplate" /&gt; + &lt;input type="hidden" name="onlywikiname" value="on" /&gt; + &lt;input type="submit" value="Create" /&gt; + (date format is &lt;nop&gt;YYYYxMMxDD) &lt;/form&gt; </nop></nop></nop></nop></pre> |