Bản mẫu:Marriage
| Bản mẫu này được sử dụng ở khoảng 3.700 trang, vì thế những thay đổi đến nó sẽ hiện ra rõ ràng. Vui lòng thử nghiệm các thay đổi ở trang con /sandbox, /testcases của bản mẫu, hoặc ở không gian người dùng của bạn. Cân nhắc thảo luận các thay đổi tại trang thảo luận trước khi áp dụng sửa đổi. |
Usage
This template is intended for use in infoboxes; specifically {{Infobox person}} and templates calling Infobox person.
{{Marriage}} takes up to three unnamed parameters (name, start date, end date)—plus an optional named parameter |end=—to produce output such as the following:
- John Smith (cưới 1895–1905)
- John Doe
(cưới 1885 – mất 1888) - Jane Doe (cưới 2002)
- John Q. Public (cưới 2002–2010)
- John Q. Citizen
(cưới 2002 – ly dị 2010) - John Q. Taxpayer
(cưới 2002, ly dị) - Joe Blow (trước ly dị 2010)
- Joe the Plumber (–2010)
The above were produced by:
{{marriage |John Smith |1 January 1895 |December 31, 1905}}{{marriage |John Doe |1885 |July 27, 1888 |end=d.}}{{marriage |Jane Doe |2002}}{{marriage |John Q. Public |2002|2010}}{{marriage |John Q. Citizen |2002|2010|end=div}}{{marriage |John Q. Taxpayer |2002|end=div}}{{marriage |Joe Blow| |2010|end=div}}{{marriage |Joe the Plumber| |2010}}
Use of |end= will cause a line break between the name and the dates.
In an infobox
| Phối ngẫu |
|
|---|---|
Infoboxes already reduce text size to 88%, and sets a lower limit for text size at 85% of the normal page font size, so it is not appropriate to use font size reduction when this template is used in an infobox. The example here is produced by:
{{Infobox person |spouse = {{Plainlist|* {{marriage |John Smith |1 January 1895 |December 31, 1905}}* {{marriage |John Doe |1885 |July 27, 1888 |end=d.}}* {{marriage |Jane Doe |2002}}* {{marriage |John Q. Public |2002|2010}}* {{marriage |John Q. Citizen |2002|2010|end=div}}* {{marriage |John Q. Taxpayer |2002|end=div}}* {{marriage |Joe Blow| |2010|end=div}}* {{marriage |Joe the Plumber| |2010}}}}}}Syntax and parameters
{{marriage | <text> | <start date> | <end date> [| end= ]}}
| Parameter | Description |
| <text> | Some text—usually a spouse's name—preceding the parenthesis carrying the marriage date/s, etc. |
| Only the year within each of these will be displayed. If either has more information (e.g., month, day), it is given via a tooltip; i.e., {{Hover title}}. (See first and third examples above.) |
| end | Reason for marriage's end.
Otherwise,
w, w., wid, wid., widow, or widowed is deprecated. See Category:Marriage template errors. |
TemplateData
Dữ liệu bản mẫu cho Marriage
insert description here
| Tham số | Miêu tả | Kiểu | Trạng thái | |
|---|---|---|---|---|
| Tên người hôn phối | 1 | không có miêu tả | Chuỗi dài | bắt buộc |
| Năm kết hôn | 2 | không có miêu tả | Chuỗi dài | khuyên dùng |
| Năm kết thúc hôn nhân | 3 | không có miêu tả | Chuỗi dài | tùy chọn |
| Lý do kết thúc | end reason | Chỉ hiển thị khi nhập 1 thông tin năm kết hôn hoặc năm kết thúc | Chuỗi dài | tùy chọn |
Không có miêu tả.
| Tham số | Miêu tả | Kiểu | Trạng thái | |
|---|---|---|---|---|
| Tên người hôn phối | 1 | không có miêu tả | Không rõ | bắt buộc |
| Năm bắt đầu hôn nhân | 2 | không có miêu tả | Không rõ | tùy chọn |
| Năm kết thúc hôn nhân | 3 | không có miêu tả | Không rõ | tùy chọn |
| Lý do kết thúc | reason end | không có miêu tả | Không rõ | tùy chọn |
- Bản mẫu chức năng và định dạng văn bản cụ thể
- Bản mẫu hôn nhân