Tokens and Encodings
for use in the User-Defined sections of the Footer and Address sections.
|%ST||st, th or nd by date||st|
|%MN||Month as number||04|
|%MO||Month as long entry||April|
|%M3||Month as 3 letters||Apr|
|%WK||Week of year||23|
|%DN||Day with in year||098|
|%WN||Week day as number||7 = Saturday|
|%W3||Week day as 3 letters||Sat|
|%WE||Week day as long||Saturday|
|%CE||Century as 2 digits||19|
|%YR||Year as 2 digits||95|
|%24||Hour as 24 hour||15|
|%12||Hour as 12 hour||03|
|%AM||am or pm||am|
|%PM||am or pm||am|
|%MI||Minute as 2 digits||25|
|%SE||Second as 2 digits||50|
|%CS||Centisecond as 2 digits||87|
|%TZ||Time zone||BST/DST/+01:00, etc|
|%OE||Owner email email@example.com|
|%ON||Owner nickname||House of Mabel; The Webmaster; Rich|
|%OR||Owner real name||Richard Goodwin|
|%OW||Owner web address||http://www.goodwin.uk.com/richard/|
|%OP||Owner phone number||Your contact number (e.g. 01252705705)|
|%PR||Profile real name||Argo Interative Ltd.; or you if not available|
|%PE||Profile email firstname.lastname@example.org; or you if not available|
|%PW||Profile web address||http://www.argonet.co.uk/; you if not available|
|%PP||Profile phone number||Your client's contact number (e.g. 01252705705)|
|%BB||Body background colour||#FFFFFF|
|%BT||Body text colour||#000000|
|%BL||Body link colour||#0000FF|
|%BA||Body active colour||#CCCCFF|
|%BV||Body visited colour||#000088|
|%TR||Table row colour||#FFFFFF|
|%TD||Table data (cell) colour||#FFFFFF|
|%E0||Effects colour 0||#00FF00|
|%E1||Effects colour 1||#44FF00|
|...|| || |
|%EF||Effects colour 15||#FF00FF|
|%H3||!HTML³ advert||linked advert to my site|
|Special codes preceding other codes|
|%z||Remove leading 0 from date/time (as standard)|
|%x||Don't interpret, just output.|
HTML³ has a few more encoding methods when you enable some of the output options from the Choices window.
This is tripped when using WML and/or PERL modes.
In WML the dollar sign can be used for variable names in attributes, and must be encoded to $(varname); outside of attributes you have to encode it to a double dollar, $$, which HTML³ will do automatically.
- In WML, any SINGLE dollar signs will be encoded to double dollars
- In WML, DOUBLE dollar signs in attributes will be encoded to "$(varname)"
- In WML, DOUBLE dollar signs outside attributes will be encoded to FOUR
dollars (in case you're trying to write "Save $$$", you'd need
In PERL, you can use dollar signs for variables too, and so to print a dollar sign you need "\$".
PERL and WML together
- In PERL, any SINGLE dollar sign gets encoded to "\$"
- In PERL, any DOUBLE dollar sign is unencoded ("$").
If you have both PERL and WML switched on, PERL trumps WML, so in general see the rules for PERL.
- In PERL PLUS WML, ANY DOUBLE dollar sign becomes a single, unencoded dollar sign.
- In PERL PLUS WML, ANY SINGLE dollar sign becomes a double dollar sign with "\" encoding.
As you can see, in PERL PLUS WML mode, you can't get "$(varname)", as it's interpreting dollars as per the PERL model not the WML model.
In short, check what the dollar signs are doing, as it's probably quicker to modify them by hand.
There's also two other encoding characters, needed to output the print statements for PERL. One of these may interfere with your output.
Speechmarks and newline characters can be prefaced with a pipe mark - "|" - to get them to pass unencoded through the Perl encoding mechanism. Otherwise newlines become "\n" and speechmarks "\"". I've not come across any problems as yet, but that's not to say there aren't any. I'd guess that with Perl mode switched off they shouldn't alter any other output (e.g. plain HTML, WML etc. even with tokens.)
HTML³: © Richard Goodwin 1997-2002