Templating System Usage

A few things to know to create a template

The templating system helps you create uniform documents for W3C pages, or helps you to prepare documents for particular circumstances (Last Call, etc).

New templates must be created in a directory which is called Templates.

General usage

%%variable-name%%

When the template is called, a form will be created and displayed with the value of variable-name to input. We suggest that you choose a variable name which has a meaning. For example:

%%Your_email_address%%

The form will contain an entry with Your_email_address and an input field.

%%yyyy%%

When the variable is exactly yyyy, the form will show an input field prefilled with the current year. For example, "1969"

%%mm%%

The form will show an input field prefilled with the month as two digits. For example, "02" for February

%%mmm%%

The form wil show an input field prefilled with the month in a 3-letter format. For example, "Feb" for February

%%dd%%

The form will show an input field prefilled with the date. For example, "16"

%%w3clogo%%

Add the W3C logo

Somes examples of templates.


Valid XHTML 1.0!
Created Date: 2003-08-14 by Karl Dubost
Last modified $Date: 2012/09/28 08:50:20 $ by $Author: bbos $

Copyright © 2000-2003 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply. Your interactions with this site are in accordance with our public and Member privacy statements.