మూస:Road marker/doc
This is a documentation subpage for మూస:Road marker. It may contain usage information, categories and other content that is not part of the original మూస page. |
This template displays a road marker as a composite image of an existing image with an optional label superimposed onto it. Typically, the image will depict a shield or other road sign, without the customary road number, and the label will be the desired road number in a matching style.
Usage
మార్చు{{Road marker |road type type of road indicated (mandatory parameter; no default) |road number the identifier to be superimposed, not necessarily numeric (default: blank) |alt = Alt text for image (default: generic description) |caption = image caption; for no caption enter "caption=" (default: road type + road number) |border = border colour; for no border enter "border=none" (default: #CCCCCC grey) |float = image float and clear direction: left, right, center or none (default: right) ... }}
A few other parameters are available to alter the default appearance of the specified road type. For example, you can reduce the standard font size to accommodate an unusually long road number. See "All Parameters" below for details.
Available road types
మార్చుParameter road type refers to {{Template:Road marker ''road type''}} which contains the details of markers used on a type of road. Typically, road type consists of an ISO 3166-1 alpha-2 country code, a space and a country-dependent class designation, e.g. "GB A" for British A-roads. Available templates are listed in Special:PrefixIndex/Template:Road_marker_. (You may need to select "Next page" in the upper-right corner.)
Please feel free to create {{Template:Road marker ''road type''}} for your favourite road types. You may find the advice below helpful.
See also Category:Road marker templates (which could usefully be split into subcategories).
Creating new road types
మార్చుTo make a new type of road available to this template:
- Find or create an image of a suitable marker (shield, etc.) with the number or other specific road identifier removed. Commons:Category:Highway shield blanks contains mainly US images which can be used directly. Commons:Category:Highway shield templates contains images which can be copied removing the dummy numbers to produce useful backgrounds.
- Create a template named Template:Road marker location by copying an existing template such as {{Road marker IN NH}} into it and modifying the values to the right of the = signs. You may need to add parameters not present in the existing template, such as background=colour and x=position. (Note: x is not yet implemented in the main template.) {{Road marker sandbox}} is a good place to test new templates: the result can be viewed using
{{Road marker|sandbox|123}}
.
Examples
మార్చుNH1, India
{{Road marker |IN NH |1 |alt = India's National Highway One |caption = [[Wagah]] to [[New Delhi]] |width = 200 }} |
All parameters
మార్చుParameter | Default | Description |
---|---|---|
{{{1}}} | – | Road type: must match template name |
{{{2}}} | (blank) | Road number: the identifier to be superimposed (not necessarily numeric) |
alt | (a generic description) | Alternative text when image not displayed |
caption | road type + road number | Caption to appear below image |
border | #ccc (grey) | Border colour; to remove border, use "none" |
float | right | Image float and clear direction: left, right, center, none |
image | (according to road type) | Image forming background to road number |
width | " | Width, in pixels, of image (omit "px") |
height | " | (not implemented) Height, in pixels, of image |
x | " | (not implemented) Horizontal position of centre of road number |
y | " | Vertical position of centre of road number (% from top) |
font | " | Font in which to display road number |
foreground | " | Text colour of road number |
background | " | Colour of patch behind road number (if any) |
size | " | Font size, in pixels (omit "px") |
See also
మార్చు- {{Location map}}, a similar type of template for use with maps.