Difference between revisions of "Template:Infobox radio station/doc"

From blackwiki
Jump to navigation Jump to search
(Undid revision 759428715 by 104.243.164.77 (talk))
Line 32: Line 32:
 
| class              =  
 
| class              =  
 
| facility_id        =  
 
| facility_id        =  
| pushpin_map        = <!-- name of a location map as per Template:Location_map -->
 
| pushpin_label_position = <!-- position of the pushpin label: left, right, top, bottom, none -->
 
| pushpin_label      = <!-- only necessary if "name" or "official_name" are too long -->
 
| pushpin_map_alt    =
 
| pushpin_mapsize    =
 
| pushpin_relief    =
 
| pushpin_map_caption =
 
 
| coordinates        = <!-- {{coord|}} -->
 
| coordinates        = <!-- {{coord|}} -->
 
| callsign_meaning  =  
 
| callsign_meaning  =  
Line 186: Line 179:
 
"description": "Facility ID",
 
"description": "Facility ID",
 
"type": "string"
 
"type": "string"
},
 
"pushpin_map": {
 
"label": "pushpin_map",
 
"description": "The name of a location map (e.g. 'Indonesia' or 'Russia'). The coordinates information (from the coordinates parameter) position a pushpin coordinate marker and label on the map 'automatically'. Example see: Padang, Indonesia",
 
"type": "string",
 
"required": false
 
},
 
"pushpin_label_position": {
 
"label": "pushpin_label_position",
 
"description": "The position of the label on the pushpin map relative to the pushpin coordinate marker. Valid options are {left, right, top, bottom, none}. If this field is not specified, the default value is ''right''.",
 
"type": "string",
 
"required": false
 
},
 
"pushpin_map_alt": {
 
"label": "pushpin_map_alt",
 
"description": "Alt text for pushpin map.",
 
"type": "string",
 
"required": false
 
},
 
"pushpin_mapsize": {
 
"label": "pushpin_mapsize",
 
"description": "Must be entered as only a number—do not use px. The default value is 250.",
 
"type": "number",
 
"required": false
 
},
 
"pushpin_map_caption": {
 
"label": "pushpin_map_caption",
 
"description": "Fill out if a different caption from ''map_caption'' is desired.",
 
"type": "string",
 
"required": false
 
},
 
"pushpin_relief": {
 
"label": "pushpin_relief",
 
"description": "Set this to 'y' or any non-blank value to use an alternative relief map provided by the selected location map (if a relief map is available).",
 
"type": "string",
 
"required": false
 
},
 
"pushpin_overlay": {
 
"label": "pushpin_overlay",
 
"description": "Can be used to specify an image to be superimposed on the regular pushpin map.",
 
"type": "string",
 
"required": false
 
 
},
 
},
 
"coordinates ": {
 
"coordinates ": {

Revision as of 02:45, 11 January 2017

Usage

Template:Parameter names example

{{Infobox radio station
| name               = 
| image              = 
| image_size         = <!-- optional when used with image parameter, specifies image size -->
| alt                = <!-- optional when used with image parameter, specifies image alternate (alt) text -->
| caption            = <!-- optional when used with image parameter, specifies image caption -->
| city               = 
| area               = 
| branding           = 
| slogan             = 
| frequency          = <!-- {{Frequency|NNN|XHz}} -->
| translator         = 
| repeater           = 
| airdate            = <!-- {{Start date|YYYY|MM|DD|df=yes/no}} -->
| last airdate       = <!-- for defunct stations -->
| share              = 
| share as of        = 
| share source       = 
| format             = 
| language           = 
| power              = 
| erp                = 
| haat               = 
| class              = 
| facility_id        = 
| coordinates        = <!-- {{coord|}} -->
| callsign_meaning   = 
| former_callsigns   = 
| former_frequencies = 
| affiliations       = 
| operator           = 
| owner              = 
| licensee           = 
| sister_stations    = 
| webcast            = <!-- [URL Listen Live] -->
| website            = <!-- {{URL|example.com}} -->
}}

Parameters

All fields except for name, format, and owner are optional and will be hidden when not used; when values are entered for the relevant parameters, the fields will automatically appear.

The parameters translator and repeater should not both be used, except in unusual circumstances.

Sub-templates

Where possible, use:

as above.

Microformat

Template:UF-hcard-geo

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Infobox radio station

Syntax error in JSON.

Tracking category