Skin Template Tokens

Placeholders expanded by Foswiki scripts when generating output


Template Tokens are written exactly like Foswiki macros, but they are local to the script / template expansion process and can not be used elswhere in Foswiki topics. Each Foswiki script might have it's own unique set of tokens. A token that is expanded by the view script would most likely not be expanded by the attach script.

Unlike Foswiki Macros, tokens do not support {...} parameters. They are merely a placeholder that is replaced by the script.

TIP Note: The SEARCH macro also uses tokens in the search templates, %however they are in the format of $token.

Foswiki scripts

attach script


change script

%AUTHOR% The web qualified WikiName of the change
$wikiname The <nop> escaped WikiName of the change

edit script


manage script


oops script


preview script


rdiff script


register script

Sent to new user to validate the email address.
Email to the Wiki Administrator that the registernotify email failed, suggesting fradulent registration. User account not removed.
Email to the Wiki Administrator that the registernotify email failed, and the registration was remived
Email to Wiki Administrator that registration completed successfully
Email to new user that registration completed successfully

%SPLIT% Used to divide the NewUserTemplate topic into 3 sections: header, repeating keys, and footer. Not referenced in skin templates
%FIRSTLASTNAME% First and last name of the user registering.
%WIKINAME% Wikiname of the new user
%EMAILADDRESS% Email address of the new user
%FORMDATA% Registration form data, not expanded in registerconfirm.tmpl
%LOGINNAME% Login name used with external authentication
%INTRODUCTION% Unused. If passed in as a URL parm Introduction on the register request, will be passed on to the email message.
%VERIFICATIONCODE% The verification password send in the registerconfirm.tmpl use to confirm the email address is valid
%PASSWORD% User password - not used in current templates. Password is expanded in the %FORMDATA% depending upon the setting of {Register}{HidePasswd} in LocalSite.cfg

rename script

Prompts for renaming or moving an attachment
Prompts for newattachment, newtopic, newweb, and the submit button
Prompts rename/move or cancel
Promps for renamed topic name and delete or cancel
Prompts for new webname and Rename/Move or cancel
Accepts template name from query?


rest script

ALERT! rest does not use any templates

save script

ALERT! save does not use any templates

search script

ALERT! search is deprecated, and redirects to the view script

statistics script

ALERT! statistics does not use any templates

upload script

ALERT! upload does not use any templates

viewfile script

ALERT! viewfile does not use any templates

view script


Related Topics: Skins Macros JavascriptFiles
Topic revision: r1 - 06 Oct 2011, ProjectContributor
This site is powered by FoswikiCopyright © CC-BY-SA by the contributing authors. All material on this collaboration platform is copyrighted under CC-BY-SA by the contributing authors unless otherwise noted.
Ideas, requests, problems regarding Foswiki? Send feedback