Guide for attachment tags

Below explains attachment tags’ grammar, application and context of use.

top

<$res_id$>

Attachment’s unique identifier.

top

<$rowno>

Row number in current list, which is integer.

top

<$res_title(wordcount:int,append:string)$>

Attachment caption.
<$res_title$>:Return to attachment’s full name.
<$res_title(50)$>:Only return to 50 characters of attachment’s name, the characters more the 50 will be truncated.
<$res_title(50,"...")$>:Only return to 50 characters of attachment’s name.The characters more the 50 will be truncated,and "..." appended.

top

<$res_suffix$>

Filename extension in lowercase, for example, '.jpg'

top

<$res_creator$>

Creator ID

top

<$res_creatorcn$>

The full name of the creator

top

<$res_createdate$>

Create Date

top

<$res_content$>

The remark

top

<$res_size$>

File size

For Example,if the file length is 1,264,128Byte,then
<$res_size$>:return 1264128;
<$res_size("KB")$>:return 1,234.5KB
<$res_size("MB")$>:return 1.21MB
<$res_size("h")$>:return 1.21MB

NumberFormat Instruction

Symbol Location Meaning
0 Number Digit
# Number Digit, zero shows as absent
. Number Decimal separator or monetary decimal separator
- Number Minus sign
, Number Grouping separator
E Number Separates mantissa and exponent in scientific notation. Need not be quoted in prefix or suffix.
; Subpattern boundary Separates positive and negative subpatterns
% Prefix or suffix Multiply by 100 and show as percentage
\u2030 Prefix or suffix Multiply by 1000 and show as per mille
¤ (\u00A4) Prefix or suffix Currency sign, replaced by currency symbol. If doubled, replaced by international currency symbol. If present in a pattern, the monetary decimal separator is used instead of the decimal separator.
' Prefix or suffix Used to quote special characters in a prefix or suffix, for example, "'#'#" formats 123 to "#123". To create a single quote itself, use two in a row: "# o''clock".
top

<$res_url)$>

The URL path for accessing attachment.

top

<$res_url("width:int,height:int")$>

Only valid for pictures in JPG、BMP、GIF、TIF format. Otherwise, the parameters of width and height will be simultaneously neglected.

System will automatically zoom up pictures according to requirements of “width” and “height” and will return to picture’s URL.
<$res_url("100,200")$>:New pictures whose width=100 and height=200 will be generated. It will return to the picture’s URL.

top

<$res_url(width:int,height:int)$>

Only valid for pictures in JPG、BMP、GIF、TIF format. Otherwise, the parameters of width and height will be ignored.

System will automatically zoom up pictures according to requirements of “width” and “height” and will return the picture’s URL.
<$res_url(100,200)$>: New picture whose width=100 and height=200 will be generated. It will return the picture’s URL.

top

<$res_index$>

Attachment’s index in article, which is integer.