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

Template:Main page image/ITN

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
< Template:Main page image
Template documentation[view] [edit] [history] [purge]
CSSThis template uses TemplateStyles:
  • Template:Main page image/ITN/styles.css

This template displays the image in Template:In the news, which is in turn displayed on the main page.

Syntax

{{In the news/image
 |image         = 
 |width         = 
 |caption       = 
 |title         = 
 |alt           =
 |link          = 
 |border        = 
 |caption align = 
 }}

Parameters

  • image – the image filename, without the "File:" prefix. If the image doesn't exist, an error will be produced. If this is blank, the template will not output anything.
  • width – the image size. This parameter is optional and is usually determined automatically using Module:Main page image.
  • caption – the caption text that will appear under the image, usually as short as possible, and without wikilinks.
  • title – a title for the image. Displayed as mouseover text. This is required if the image is specified.
  • alt – The alternative text for the benefit of those unable to see the image. Defaults to the value of |title=.
  • link – a file to link the image to, without the "File:" prefix. If the image doesn't exist, an error will be produced. This should be used to link to the original image page if the displayed image is cropped from another image.
  • border – If set to "yes", a small border is added around the image. Useful for images with white or transparent borders (see also Wikipedia:Picture tutorial#Border).
  • caption align – alignment, such as left, right, or center, for the caption text that will appear under the image. If this is blank, the caption will inherit the alignment of the surrounding text.

Example

{{In the news/image
 |image   = Phil Hughes cropped.jpg
 |width   = 
 |caption = Phillip Hughes
 |title   = Phillip Hughes
 |alt     = Phillip Hughes
 |link    = Phil Hughes.jpg
 |border  = no
}}
Phillip Hughes
Phillip Hughes
The above documentation is transcluded from Template:Main page image/ITN/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:Main_page_image/ITN&oldid=23432"
Category:
  • Templates using TemplateStyles
Last edited on 3 November 2021, at 09:54

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 3 November 2021, at 09:54.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop