1 $Id: README,v 1.1 2000-06-18 16:05:34 ahollosi Exp $
3 PhpWiki distinguishes between four different templates:
5 - template for browsing pages (default: browse.html)
6 This template is used when viewing Wiki pages.
8 - template for editing pages (default: editpage.html)
9 This template is used when users edit a page by clicking on
12 - template for editing references (default: editlinks.html)
13 This template is used when users edit references of a page
14 by clicking on the EditLinks link on the EditText page.
16 - template for plain messages from PhpWiki (default: message.html)
17 This template is used when displaying search results, or when
18 displaying error messages.
21 The location of the template files is defined in wiki_config.php3
22 The specification is relative to the index.php3 script.
24 Template files are regular HTML files, which contain special
25 placeholders. Placeholders are surrounded by '###'.
26 You must not use '###' for other purposes.
29 Following placeholders are provided by PhpWiki:
32 This is the URL of the main PhpWiki script.
33 All URL's referring to the Wiki itself should use this placeholder.
36 The page title. Any special HTML characters are replaced by their
37 entities. Do not use this placeholder in links. Use ###PAGEURL###
41 The actual page content. This is either the Wikipage itself,
42 the search result, or a message text.
44 ###ALLOWEDPROTOCOLS###
45 Protocols allowed for external links and references.
46 Default: http|https|mailto|ftp|news|gopher
49 The following placeholders are not available for the 'MESSAGE' template:
52 Page title encoded for use in URLs.
55 Date when the page was last modified.
58 Author of latest modification. Usually this is the hostname or
62 Revision number of the page.
63 Note: this is also used for detecting concurrent updates to a page.
64 See hidden input field in EDITPAGE template for how to use it.
67 Special placeholder. Should only be used in EDITPAGE template.
68 If EditCopy link should be shown, then ###IFCOPY### is ignored.
69 If EditCopy should not be shown, the rest of the line is deleted.
73 ###1###, ###2###, ....
74 Placeholder for references. Up to NUM_LINKS placeholders will be
75 substituted. NUM_LINKS is defined in wiki_config.php3
81 <A HREF="###SCRIPTURL###">the entry (default) page</A>
82 <A HREF="###SCRIPTURL###?###PAGEURL###">the current page</A>
83 <A HREF="###SCRIPTURL###?FindPage">the FindPage page</A>
84 <head><title>PhpWiki Page: ###PAGE###</title></head>
86 see default templates for more examples.