সাঁচ:Road marker/doc
এয়া হৈছে ‘সাঁচ:Road marker’ শীৰ্ষক সাঁচটোৰ নথিকৰণৰ উপপৃষ্ঠা। ইয়াত সাঁচটো ব্যৱহাৰৰ তথ্য, শ্ৰেণীসমূহ, আন্তঃৱিকি সংযোগবোৰ আৰু অন্য সমল থাকে, যিবোৰ মূল সাঁচ পৃষ্ঠাটোৰ অংশ নহয়। |
Purpose
[সম্পাদনা কৰক]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} | No default | Road type: must match template name |
{2} | (blank) | Road number: the identifier to be superimposed, not necessarily numeric |
alt= | Generic description | Alternative text when image is not displayed |
caption= | Road type + road number | Caption to appear below image |
border= | #CCCCCC (grey) | Border colour; for no border enter "border=none" |
float= | right | Image float and clear direction: left, right, center or none |
image= | From road type | Basic image forming background to road number |
width= | From road type | Width of image (number without "px") |
height= | From road type | Height of image (not implemented) |
x= | From road type | Horizontal position of centre of road number (not implemented) |
y= | From road type | Vertical position of centre of road number (% from top) |
font= | From road type | Font of road number |
foreground= | From road type | Text colour of road number |
background= | From road type | Colour of patch behind road number (if any) |
size= | From road type | Font size (number without "px") |
See also
[সম্পাদনা কৰক]- {{Location map}} - a mapping solution using similar techniques