%[[-|<|=|>|+]ddd][!][_p]n, where:
n is a single-character Name of the parameter, or multi-character {Name} in curly brackets.
It determines what text will parameter be expanded to;
ddd is number, specifying length of field this variable will occupy, i.e its minimal length;
it can be preceded with character specifying where will be text aligned to:
'-' or '<' - to the left,
'=' - centered,
'+' or '>' - to the right.
If ! is present, then text that doesn't fit int specified width will be cut with
respect to alignment settings:
'-' or '<' - leftmost portion is left,
'=' - center portion is left,
'+' or '>' - rightmost portion is left.
If p character is present, it will be used to pad text to desired length (space by default).
Special parameters include:
- %% - this expands to a single '%' symbol. Funny, but you can use all aligning and padding features with it!
- %\ - this makes line split on this place. Quite useful in such one-line templates as
FileFormat and similar.
- %. is the most interesting one. Instead of expanding into something, it aligns all the line
that precedes it. You can use it to start next field from exact position (See template examples)
Parameters in such once-per-filelist templates as Header or
AreaListStart can use the following parameters:
%S - Size of all files in bytes
%Z - Size of all files in the form depending on SizeLimit1 and
SizeTag1
%F - Total number of files in all areas
%N - Number of areas (probably excluding empty)
Parameters in such once-per-area templates as AreaStart or
AreaFile can use the following parameters:
%N - Area number (skipped empty areas are also numbered)
%T - Area tag
%D - Area description
%S - Size of all files in area in bytes
%Z - Size of all files in area in the form depending on SizeLimit1 and
SizeTag1
%F - Number of files in area
%L - Access level number
%V - Access level description
%W - Path to area (as was given in Area statement)
%P - Processed path to area (see ProcessPath)
Parameters in such once-per-area templates as FileFormat
and similar can use the following parameters:
%A - Area number
%G - Area tag
%W - Path to area (as was given in Area statement)
%P - Processed path to area (see ProcessPath)
%N - File name
%S - File size in bytes
%Z - File size in the form depending on SizeLimit1 and
SizeTag1
%T - File date/time
%D - File description
%C - Download count
%I - Either NewMark or NotNewMark,
depending on whether file is new or not.
When formatting file date and time, following parameters are defined:
%D - Day
%M - Month as 'Jan', 'Feb', etc
%{ML} - Month as 'January', 'February', etc
%N - Month number
%O - Month number as Roman
%Y - Year (all 4 digits)
%R - Year (last 2 digits, i.e '00' for 2000)
%H - Hour
%I - Minute
%S - Second
%{DT} - Date as dd.mm.YYYY
%{TM} - Time as hh:mm:ss