devel:templates
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
devel:templates [2020-04-07 20:23] – desbest | devel:templates [2023-09-24 01:08] (current) – Klap-in | ||
---|---|---|---|
Line 13: | Line 13: | ||
- When your template is ready, consider [[# | - When your template is ready, consider [[# | ||
- | ===Template naming conventions=== | + | === Template naming conventions === |
A valid template name (directory): | A valid template name (directory): | ||
Line 20: | Line 20: | ||
* DokuWiki' | * DokuWiki' | ||
* Using underscore will also give a [[: | * Using underscore will also give a [[: | ||
+ | * Spaces '' | ||
* If the same name is used by two different templates | * If the same name is used by two different templates | ||
* they are mutually exclusive and inherent incompatible, | * they are mutually exclusive and inherent incompatible, | ||
- | * furthermore only one of them can have a template homepage on dokuwiki.org. | + | * furthermore only one of them can have a template homepage on [[: |
**It is important to have a unique base field value (i.e. template name) in [[devel: | **It is important to have a unique base field value (i.e. template name) in [[devel: | ||
Line 30: | Line 31: | ||
Templates should follow the following directory structure (all paths are relative to the template directory). | Templates should follow the following directory structure (all paths are relative to the template directory). | ||
- | CSS files are specified in the '' | + | CSS files are specified in the '' |
* ''< | * ''< | ||
Line 98: | Line 99: | ||
==== Automated Housekeeping ==== | ==== Automated Housekeeping ==== | ||
- | Almost at the bottom of the default template' | + | Almost at the bottom of the default template' |
==== ' | ==== ' | ||
Line 108: | Line 109: | ||
Include Hooks are a simple way to add some static content to your [[: | Include Hooks are a simple way to add some static content to your [[: | ||
- | The DokuWiki' | + | The DokuWiki' |
===== Converting existing templates ===== | ===== Converting existing templates ===== | ||
Line 144: | Line 145: | ||
Uploads are not allowed on dokuwiki.org, | Uploads are not allowed on dokuwiki.org, | ||
- | ===== See Also ===== | + | |
- | If you are converting a wordpress theme to a dokuwiki template, it's worth looking at [[devel: | + |
devel/templates.1586283781.txt.gz · Last modified: 2020-04-07 20:23 by desbest