2Hi.Biz
Trang chủ | TWIG | Xtscript | Templates | Xtgem
xtscript Việt hóa 2015
AiChat.Wap.Sh
print
in ấn và print_raw gửi ra để trang
[...] = optional ... = your value
print [...]
in có lẽ là lệnh quan trọng nhất trong Xtscript
Trong Xtscrip tin Một số nhân vật và cấu trúc được bảo lưu
*.in không có thể được sử dụng trực tiếp với các chức năng bạn cần gán chức năng cho một biến và sau đó in các biến
Mặc dù nếu bạn gọi một funtion đạo kết quả được in nào
*.Các cấu trúc dành $ name và(expression) có thể được in bằng cách thoát khỏi chúng với \
Nó thường là đủ để thoát khỏi chỉ việc mở(
*.print $ variable_name sẽ in giá trị của biến có tên
*.in \ $ variable_name sẽ in $ variable_name
*.print (3 4)sẽ in ra kết quả đánh giá của các nội dung của dấu ngoặc tức.7 *.in \ (3 4)sẽ in(3 4)
*.dòng in đa có thể đạt được bằng cách gói các văn bản trong ngoặc gấp đôi tức.
print {{In
trên
nhiều
dòng}}
Các dòng mới không được chuyển đổi để xuống hàng
*.{} Và có thể cần phải được chuyển đổi cho các đối tượng html của họ phụ thuộc vào hoàn cảnh
{=& # 123;& Lcub;
}= & # 125;& Rcub;
*.Một dấu chấm phẩy ; không thể là nhân vật cuối cùng của một dòng in Các ; có thể được gán cho một biến bằng cách sử dụng chr chức năng và sau đó được sử dụng ở vị trí của nó
*.sẽ ra print_raw chuỗi chưa phân tích Trừ "nhận được" biếnvà {{}}wrappers
Code ví dụ:
<!--parser:xtscript-->
var $variable=test value
print Usually you only need to escape the first bracket<br />
print This \$variable and \(3+4) are escaped with &#92;<br />
print This "$variable" and "(3+4)" have not been escaped<br />
print The "get" variables break as \ is not a valid character here and the \$variable is escaped<br />
print {_$\$variable|default} and {_\$func|default}<hr />

#A direct function call prints the result
print Direct function call<br />
call strrev $val=$variable
print <hr />

# Use ; ;(semicolon space semicolon) for semicolons at the end of a print line
print This will still work on some browsers but the ; will be missing in the source code &amp;
print <br />add a semicolon to an end of line entity &amp; ;

# Multi line print
print {{<br />printing
on multiple
lines<br />}}

# Print_raw
print_raw {{print_raw prints
everything like $variable and (3+4) unparsed<br />
it will still parse &lcub;{&nbsp;}&rcub; wrappers and "get" variables
"test value" and "print"<br />
To show the text use an entity to replace {<br />
"&lcub;_$$variable|default}" and "&lcub;_$func|default}"}}
<!--/parser:xtscript-->
Code đã chạy;
Usually you only need to escape the first bracket
This $variable and (3+4) are escaped with \
This "test value" and "7" have not been escaped
The "get" variables break as \ is not a valid character here and the $variable is escaped
{_$$variable|default} and {_$func|default}
Direct function call
eulav tset
This will still work on some browsers but the ; will be missing in the source code &
add a semicolon to an end of line entity &
printing on multiple lines
print_raw prints everything like $variable and (3+4) unparsed
it will still parse {{ }} wrappers and "get" variables "test value" and "print"
To show the text use an entity to replace {
"{_$$variable|default}" and "{_$func|default}"