ข้ามไปเนื้อหา

แม่แบบ:Transclude list item excerpts as random slideshow

จากวิกิพีเดีย สารานุกรมเสรี
Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

A template to make a random slideshow of transcluded excerpts. See Wikipedia_talk:WikiProject_Portals/Design#Excerpt_slideshows.

Usage

[แก้]

Parameters are mostly the same as for {{Transclude list item excerpt}}:

{{Transclude list item excerpts as random slideshow | 1= | 2= | paragraphs= | files= | fileargs= | more= | errors= |limit= }}

The template accepts any number of page names as unnamed parameters; excerpts will be taken from linked list items on these pages. The slideshow order is selected randomly. Include a namespace where necessary. There are no other positional parameters, but there are some optional named parameters:

  • Limit to a section
    • For page in unnamed parameter n, limit linked list items to those in a section name specified by |sectionn= (e.g. |section1=)
    • To exclude subsections within the section, set |sectiononlyn=yes (e.g. |sectiononly1=yes)
    • To set the same section for all pages, use |section= instead (and similarly for |sectiononly=, if desired)
  • A list of paragraphs such as |paragraphs=1,3-5; the default is all paragraphs.
  • A list of file (image) numbers such as |files=1; the default is no images. Note that images within infoboxes etc. are not available.
  • Arguments to pass to File: such as |fileargs=left to move images to the left; the default is none.
  • A link to the article itself such as |more=(more); the default is no link. Short cut: |more=| produces Read more...

Note that this template limits the number of excerpts in the slideshow to 50. This is to prevent transcluding pages from exceeding various technical limitations. If more than 50 links are found, a random subset of 50 will be shown. A lower limit may be set using |limit= if necessary, i.e. to prevent "The time allocated for running scripts has expired" errors either in this template or further down the page (example).

See also

[แก้]

แม่แบบ:Portal templates navbox