Template:Selected picture/doc

From CWS Planet
Jump to navigation Jump to search

This template is used to configure the articles found in the Selected picture section found on most Wikipedia Portal main pages. Used it on the article pages that are linked to the Selected picture sub-page, e.g. Portal:Foo/Selected picture/1. For the quickest and easiest way to create the Portal:Foo/Selected bar sub-page and related article links, use one of the {{Numbered subpages}} templates.

Template layout

{{Selected picture
| image      = 
| size       = 
| caption    = 
| gallery    = 
| location   = 
| text       = 
| credit     = 
| link       = 
| page       = 
| archive    =
| framecolor =
}}

Usage

It is unnecessary to include braces, quotation marks or other wiki-markup in the template. The |text= and |source= fields do allow the use of wiki-markup at the contributor's discretion.

  • image - Places an image relating to the subject of the article on the left side of the section.
  • size - Sets the image size, if left out or left blank it will default to 250px.
  • caption - Sets the Alt text ( WP:ALT), which briefly describes the image, and is spoken or braille-printed by screenreader software.
  • gallery - A "yes" will activate the gallery option
  • location- Location of gallery on Wikipedia
  • credit - Use this to credit the source or photographer that created the image
  • text - A brief summary of the subject, positioned below the image.
  • link - Sets the link in the Read more... that points to the full article.
  • page - Set an auxiliary page for the More selected foo if the sub page is at another location such as Selected image.
  • archive - Using this field with a value of no will remove the More selected pictures... link in the lower left corner. Use this field if you are using the |footer= parameter in the {{random box-header subpage}} template on the main portal page.
  • framestyle - The style of the frame (border). Choose from dotted, dashed, solid, double, groove, ridge, inset, and outset. Default value is ridge.
  • framecolor - Color of the image frame; defaults to #177245 (dark spring green).

Examples

{{Selected picture
| image    = Orange juice 1 edit1.jpg
| size     = 250px
| caption  = Orange juice being poured into a nearly full ...
| text     = A glass of orange juice 
| credit   = [[United States Department of Agriculture]]
| link     = Orange juice
}}

Will produce:

Credit: United States Department of Agriculture

A glass of orange juice

More selected pictures... Read more...

Gallery option

{{Selected picture
| image    = Panthera tigris sumatran subspecies.jpg
| size     = 
| caption  = A sunlit Sumatran tiger lying in short grass ...
| text     = The '''[[Sumatran Tiger]]''' (''Panthera tigris''...
| gallery  = yes
| location = Wikipedia:WikiProject_Cats/Gallery
| credit   = [[User:Dixi|Monika Betley]]. [[commons:Template:Potd/2004-12#5|A Featured picture of the day.]]
| link     = Sumatran tiger
}}

Will produce

Credit: Monika Betley. A Featured picture of the day.

The Sumatran Tiger (Panthera tigris sumatrae) is found only on the Indonesian island of Sumatra.

More selected pictures... Gallery Read more...

See also

Main portal creation templates
  • {{Box portal skeleton}}—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.
  • {{Random box-header subpage}}—Used to transclude a numbered subpage.
Main portal page formatting templates
3
Templates that configure links
3
These templates are used to format the articles on the sub-pages

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

3
Related templates