Template talk:Trains portal/News image

From Wikipedia, the free encyclopedia

This article is within the scope of WikiProject Trains, an attempt to build a comprehensive and detailed guide to rail transport on Wikipedia. If you would like to participate, you can visit the project page, where you can join the project and/or contribute to the discussion.
See also: WikiProject Trains to do list
Template This page is a template and does not require a rating on the quality scale. (assessment comments)
??? This article has not yet received a rating on the importance scale within the Trains WikiProject.
This page is within the scope of the Portal task force.

[edit] Usage

This template is used in the "In the news..." section of Portal:Trains. It takes three parameters:

  1. The filename of an image to use
  2. The alternate text of the image
  3. An empty parameter to suppress the border
An Amtrak train in Vermont

For example, the following code:

{{Trains portal/News image|Amtrak train.jpg|An Amtrak train in Vermont|}}

produces the image of an Amtrak train shown at right.

Flag of Slovenia

To include a border around the image, which is useful for flags that contain areas of white bordering the edge of the image, leave the final pipe symbol off the parameter list. For example, the following code:

{{Trains portal/News image|Flag of Slovenia.svg|Flag of Slovenia}}

produces the image of Slovenia's flag shown at right.

[edit] See also