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

Template:Portal pictures

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

This template is used to display a random selection of pictures on portals. When this template is used, all pictures are listed using a single page.

Template supports using pictures of the day and custom images. When transcluded on a subpage, template shows a list gallery of all pictures. When transcluded on a basepage (i.e. main page of a portal), templates shows a randomized slideshow of the pictures.

Template does not support showing video files.

Contents

  • 1 Usage
  • 2 Parameters
    • 2.1 Legacy subpages
  • 3 Examples
  • 4 See also

Usage

Put wikitext {{subst:Portal pictures/preload}} on the portal subpage, e.g. Portal:Sports/Selected picture and save. Add pictures to the template per instructions in the comments.

When the subpage is ready, put wikitext:

{{/Selected picture}}

on the main portal page, e.g. Portal:Sports.

To find appropriate pictures, use search box below, from {{POTD subpage search box}}:

Parameters

|1=, |2=, |3=...
Dates of the picture of the day in YYYY-MM-DD format. These should be the names of subpages of Template:POTD. See Wikipedia:Picture of the day/Archive.
|i1=, |title1=, |credit1=, |caption1=
|i2=, |title2=, |credit2=, |caption2=
|i3=, |title3=, |credit3=, |caption3=...
Use numbered parameters to display images, which don't have a POTD subpage.
|more=
Wikitext for the footer. For example, |more=[[Portal:Sports/Selected picture|More selected pictures...]]. Optional. Defaults to [[Portal:{{ROOTPAGENAME}}/Selected picture|More selected pictures]].
|more=no
Special value of parameter |more= to not show the footer.
|subpage=
Name of the subpage if it is different from the default "Selected picture", e.g. |subpage=Selected pictures. Optional.

Legacy subpages

If the portal has legacy subpages (e.g. Portal:Brazil/Selected picture/20) and you wish to re-use them via {{Portal pictures}}, pass the maximum subpage number via parameter |subpagemax=. The template will automatically pick up all subpages from one to the maximum number. By default, "Selected picture" is used as root subpage. Custom subpage can be specified via parameter |subpage=, e.g. |subpage=Featured picture. Example of such usage can seen at Portal:Brazil/Selected picture.

Examples

See usage of {{Portal pictures}} at Portal:History/Featured picture, Portal:Sports/Selected picture, and Portal:Arthropods/Selected picture.

See also

  • {{subst:Portal pictures/preload}}
  • {{Portal pictures/portal doc}}
  • Wikipedia:Picture of the day/Archive
  • 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:Portal pictures/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:Portal_pictures&oldid=27149"
Categories:
  • Lua-based templates
  • Templates using TemplateStyles
  • Wikipedia Portal templates
Last edited on 31 October 2020, at 11:53

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 31 October 2020, at 11:53.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop