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-06-04 12:25] – andi | devel:templates [2021-03-03 09:42] (current) – [Getting Started] Aleksandr | ||
---|---|---|---|
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 m are also not allowed in the template name defined in '' | ||
* 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 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.1591266324.txt.gz · Last modified: 2020-06-04 12:25 by andi