DokuWiki

It's better when it's simple

Outils pour utilisateurs

Outils du site


fr:devel:template_info

Ceci est une ancienne révision du document !


Thème - Schéma d'Information

Chaque thème se doit de fournir des informations de base à son sujet. Cela se fait au travers du fichier template.info.txt located in the template directory.

Here's an example how such a file should look like. Voici un exemple de ce à quoi ce fichier devrait ressembler.

lib/tpl/example/template.info.txt
base     example
author   My Full Name
email    me@example.com
date     2012-09-08
name     Example Template
desc     This is just an Example of how a template description looks like
url      https://www.dokuwiki.org/template:example
Parameter Description
base The technical name of the template. Extension Manager will install it into this directory.1). See also template naming conventions
author The full name of the Template author
email E-Mail to contact the template author about this template
date The date of the last update of this template in YYYY-MM-DD form. Don't forget to update this when you update your template! 2)
name The human readable name of the template
desc A description of what the template does and look like
url URL to where more info about the template is available
1)
It is important to have a unique base field value (i.e. template name) or an already existing template with that name could be overwritten.
2)
This date should be equal to the “Last updated on” date on the templates page in the repository. This is needed for the automated update flagging used by the Extension Manager introduced in release Ponder Stibbons
fr/devel/template_info.1463302772.txt.gz · Dernière modification : 2016-05-15 10:59 de Digitalin

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki