साँचा:Road marker/doc

मुक्त ज्ञानकोश विकिपीडिया से
नेविगेशन पर जाएँ खोज पर जाएँ

{{

 साँचा:namespace detect

| type = notice | image = | imageright = | class = | style = margin-bottom:1.0em; | textstyle = | text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }}

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:

  1. 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.
  2. Create a template named Template:Road marker location by copying an existing template such as साँचा:tl 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.) साँचा:tl is a good place to test new templates: the result can be viewed using {{Road marker|sandbox|123}}.

Examples

National Highway 1 (India)

NH1, India
{{Road marker
 |IN NH
 |1
 |alt        = India's National Highway One
 |caption    = [[Wagah]] to [[New Delhi]]
 |width      = 200
}}
[[File:साँचा:Road marker IN NH|200px|India's National Highway One]]
<span style="font-family:साँचा:Road marker IN NH;
font-size: एक्स्प्रेशन त्रुटि: अनपेक्षित उद्गार चिन्ह "["।px;
border: none;
color: साँचा:Road marker IN NH;
background-color: साँचा:Road marker IN NH;

">1


All parameters

स्क्रिप्ट त्रुटि: "aligned table" ऐसा कोई मॉड्यूल नहीं है।

See also