• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.55
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:Transclude excerpts as random slideshow

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
This template uses Lua:
  • Module:Excerpt slideshow
CSSThis template uses TemplateStyles:
  • Template:Transclude excerpts as random slideshow/style.css

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

Usage

Parameters are the same as for {{Transclude random excerpt}}:

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

The template accepts any number of page names as unnamed parameters. The slideshow order is selected randomly. Include a namespace where necessary. There are no other positional parameters, but there are some optional named parameters:

  • 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 25. This is to prevent transcluding pages from exceeding various technical limitations. If more than 25 page names are provided, a random subset of 25 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

  • v
  • t
  • e
Portal templates
Visual overview of template usage
Layout and formatting
  • {{Box portal skeleton}}
  • {{Box-header}}
    • color palettes
    • plain
    • round
    • square
    • watch
  • {{Box-header colour}}1
  • {{Box-footer}}
  • {{Flex columns}}
  • {{Plain navboxes}}
Portal.svg
Content transclusion
  • {{Transclude lead excerpt}}2
  • {{Transclude linked excerpt}}2
  • {{Transclude list item excerpt}}2
  • {{Transclude random excerpt}}2
  • {{Transclude selected excerpt}}2
  • {{Excerpt}}
  • {{Transclude DYK}}9
  • {{Transclude selected current events}}3
  • {{Transclude selected recent additions}}4
Content slideshows
  • {{Random slideshow}}5
  • {{Transclude files as random slideshow}}5
  • {{Transclude excerpts as random slideshow}}6
  • {{Transclude linked excerpts as random slideshow}}6
  • {{Transclude list item excerpts as random slideshow}}6
Content randomisation
  • {{Random portal component}}7
  • {{Random quotation}}
  • {{Random subpage}}
General
  • {{Portals}}
  • {{Portals browsebar}}
  • {{Portal description}}
  • {{Portal information sidebar}}
  • {{Portal navbar no header2}}
  • {{Purge link portals}}
  • {{Wikimedia for portals}}
Linking templates
  • {{Portal}}
  • {{Portal bar}}
  • {{Portal-inline}}11
  • {{Pbox}}
  • {{Related portals}}
  • {{Related portals2}}
Talk pages / Maintenance
  • {{Portal talk}}
  • {{Portal maintenance status}}8
  • {{Portal suggestions}}
  • {{Portal toolbox}}
  • {{WikiProject Portals}}8
Images
  • {{Portal dynamic image}}
  • {{Portal image banner}}10
  • {{Portal pictures}}12
  • {{Portal POTD}}
Modules
  • 1 Module:Box-header
  • 2 Module:Excerpt/portals
  • 3 Module:Selected current events
  • 4 Module:Selected recent additions
  • 5 Module:Random slideshow
  • 6 Module:Excerpt slideshow
  • 7 Module:Random portal component
  • 8 Module:Portal maintenance status
  • 9 Module:Transclude DYK
  • 10 Module:Portal image banner
  • 11 Module:Portal-inline
  • 12 Module:Portal pictures
Usage
  • Wikipedia:Portal
  • Wikipedia:WikiProject Portals
For more information, see: Category:Template-Class Portal pages and Category:Wikipedia Portal templates
The above documentation is transcluded from Template:Transclude excerpts as random slideshow/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:Transclude_excerpts_as_random_slideshow&oldid=33914"
Categories:
  • Lua-based templates
  • Templates using TemplateStyles
Last edited on 23 July 2018, at 21:15

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 23 July 2018, at 21:15.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop