X-Git-Url: https://git.openafs.org/?p=openafs-wiki.git;a=blobdiff_plain;f=TWiki%2FTWikiSkins.mdwn;h=cf3d6d06c1209485eed8c154e1b7e911f3ef4254;hp=b208a124b5ed9a85f9884d3fe496e36f8c46e182;hb=11da70533411bb92eaee8586d294b079dec70206;hpb=ae922d6393973eece45d755d164baa986fa7d3bb diff --git a/TWiki/TWikiSkins.mdwn b/TWiki/TWikiSkins.mdwn index b208a12..cf3d6d0 100644 --- a/TWiki/TWikiSkins.mdwn +++ b/TWiki/TWikiSkins.mdwn @@ -3,6 +3,12 @@
**<scriptname>.<skin>.tmpl**
. For example, the **Printable** skin for the `view` template is `view.print.tmpl`.
+Use the existing [[TWikiTemplates]] (like `view.tmpl`) or skin files as a base for your own skin, name it for example `view.myskin.tmpl`.
+
+## Variables in Skins
+
+You can use [[template variables|Main/TWikiTemplates#TemplateVariables]], [[TWikiVariables]], and other predefined variables to compose your skins. Some commonly used variables in skins:
+
+Variable: | +Expanded to: | +
---|---|
%WIKILOGOURL% |
+ Link of page logo | +
%WIKILOGOIMG% |
+ Image URL of page logo | +
%WIKILOGOALT% |
+ Alt text of page logo | +
%WEBBGCOLOR% |
+ Web specific background color, defined in the [[Main/WebPreferences]] | +
%WIKITOOLNAME% |
+ The name of your TWiki site | +
%SCRIPTURL% |
+ The script URL of TWiki | +
%SCRIPTSUFFIX% |
+ The script suffix, ex: .pl , .cgi |
+
%WEB% |
+ The name of the current web. Note: It is recommended to URL-encode the variable in form actions with %INTURLENCODE{"%WEB%"}% for proper handling in an internationalized environment |
+
%TOPIC% |
+ The name of the current topic. Note: It is recommended to URL-encode the variable in form actions with %INTURLENCODE{"%TOPIC%"}% for proper handling in an internationalized environment |
+
%WEBTOPICLIST% |
+ Common links of current web, defined in the [[Main/WebPreferences]]. It includes a [[Main/WebHome#GoBox]] | +
%TEXT% |
+ The topic text, e.g. the content that can be edited | +
%META{"form"}% |
+ [[Main/TWikiForms]], if any | +
%META{"attachments"}% |
+ [[Main/FileAttachment]] table | +
%META{"parent"}% |
+ The topic parent | +
%EDITTOPIC% |
+ Edit link | +
%REVTITLE% |
+ The revision title, if any, ex: (r1.6) |
+
%REVINFO% |
+ Revision info, ex: r1.6 - 24 Dec 2002 - 08:12 GMT - Main.admin |
+
%WEBCOPYRIGHT% |
+ Copyright notice, defined in the [[Main/WebPreferences]] | +
%BROADCASTMESSAGE% |
+ Broadcast message at the beginning of your view template, can be used to alert users of scheduled downtimes; is set in [[Main/TWikiPreferences]] | +
**?skin=name**
URL parameter overrides the SKIN Preference value.
--- [[PeterThoeny]] - 14 Jul 2001