Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

UsageSửa đổi

This template is to help facilitate the displaying of variable names (in mathematics, computer source code, etc.) with the semantically correct <var>...</var>, which also renders the variable in italics, as is customary. This method is preferred to simply italicizing, for accessibility, content/presentation separation, semantic Web, and metadata reasons; [X]HTML's <var> element has semantic meaning, while simple italicization does not.





which renders as:


compare to simple ''username'' italicization:


When used alone as variables, the letters "I" (upper-case "i") and "l" (lower-case "L") should be rendered with {{varserif}} instead of {{var}}, to make them more distinguishable: I, l.

See alsoSửa đổi

Bản mẫu:Var/seealso