ꯇꯦꯝꯄ꯭ꯂꯦꯠ:Transclude list item excerpts as random slideshow/doc

ꯋꯤꯀꯤꯄꯦꯗꯤꯌꯥ ꯗꯒꯤ



Usage[ꯁꯦꯝꯒꯠꯂꯛꯄꯒꯤ ꯍꯧꯔꯛꯐꯝ]

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

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

Parameters[ꯁꯦꯝꯒꯠꯂꯛꯄꯒꯤ ꯍꯧꯔꯛꯐꯝ]

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.
  • Prevent randomisation of the output by setting |random=no (or false).
  • Allow stubs to be included by setting |nostubs=no (or false). The default is to exclude stubs from the slideshow, unless every article is a stub.
  • |more=no – to suppress link to the article at the end of the excerpt. |more=custom text to customize the link text at the end of the excerpt. Default is "Full article...".

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[ꯁꯦꯝꯒꯠꯂꯛꯄꯒꯤ ꯍꯧꯔꯛꯐꯝ]

Main portal creation templates

  • {{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}}—As hereinbefore, but with 25 links.
    • {{Numbered subpages}}—As hereinbefore, but with 75 links.
    • {{Numbered subpages}}—As hereinbefore, but with 100 links.
  • {{Random box-header subpage}}—Used to transclude a numbered subpage.

Main portal page formatting templates

Templates that configure links

These templates are used to format the articles on the sub-pages

{{Selected X}}—Generic template for situations not listed hereafter.

ꯃꯔꯤꯂꯩꯅꯕ ꯇꯦꯝꯄꯂꯦꯠꯁꯤꯡ