Bản mẫu:Selected DYK
Bản mẫu này sử dụng những tính năng phức tạp của cú pháp bản mẫu.
Bạn được khuyến khích làm quen với cấu trúc của bản mẫu này và các hàm cú pháp trước khi sửa đổi bản mẫu. Nếu sửa đổi của bạn gây ra lỗi không mong muốn, hãy sửa chữa hoặc lùi lại nhanh chóng, vì bản mẫu này có thể xuất hiện trên một số lượng lớn trang. |
Nếu bạn đang sử dụng bản mẫu {{Random subpage}}, không được sử dụng bản mẫu này làm kết quả Bạn có biết... phần sẽ không được định dạng chính xác. |
Bản mẫu này được thiết kế để được sử dụng với các bản mẫu {{Random portal component}} và {{Random portal component with nominate}}.
Bố cục bản mẫu[sửa mã nguồn]
{{Selected DYK | image = | size = | caption = | text = <!--- Required ---> | link = }}
Cách sử dụng[sửa mã nguồn]
It is unnecessary to include braces, quotation marks or other wiki-markup in the template. The |text= field does allow the use of wiki-markup at the contributor's discretion.
- image - Places an image relating to the subject of the article on the left side of the section.
- size - Sets the image size, if left out or left blank it will default to 250px.
- caption - Creates a caption for the image.
- text - is the "Did you know" verbiage. No quotation marks needed.
- link - is the link to the article the subject is referring.
Các ví dụ[sửa mã nguồn]
{{Selected DYK | image = Modern Charcuterie display.jpg | size = | caption = | text = that '''charcuterie''' is derived ... ? | link = charcuterie }}
Sẽ tạo ra:
Xem thêm[sửa mã nguồn]
Bản mẫu tạo chủ đề chính
- {{Basic portal start page}}—Used to create portal main pages.
- {{Random portal component}}—Used on the portal main page to randomly display articles from the portal sub-pages.
- {{Random portal component with nominate}}—Used on the portal main page to randomly display articles from the portal sub-pages, adding the option to nominate other Featured foo articles.
- {{Random subpage}}—Used on the portal main page to randomly display articles from the portal sub-pages. This template is best used for creating randomly populated Did you know... sections on the portal main page that are intended to include multiple Did you know... facts.
- {{Subpage}}—Used to output a box containing a link to subpage.
- {{Numbered subpages}}—Used to create article links on portal sub-pages with 50 links.
{{Numbered subpages|max=25}}
—As hereinbefore, but with 25 links.{{Numbered subpages|max=75}}
—As hereinbefore, but with 75 links.{{Numbered subpages|max=100}}
—As hereinbefore, but with 100 links.
- {{Random box-header subpage}}—Used to transclude a numbered subpage.
Bản mẫu định dạng trang chủ đề chính
- {{Box-header}}
- {{Box-header-blank}}
- {{Box-header-plain}}
- {{Box-header-round}}
- {{Box-header-square}}
- {{Box-header-watch}}
- {{Box-footer}}
Bản mẫu cấu hình liên kết
- {{Portal}}
- {{Portal bar}}
- {{Portal-inline}}
- {{Portals}}
- {{Portal-image}}
- {{Portals browsebar}}
- {{Related portals}}
- {{Related portals2}}
- {{Wikimedia for portals}}
Các bản mẫu này được sử dụng để định dạng các bài viết trên các trang con
{{Selected X}}—Generic template for situations not listed hereafter.
- {{Selected article}}
- {{Selected biography}}
- {{Selected business}}
- {{Selected DYK}}
- {{Selected ingredient}}
- {{Selected location}}
- {{Selected picture}}
- {{Selected product}}
- {{Selected publication}}
- {{Selected quote}}
- {{Selected recipe}}
Bản mẫu liên quan