Bản mẫu:Trang con đánh số
Bản mẫu này sử dụng Lua: |
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 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