Below explains attachment tags’ grammar, application and context of use.
Attachment’s unique identifier.
Row number in current list, which is integer.
| parameter | type | meaning |
|---|---|---|
| wordcount | int | Optional. Indicate the number of character which will be taken. Chinese will be counted as one character. |
| append | String | Optional.If the length of attachment’s name greater than wordcount,NPS will append the string indicated by "append". |
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.
Filename extension in lowercase, for example, '.jpg'
Creator ID
The full name of the creator
Create Date
The remark
File size
| parameter | type | meaning |
|---|---|---|
| format | String |
B、BYTE: return the length of the file in bytes,for example:1,024,102Byte K、KB: return the length of the file in KB,for example:1,024KB M、MB:return the length of the file in MB,for example:1.20MB G、GB:return the length of the file in GB,for example:0.50GB H、Human-readable:return the human-readable file size. Other format string will return format the file size in bytes. See NumberFormat Instruction below. |
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". |
The URL path for accessing attachment.
| parameter | type | meaning |
|---|---|---|
| width | int | In case of -1 or dereference not in digital format, “width” will be automatically zoom up. Attention: att must be in lower case. |
| height | int | In case of -1 or dereference not in digital format, “height” will be automatically zoom up. Attention: att must be in lower case. |
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.
| parameter | type | meaning |
|---|---|---|
| width | int | In case of -1 or dereference not in digital format, “width” will be automatically zoom up. Attention: att must be in lower case. |
| height | int | In case of -1 or dereference not in digital format, “height” will be automatically zoom up. Attention: att must be in lower case. |
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.
Attachment’s index in article, which is integer.