{{{text}}}
![]() | This is the template sandbox page for Template:Selected picture (diff). See also the companion subpage for test cases. |
![]() | This template is used on approximately 2,500 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Preview message: Transclusion count updated automatically (see documentation). |
![]() | This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
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.
For an analogous template, which uses Wikipedia:Picture of the day as source, see {{Portal POTD}} and {{Portal POTD/Featured picture}}.
Simple usage
{{Selected picture
| image =
| credit =
| caption =
| link =
| text =
}}
Full usage
{{Selected picture
| image =
| size =
| credit =
| caption =
| link =
| text =
| location =
| page =
| type =
| archive =
}}
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=
|size=
|caption=
, |link=
|link=
must be a valid article, |caption=
is free-style text. Note that |caption=
will not be shown if |link=
is specified; instead, |caption=
will become the alt text for the image.|location=
|credit=
|text=
|page=
|archive=
{{Selected picture
| image = Orange juice 1 edit1.jpg
| size = 250px
| caption = A glass of orange juice
| text = '''[[Orange juice]]''' being poured into a nearly-full condensation-covered glass
| credit = [[United States Department of Agriculture]]
| link = Orange juice
}}
Will produce:
{{Selected picture
| image = Panthera tigris sumatran subspecies.jpg
| caption = A sunlit Sumatran tiger lying in short grass by a wall, head up, facing camera
| text = The '''[[Sumatran tiger]]''' (''Panthera tigris sumatrae'') is found only on the [[Indonesia]]n island of [[Sumatra]].
| 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 (note the link Gallery on the right):
Portal content templates
Main portal page formatting templates
Templates that configure links
Selected page templates, used on subpages of older portals
Related templates
© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search