Bản mẫu:Selected article
{{{text}}} |
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. |
Đối với phiên bản chung của bản mẫu này, xin vui lòng xem Bản mẫu:Selected X
This template is used to configure the articles found in the Selected article section found on most Wikipedia Portal main pages. It is used on the article pages that are linked to the Selected article sub-page, e.g. Chủ đề:Foo/Selected article/1. For the quickest and easiest way to create the Chủ đề:Foo/Selected bar sub-page and related article links, use one of the {{Numbered subpages}} templates.
Bố cục bản mẫu
[sửa mã nguồn]{{Selected article | image = | size = | side = | caption = | text = <!--- Required ---> | link = <!--- Required ---> | archive = }}
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 - Image relating to the subject of the article.
- size - Set the size of the image here, it will default to 250px if no size is specified.
- side - Set the location of the image here, it will default to left if no side is specified. Use right or center as the variable.
- caption- Image caption, if any.
- text - A brief summary of the subject.
- link - Wikilink to the main article about the subject.
- archive - Using this field with a value of no will remove the Nhiều bài viết được chọn link in the lower left corner. Use this field if you are using the |footer= parameter in the {{random box-header subpage}} template on the main portal page.
Ví dụ
[sửa mã nguồn]{{Selected article
| image = Coq au vin.jpg
| size =
| caption = Coq au vin, a typical dish in French cuisine.
| text =
'''French cuisine''' is a style of cooking derived from the nation of [[France]]. It evolved from ...
| link = French cuisine
}}
Sẽ tạo ra này:
French cuisine is a style of cooking derived from the nation of France. It evolved from centuries of social and political change. The Middle Ages brought lavish banquets to the upper class with ornate, heavily seasoned food prepared by chefs such as Guillaume Tirel. The era of the French Revolution, however, saw a move toward fewer spices and more liberal usage of herbs and refined techniques. French cuisine was codified in the 20th century by Georges Auguste Escoffier to become the modern version of haute cuisine. Ingredients and dishes vary by region. There are many significant regional dishes that have become both national and regional. Many dishes that were once regional, however, have proliferated in different variations across the country in the present day. Cheese and wine are also a major part of the cuisine, playing different roles both regionally and nationally with their many variations and Appellation d'origine contrôlée (AOC) (regulated appellation) laws. |
Xem thêm
[sửa mã nguồn]Bản mẫu nội dung cổng thông tin
- To display "selected content" on the portal main page
- {{Transclude list item excerpts as random slideshow}}—transcludes excerpts from recognized content lists, which are populated by a bot.
- {{Transclude random subpage}}—transcludes random portal subpage.
- {{Random portal component}}—transcludes random portal subpage.
- {{Random subpage}}—transcludes random portal subpages.
- {{Portal pictures}}—transcludes a slideshow of pictures, utilizing a single-page gallery.
- To organize "selected content" on subpages
- {{Numbered subpages}}—outputs an automatic index, transcluding numbered subpages.
- {{Portal subpage}}—outputs a box linking to and transcluding a single subpage.
- {{Portal subpage inline}}—outputs an unordered list item linking to and transcluding a single subpage.
Main portal page formatting templates
- {{Box-header}}
- {{Box-header-plain}}
- {{Box-header-round}}
- {{Box-header-square}}
- {{Box-header-watch}}
- {{Box-footer}}
Templates that configure links
- {{Portal}}
- {{Portal bar}}
- {{Portal-inline}}
- {{Pbox}}
- {{Portals}}
- {{Portals browsebar}}
- {{Related portals}}
- {{Wikimedia for portals}}
Selected page templates, used on subpages of older portals
- {{Selected article}}
- {{Selected biography}}
- {{Selected business}}
- {{Selected DYK}}
- {{Selected ingredient}}
- {{Selected location}}
- {{Selected picture}}
- {{Selected product}}
- {{Selected publication}}
- {{Selected quote}}
- {{Selected recipe}}
- {{Selected X}}
Related templates