You are here: Foswiki>System Web>Category>AdminDocumentationCategory>Skins>SkinTemplateTokens (2024-12-23, UnknownUser)Edit Attach
Placeholders expanded by Foswiki scripts when generating output
On this page:
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.
Note: The SEARCH macro also uses tokens in the search templates, %however they are in the format of $token.
attach script | %ATTACHTABLE% | |
| %FILEUSER% | |
| %FILENAME% | |
| %HIDEFILE% | |
| %FILEPATH% | |
| %FILECOMMENT% |
change script | %REPEAT% | |
| %TEXT% | |
| %TOPICNAME% | |
| %AUTHOR% | The web qualified WikiName of the change |
| %TIME% | |
| %REVISION% | |
| %TEXTHEAD% | |
| $wikiname | The <nop> escaped WikiName of the change |
edit script | %FORCENEWREVISIONCHECKBOX% | |
| %NEWTOPIC% | |
| %TEMPLATETOPIC% | |
| %REDIRECTTO% | |
| %ORIGINALREV% | |
| %TOPICPARENT% | |
| %FORMTEMPLATE% | |
| %CMD% | |
| %FORMFIELDS% | |
| %UNENCODED_TEXT% | |
| %TEXT% |
manage script | %TEXT% | |
| %ORIGINALREV% |
oops script | %PARAMn% | |
| %INSTANTIATE% |
preview script | %DONTNOTIFYCHECKBOX% | |
| %FORCENEWREVISIONCHECKBOX% | |
| %CMD% | |
| %REDIRECTTO% | |
| %FORMTEMPLATE% | |
| %FORMFIELDS% | |
| %TOPICPARENT% | |
| %HIDDENTEXT% | |
| %CMD% | |
| %ORIGINALREV% | |
| %TEXT% |
rdiff script | %REVTITLE1% | |
| %REVTITLE2% | |
| %REVINFO1% | |
| %REVINFO2% | |
| %REPEAT% | |
| %TEXT% | |
| %TAIL% | |
| %CURRREV% | |
| %MAXREV% |
register script registerconfirm.tmplregisterfailednotremoved.tmplregisternotify email failed, suggesting fradulent registration. User account not removed. registerfailedremoved.tmplregisternotify email failed, and the registration was remived registernotifyadmin.tmplregisternotify.tmpl| %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 username 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 moveattachment.tmplrename.tmplrenameconfirm.tmplrenamedelete.tmplrenameweb.tmplrenamewebconfirm.tmplrenamewebdelete.tmpl| %FILENAME% | |
| %NEW_FILENAME% | |
| %NEW_WEB% | |
| %NEW_TOPIC% | |
| %GLOBAL_SEARCH% | |
| %LOCAL_SEARCH% | |
| %SEARCH_COUNT% | |
| %NEW_PARENTWEB% | |
| %NEW_SUBWEB% | |
| %TOPIC% | |
| %MOVE_LOCKED% | |
| %REF_DENIED% | |
| %REF_LOCKED% | |
| %RENAMEWEB_SUBMIT% |
rest script rest does not use any templates
save script save does not use any templates
search script search is deprecated, and redirects to the view script
statistics script statistics does not use any templates
upload script upload does not use any templates
viewfile script viewfile does not use any templates
view script | %REVTITLE% | |
| %REVARG% | |
| %REVISIONS% | |
| %QUERYPARAMSTRING% | |
| %TEXT% | |
| %STARTTEXT% | |
| %ENDTEXT% |
Related Topics: Skins Macros JavascriptFiles
Edit | Attach | Print version | History: r1 | Backlinks | View wiki text | Edit wiki text | More topic actions
Topic revision: r1 - 2024-12-23, UnknownUser
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback