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

Bản mẫu:Refn

  • 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]

Mục lục

  • 1 Mục đích
  • 2 Cách sử dụng
  • 3 Các ví dụ
    • 3.1 Ghi chú cuối trang với trích dẫn
    • 3.2 Thay thế
  • 4 Các lỗi
  • 5 Xem thêm

Mục đích

This template is used to create footnotes in Wikipedia, as an alternative and complement to the <ref> tag. Because of a technical limitation, some of the standard Wikipedia markup elements that are often used in the article prose do not work within a set of <ref>...</ref> tags, including but not limited to the pipe trick, template substitution and another "nested" set of <ref>...</ref> tags. For example, the following does not work as expected:

  1. <ref>[[Trợ giúp:Cước chú|]]</ref> (Tạo ra: [[Trợ giúp:Cước chú|]] instead of a wikilink)
  2. <ref>{{SUBST:TODAY}}</ref> (Tạo ra: {{SUBST:TODAY}} instead of the date that the edit was made)
  3. <ref>Explanatory footnote<ref>Citation</ref></ref> (Tạo ra: Cite error: A <ref> tag is missing the closing </ref> (see the help page). </ref>)

Replacing the outermost <ref>...</ref> set with {{Refn}} allows for the use of the markup elements listed above.

Cách sử dụng

{{refn|group=tên nhóm|name=tên|Nội dung của ghi chú cuối trang}}

  • groupname: Groupname per WP:REFGROUP; if not specified, then the main and nested references will be rendered into the same reference list
  • name: Reference name per WP:REFNAME

Bản mẫu:Refname rules

Các ví dụ

Ghi chú cuối trang với trích dẫn

Cú pháp Kết quả
Một ví dụ.{{refn|group=ghi chú|name=đầu tiên|Một ghi chú.<ref>Một tham khảo bao gồm.</ref>}}
Ví dụ khác.{{refn|group=ghi chú|Ghi chú khác.<ref>Tham khảo khác bao gồm.</ref>}}
Một ví dụ thứ ba.{{refn|group=ghi chú|Ghi chú thứ ba.<ref>Tham khảo trong ghi chú thứ ba.</ref>}}
Lặp đi lặp lại ví dụ đầu tiên.{{refn|group=ghi chú|name=đầu tiên}}

==Ghi chú==
{{tham khảo|group=note}}

==Tham khảo==
{{tham khảo}}

Một ví dụ.[ghi chú 1] Ví dụ khác.[ghi chú 2] Một ví dụ thứ ba.[ghi chú 3] Lặp đi lặp lại ví dụ đầu tiên.[ghi chú 1]

Ghi chú
  1. ^ a ă Một ghi chú.[1]
  2. ^ Ghi chú khác.[2]
  3. ^ Ghi chú thứ ba.[3]
Tham khảo
  1. ^ Một tham khảo bao gồm.
  2. ^ Tham khảo khác bao gồm.
  3. ^ Tham khảo trong ghi chú thứ ba.

Thay thế

The first example shows that substitution does not work in a regular <ref>...</ref> tag (the accessdate does not appear correctly). The second example shows that the accessdate is substituted correctly within {{refn}}.

Cú pháp Kết quả
<ref>{{chú thích web |accessdate={{Subst:TODAY}} |title=Languages |work=Apache HTTP Server |agency=Ohloh |publisher= Black Duck Software |url=https://www.ohloh.net/p/apache/analyses/latest/languages_summary}}</ref>
{{tham khảo}}

[1]

  1. ^ "Languages". Apache HTTP Server. Black Duck Software. Ohloh. Truy cập {{Subst:TODAY}}. {{Chú thích web}}: Kiểm tra giá trị ngày tháng trong: |accessdate= (trợ giúp)
{{refn|{{chú thích web |accessdate={{Subst:TODAY}} |title=Languages |work=Apache HTTP Server |agency=Ohloh |publisher= Black Duck Software |url=https://www.ohloh.net/p/apache/analyses/latest/languages_summary}}}}
{{tham khảo}}

[1]

  1. ^ "Languages". Apache HTTP Server. Black Duck Software. Ohloh. Truy cập ngày 1 tháng 1 năm 2023.

Các lỗi

If the reference or note content is missing, then "Cite error: Invalid <ref> tag; refs with no name must have content." will be displayed.

Xem thêm

Bản mẫu:Wikipedia referencing

This template is used to create footnotes in Wikipedia, as an alternative and complement to the <ref> tag.

Tham số bản mẫu

Nên dùng bản mẫu này với các tham số đặt trên cùng một hàng.

Tham sốMiêu tảKiểuTrạng thái
content1

The content of the footnote.

Nội dungbắt buộc
namename

The name of the footnote. Corresponds to the "name" attribute of the <ref> tag.

Chuỗi dàitùy chọn
groupgroup

The reference group. Corresponds to the "group" attribute on the <ref> tag.

Chuỗi dàitùy chọn
Tài liệu bên trên được truyền tải từ Bản mẫu:Refn/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:Refn&oldid=63393”
Sửa đổi lần cuối lúc 21:12 vào ngày 8 tháng 8 năm 2026

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 8 tháng 8 năm 2026, 21:12.
    • 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 Wikibeta
    • Lời phủ nhận
    • Phiên bản máy tính