namespace_templates
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
namespace_templates [2017-09-02 16:50] – [Replacement patterns] andi | namespace_templates [2019-11-09 04:22] – Dr-Yukon | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Namespace Templates ====== | ====== Namespace Templates ====== | ||
- | Sometimes you might want to have every page in a certain namespace based on a common skeleton. For example, in the '' | + | Dokuwiki supports scaffolding. |
When a page is created, [[DokuWiki]] looks up whether a template file exists and it shows it within the editor window. The templates therefore are .txt files and should contain wiki markup. | When a page is created, [[DokuWiki]] looks up whether a template file exists and it shows it within the editor window. The templates therefore are .txt files and should contain wiki markup. | ||
===== Template files ===== | ===== Template files ===== | ||
+ | |||
Two kinds of template files can be used: | Two kinds of template files can be used: | ||
Line 39: | Line 40: | ||
^ @MAIL@ | ^ @MAIL@ | ||
^ @DATE@ | ^ @DATE@ | ||
- | ^ %a %d-%m-%y etc. | e.g. Thu 06-12-12. [[phpfn>Strftime]] placeholders are replaced by page creation time | | + | ^ %a %d-%m-%y etc. | e.g. Thu 06-12-12. [[phpfn>strftime]] placeholders are replaced by page creation time | |
^ %% | a literal '' | ^ %% | a literal '' | ||
- | In addition you may also use any [[phpfn> | ||
===== Still editing templates via wiki===== | ===== Still editing templates via wiki===== | ||
You can't edit the '' | You can't edit the '' | ||
- | * the easiest is using the [[plugin: | + | * the easiest is using the [[plugin: |
* or by setting up through symbolic links | * or by setting up through symbolic links | ||
Line 74: | Line 74: | ||
===== Plugins ===== | ===== Plugins ===== | ||
+ | |||
Additional template features are implemented by plugins. | Additional template features are implemented by plugins. | ||
Line 81: | Line 82: | ||
* '' | * '' | ||
* '' | * '' | ||
- | * and variants for deeper namespaces too and some other templates e.g. for '' | + | * and variants for deeper namespaces too and some other templates e.g. for '' |
+ | All these plugins are only editable via the file system. | ||
* [[plugin: | * [[plugin: | ||
Line 88: | Line 90: | ||
* [[plugin: | * [[plugin: | ||
- | |||
===== @GROUPS@ support ===== | ===== @GROUPS@ support ===== |
namespace_templates.txt · Last modified: 2023-08-24 11:25 by 212.201.117.6