Template:Voyage box/doc

From Wikipedia, the free encyclopedia
Jump to: navigation, search

This is a box meant to replicate the functionality of the various selected content templates for portals (Template:Selected article, Template:Selected picture, Template:Selected biography, etc.) in a contemporary style. It is called a Voyage box because the layout is loosely inspired by WikiVoyage's Main Page. It was first used for Portal:Nanotechnology.

Template layout[edit]

{{Voyage box
| image   = 
| size    = 
| caption = 
| side    =
| link    = <!--- Required --->
| name    = 
| icon    =
| born    =
| died    =
| page    =
| text    = <!--- Required --->
| credit  =
}}

Usage[edit]

  • image - The image to be displayed, no File:. If absent, no image will be displayed.
  • size - The image size. Defaults to 200px.
  • caption- The image caption, if desired.
  • image2, size2, caption2 - Displays a second image immediately to the right of the first one, if desired.
  • side - Either left or right, this affects both the position of the image and the justification of the text. Defaults to left.
  • link - Wikilink to the main article about the subject. Required.
  • name - The display text for the main article wikilink. If absent, link will be used.
  • icon - Adds a quality content icon to the first line. Options are FA, FL, FP, GA, FPCom, QI, and VI.
  • born - The year of birth, for use with selected biographies.
  • died - The year of death, for use with selected biographies. If this is used, born is also required.
  • page - The type of content, such as article, picture, biography, etc. This is displayed on the second line, and is used for the wikilink for that line. If absent, the default is article.
  • text - An extended description of the context, displayed on the third line.
  • credit - Credit for the author of a work, displayed on an optional fourth line, for use with selected pictures.

Example[edit]

{{Voyage box
| side       = right
| image      = Nanostar 1.jpg
| size       = 300px
| caption    = Transmission electron microscope image of a star-shaped nanoparticle
| link       = Nanoparticle
| page       = image
| text       = [[Transmission electron microscope]] (TEM) image of a star-shaped...
| credit     = E. Nalbant Esenturk and A. R. Hight Walker (NIST)
}}

Will produce this:

Nanoparticle

Selected image

Transmission electron microscope (TEM) image of a star-shaped nanoparticle. NIST scientists found that gold and silver nanostars improved the sensitivity of surface-enhanced Raman spectroscopy (SERS) 10 to 100,000 times that of other commonly used nanoparticles. These uniquely shaped nanoparticles may one day be used in a range of applications from disease diagnostics to contraband identification. Color added for clarity.
Credit: E. Nalbant Esenturk and A. R. Hight Walker (NIST)

Transmission electron microscope image of a star-shaped nanoparticle


See also[edit]

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.
    • {{Numbered subpages|max=25}}—As hereinbefore, but with 25 links.
    • {{Numbered subpages|max=75}}—As hereinbefore, but with 75 links.
    • {{Numbered subpages|max=100}}—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.

Related templates