Khác biệt giữa bản sửa đổi của “Bản mẫu:Railway stations in countryname opened or closed in YYYY category header”

Bách khoa toàn thư mở Wikipedia
Nội dung được xóa Nội dung được thêm vào
nKhông có tóm lược sửa đổi
Thẻ: Trình soạn thảo mã nguồn 2017
cập nhật và sửa lỗi
Thẻ: Trình soạn thảo mã nguồn 2017
 
Dòng 15: Dòng 15:
-->{{Railway stations in countryname opened or closed in YYYY category header/core<!--
-->{{Railway stations in countryname opened or closed in YYYY category header/core<!--
-->|parentcountry={{{parentcountry|}}}<!--
-->|parentcountry={{{parentcountry|}}}<!--
-->|countryname=<!--
-->|countryname={{#invoke:String|replace|{{PAGENAME}}|^Nhà ga ở (%a.+) (%a.+ cửa) năm (%d%d%d%d)$|%1|1|false}}<!--
-->|action={{#invoke:String|replace|{{PAGENAME}}|^Nhà ga ở (%a.+) (%a.+ cửa) năm (%d%d%d%d)$|%2|1|false}}<!--
# Grab the country name, and then strip any leading "the "
-->{{#invoke:String|replace|<!--
-->|year={{#invoke:String|replace|{{PAGENAME}}|^Nhà ga ở (%a.+) (%a.+ cửa) năm (%d%d%d%d)$|%3|1|false}}<!--
-->{{#invoke:String|replace|{{PAGENAME}}|^Nhà ga ở (%a.+) (%a%a%a%aed) năm (%d%d%d%d)$|%1|1|false}}<!--
-->|^ ||1|false}}<!--
-->|action={{#invoke:String|replace|{{PAGENAME}}|^Nhà ga ở (%a.+) (%a%a%a%aed) năm (%d%d%d%d)$|%2|1|false}}<!--
-->|year={{#invoke:String|replace|{{PAGENAME}}|^Nhà ga ở (%a.+) (%a%a%a%aed) năm (%d%d%d%d)$|%3|1|false}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
-->|<!-- ############### Not a category ###############################
-->|<!-- ############### Not a category ###############################
-->{{Error|This page is not in the [[Wikipedia:Namespace|category namespace]].<br />[[Bản mẫu:Railway stations in countryname opened or closed in YYYY category header]] is for use only on category pages whose title is of the form {{nowrap|"Railway&nbsp;stations&nbsp;in&nbsp;countryname &nbsp;opened&nbsp;in&nbsp;YYYY"}} or {{nowrap|"Railway&nbsp;stations&nbsp;in&nbsp;countryname &nbsp;closed&nbsp;in&nbsp;YYYY"}}, where "countryname" is the name of a country (e.g. "China" or "the United States") and "YYYY" is a 4-digit year (e.g. "1906"}}<!--
-->{{Error|Trang này không thuộc [[Wikipedia:Namespace|không gian tên thể loại]].<br />[[Bản mẫu:Railway stations in countryname opened or closed in YYYY category header]] chỉ được sử dụng trên các trang thể loại tiêu đề dạng {{nowrap|"Nhà&nbsp;ga&nbsp;&nbsp;countryname &nbsp;mở cửa&nbsp;năm&nbsp;YYYY"}} hoặc {{nowrap|"Nhà&nbsp;ga&nbsp;&nbsp;countryname &nbsp;đóng cửa&nbsp;năm&nbsp;YYYY"}}, trong đó "tên quốc gia" tên của một quốc gia (ví dụ: "Nhật Bản" hoặc "Hoa Kỳ") "YYYY" năm có 4 chữ số (ví dụ: "1906"}}<!--
-->[[Thể loại:Lỗi báo cáo bởi bản mẫu đầu thể loại]]
-->[[Thể loại:Lỗi báo cáo bởi bản mẫu đầu thể loại]]
[[Thể loại:Rail transport chronology category header templates]]
[[Thể loại:Rail transport chronology category header templates]]

Bản mới nhất lúc 08:02, ngày 5 tháng 5 năm 2024

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

Để tạo một thể loại có dạng "Nhà ga ở "tên quốc gia" mở cửa năm YYYY" hoặc "Nhà ga ở "tên quốc gia" đóng cửa năm YYYY", trong đó "tên quốc gia" là tên của một quốc gia và "YYYY" là một chữ số gồm 4 chữ số năm.

v.d.

Bản mẫu sẽ nhận diện định dạng nào đang được sử dụng và điều chỉnh cho phù hợp.

Cách sử dụng[sửa mã nguồn]

{{Railway stations in countryname opened or closed in YYYY category header}}

No parameters are needed, but an optional parameter is available: |parentcountry=OtherCountry

Optional parentcountry parameter[sửa mã nguồn]

Use of this parameter causes the category to be parented in "Thể loại:Railway stations in OtherCountry opened in YYYY", instead of the usual "Thể loại:Railway stations opened in YYYY"

For example, in Thể loại:Railway stations in Hong Kong opened in 2003, the template is used as follows: {{Railway stations in countryname opened in YYYY category header|parentcountry=China}}

This causes that page to be parented in Thể loại:Railway stations in China opened in 2003, rather than in Thể loại:Railway stations opened in 2003

Use of this parameter is monitored by a tracking category:

Purge page to update totals

Đổi hướng đến đây[sửa mã nguồn]

Xem thêm[sửa mã nguồn]