• Trang chính
  • Ngẫu nhiên
  • Đăng nhập
  • Tùy chọn
  • Giới thiệu Wikipedia
  • Lời phủ nhận
Wikibeta, Bách khoa tri thức mở

Bản mẫu:Spellnum per MOS

  • Ngôn ngữ
  • Theo dõi
  • Xem mã nguồn
Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]
Bản mẫu này sử dụng Lua:
  • Mô đun:ConvertNumericPerMOS

Cách sử dụng

Applies style guidance from MOS:NUMERAL to determine whether a number should be spelled out in prose. All optional arguments of {{số sang chữ}} are accepted by this template.

Per MOS:NUMERAL:

  • Non-integers and values less than zero are given in numerals (e.g. 0.5, -3).
  • Integers from zero to nine are spelled out in words (e.g. five).
  • For integers greater than or equal to ten:
    • By default, numbers expressible in one or two words are spelled out (e.g. fifty-six), and numbers requiring three or more words are given as numerals (e.g. 310).
    • If the argument "forcenum" is given with a value of "true" (or equivalent per Bản mẫu:Có hay không), integers greater than or equal to ten are always expressed as a numeral.

This template should be substituted unless the argument is dynamic (i.e., generated by another template or module that cannot be substituted).

Editors using this template are responsible for making sure the output aligns with the detailed guidance of WP:NUMERAL.

Các ví dụ

Trường hợp Hành vi mặc định Force numerals where allowed (forcenum = "true" or equivalent )
số âm hoặc không có số nguyên {{Spellnum per MOS|-3}} → −3
{{Spellnum per MOS|1.5}} → 1,5
số nguyên nhỏ hơn 10 {{Spellnum per MOS|1}} → một
{{Spellnum per MOS|9}} → chín
số nguyên yêu cầu hai hoặc ít nhất từ {{Spellnum per MOS|54}} → 54 {{Spellnum per MOS|54|forcenum=1}} → 54
{{Spellnum per MOS|300}} → ba trăm {{Spellnum per MOS|300|forcenum=true}} → 300
{{Spellnum per MOS|8000}} → tám ngàn {{Spellnum per MOS|8000|forcenum=yes}} → 8.000
số nguyên yêu cầu nhiều hơn hai từ {{Spellnum per MOS|320}} → 320

Xem thêm

  • {{số sang chữ}} – called by this template; converts all numerals to words without regard for WP:NUMERAL
Tài liệu bên trên được truyền tải từ Bản mẫu:Spellnum per MOS/doc. (sửa | lịch sử)
Biên tập viên sửa đổi có thể thử nghiệm trong các trang chỗ thử (tạo | sao) và trường hợp kiểm thử (tạo) của bản mẫu này.
Xin hãy bổ sung các thể loại vào trang con /doc. Các trang con của bản mẫu này.
Lấy từ “https://wikibeta.org/index.php?title=Bản_mẫu:Spellnum_per_MOS&oldid=7166792”
Sửa đổi lần cuối lúc 10:30 vào ngày 10 tháng 11 năm 2019

Ngôn ngữ

    Trang này không có sẵn trong ngôn ngữ khác.

    Wikibeta, Bách khoa tri thức mở
    • Creative Commons Ghi công–Chia sẻ tương tự
    • Powered by MediaWiki
    • Trang này được sửa đổi lần cuối vào ngày 10 tháng 11 năm 2019, 10:30.
    • Nếu không có ghi chú khác, nội dung này được cấp phép Creative Commons Ghi công–Chia sẻ tương tự.
    • Chính sách quyền riêng tư
    • Giới thiệu Wikipedia
    • Lời phủ nhận
    • Phiên bản máy tính