Bản mẫu:Trang con đánh số

Bách khoa toàn thư mở Wikipedia
Bước tới điều hướng Bước tới tìm kiếm
Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

Template layout[sửa mã nguồn]

Full parameters

{{Numbered subpages
|max=
|min=
|missing=
|headertemplate=
}}


{{Numbered subpages}}

Additionally, you can use the |max= parameter to change the number of links on the subpages. For example,

{{Numbered subpages|max=25}}

To terminate the loop when a non-existing subpage is encountered, use

{{Numbered subpages|missing=stop}}

To skip non-existing subpages, use

{{Numbered subpages|missing=skip}}

To link, but not transclude missing subpages, use

{{Numbered subpages|missing=link}}

To use a preset palette template for the Box Header, use

{{Numbered subpages|headertemplate=(Template location for the box header)}}

Usage[sửa mã nguồn]

Template to show numbered sub-pages arranged ascendingly from 1 to maximum. Max must be defined in Template by repeating parameters used in forLoop template till maximum. Maximum is defined as 25, 50, 75, or 100, depending on the version used.

Example[sửa mã nguồn]

This is an example of use of the template as it would be found on the "Selected articles" sub-page that is a component of a portal created using the {{box portal skeleton}}. Simply placing the template on the page is all that is needed to show all selected articles stored in sub-pages linked to it, however using the template as part of a fully formed description makes it easier for other editors to modify the page as needed.

__NOTOC__
== Usage ==
The template used for the creation of these sub-pages is located at {{tl|Selected article}}
# Add a new Selected article to the next available subpage.
# Update "max=" to new total for its {{tl|Random portal component}} on the main page.
{{purgepage}}

{{Numbered subpages}}

{{purgepage}}

Used templates[sửa mã nguồn]

See also[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

Bản mẫu cấu hình liên kết

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.

Bản mẫu liên quan

Tẩy sạch vùng nhớ đệm máy chủ