Home | Sitemap | Recent Changes | Login

SPF Logo

Sender Policy Framework

Templates

The sub-pages of this page are offered as templates when you create a new page. To create a new template, simply create a new sub-page from here.

Existing templates

Templates with placeholders

You can use placeholders in templates. When using a template, the user is then prompted to fill in the placeholders before they get to the usual page editing form with the template text.

Defining placeholders

The placeholders must be defined in the template like this:

  #def $<placeholder>
  #def $<placeholder> <parameter>=<value> ...

<placeholder> is an arbitrary symbolic placeholder name consisting of letters, digits, and underscores, but no accented or punctuation characters or spaces.

The following <parameter>s are supported:

title="<label>"
Defines a label for the placeholder's input form field. (By default, the placeholder's symbolic name is displayed.)
rows=<rows>
cols=<columns>
Creates a multi-line input field with the specified dimensions instead of a single-line input field.
maxlength=<maxlength>
Defines the maximum number of characters that can be entered (applies to single-line input fields only).
regex="<regular expression>"
Defines a regular expression (using Perl syntax) to which the entered value must match.
required
Specifies that a non-empty value must be entered for the placeholder.

Using placeholders

Simply type $<placeholder> in the template text; for instance $address or $url.


Edit text of this page | View other revisions
Last edited 2010-06-29 20:02 (UTC) by Julian Mehnle (diff)