Template talk:Trains portal/News image
From Wikipedia, the free encyclopedia
< Template talk:Trains portal
[edit] Usage
This template is used in the "In the news..." section of Portal:Trains. It takes three parameters:
- The filename of an image to use
- The alternate text of the image
- An empty parameter to suppress the border
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.
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
- {{Trains portal/News image flag}} for a country flag
- {{Trains portal/News image 2}} for news events that reference two separate entities
- {{Trains portal/News image and Wikinews}} to include a link to the relevant WikiNews article