Difference between revisions of "Template:Infobox radio station"
imported>Echarlie m (1 revision imported) |
imported>Echarlie |
||
Line 7: | Line 7: | ||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
− | | label1 = [[City of license|City]] | + | | label1 = [[w:City of license|City]] |
| data1 = {{{city|}}} | | data1 = {{{city|}}} | ||
Line 18: | Line 18: | ||
| rowclass4 = note | | rowclass4 = note | ||
− | | label4 = [[Slogan]] | + | | label4 = [[w:Slogan|Slogan]] |
| data4 = {{{slogan|}}} | | data4 = {{{slogan|}}} | ||
− | | label5 = [[Frequency]] | + | | label5 = [[w:Frequency]] |
| data5 = {{{frequency|}}} | | data5 = {{{frequency|}}} | ||
− | | label6 = [[Broadcast relay station|Translator(s)]] | + | | label6 = [[w:Broadcast relay station|Translator(s)]] |
| data6 = {{{translator|}}} | | data6 = {{{translator|}}} | ||
− | | label7 = [[Repeater|Repeater(s)]] | + | | label7 = [[w:Repeater|Repeater(s)]] |
| data7 = {{{repeater|}}} | | data7 = {{{repeater|}}} | ||
Line 36: | Line 36: | ||
| data9 = {{{last airdate|}}} | | data9 = {{{last airdate|}}} | ||
− | | label10 = [[Radio format|Format]] | + | | label10 = [[w:Radio format|Format]] |
| class10 = category | | class10 = category | ||
| data10 = {{{format|}}} | | data10 = {{{format|}}} | ||
Line 47: | Line 47: | ||
| data12 = {{{share|}}} {{#if: {{{share source|}}}|({{{share as of|}}}, {{{share source|}}})}} | | data12 = {{{share|}}} {{#if: {{{share source|}}}|({{{share as of|}}}, {{{share source|}}})}} | ||
− | | label13 = [[Power rating|Power]] | + | | label13 = [[w:Power rating|Power]] |
| data13 = {{{power|}}} | | data13 = {{{power|}}} | ||
− | | label14 = [[Effective radiated power|ERP]] | + | | label14 = [[w:Effective radiated power|ERP]] |
| data14 = {{{erp|}}} | | data14 = {{{erp|}}} | ||
− | | label15 = [[Height above average terrain|HAAT]] | + | | label15 = [[w:Height above average terrain|HAAT]] |
| data15 = {{{haat|}}} | | data15 = {{{haat|}}} | ||
− | | label16 = [[List of North American broadcast station classes|Class]] | + | | label16 = [[w:List of North American broadcast station classes|Class]] |
| class16 = category | | class16 = category | ||
| data16 = {{{class|}}} | | data16 = {{{class|}}} | ||
− | | label17 = [[Facility ID]] | + | | label17 = [[w:Facility ID]] |
| data17 = {{{facility_id|}}} | | data17 = {{{facility_id|}}} | ||
Line 66: | Line 66: | ||
| data18 = {{{coordinates|}}} | | data18 = {{{coordinates|}}} | ||
− | | label19 = [[Call sign|Callsign meaning]] | + | | label19 = [[w:Call sign|Callsign meaning]] |
| data19 = {{{callsign_meaning|}}} | | data19 = {{{callsign_meaning|}}} | ||
Line 84: | Line 84: | ||
| data24 = {{{owner|}}} {{#if:{{{licensee|}}}|<br /><small>({{{licensee|}}})</small>}} | | data24 = {{{owner|}}} {{#if:{{{licensee|}}}|<br /><small>({{{licensee|}}})</small>}} | ||
− | | label25 = [[Sister station]]s | + | | label25 = [[w:Sister station]]s |
| data25 = {{{sister_stations|}}} | | data25 = {{{sister_stations|}}} | ||
− | | label26 = [[Webcast]] | + | | label26 = [[w:Webcast]] |
| data26 = {{{webcast|}}} | | data26 = {{{webcast|}}} | ||
Latest revision as of 17:55, 4 May 2017
This template is used on approximately 21,000 pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page before implementing them. |
Uses Lua: |
Contents
Usage
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|{{{alt}}}]] {{{caption}}} | |
City | {{{city}}} |
---|---|
Broadcast area | {{{area}}} |
Branding | {{{branding}}} |
Slogan | {{{slogan}}} |
w:Frequency | {{{frequency}}} |
Translator(s) | {{{translator}}} |
Repeater(s) | {{{repeater}}} |
First air date | {{{airdate}}} |
Last air date | {{{last airdate}}} |
Format | {{{format}}} |
Language(s) | {{{language}}} |
Audience share | {{{share}}} ({{{share as of}}}, {{{share source}}}) |
Power | {{{power}}} |
ERP | {{{erp}}} |
HAAT | {{{haat}}} |
Class | {{{class}}} |
w:Facility ID | {{{facility_id}}} |
Transmitter coordinates | {{{coordinates}}} |
Callsign meaning | {{{callsign_meaning}}} |
Former callsigns | {{{former_callsigns}}} |
Former frequencies | {{{former_frequencies}}} |
Affiliations | {{{affiliations}}} |
Operator | {{{operator}}} |
Owner |
{{{owner}}} ({{{licensee}}}) |
w:Sister stations | {{{sister_stations}}} |
w:Webcast | {{{webcast}}} |
Website | {{{website}}} |
{{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:
- {{Frequency}}
- {{Start date}}
- {{Coord}}
- {{URL}}
as above.
Microformat
The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.
Sub-templates
If the place or venue has an "established", "founded", "opened" or similar date, use {{start date}} unless the date is before 1583 CE.
If it has a URL, use {{URL}}.
Please do not remove instances of these sub-templates.
Classes
hCard uses HTML classes including:
- adr
- agent
- category
- county-name
- extended-address
- fn
- label
- locality
- nickname
- note
- org
- region
- street-address
- uid
- url
- vcard
Geo is produced by calling {{coord}}, and uses HTML classes:
- geo
- latitude
- longitude
Please do not rename or remove these classes nor collapse nested elements which use them.
Precision
When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name=
parameter.
TemplateData
See the monthly error report for this template.
TemplateData for Infobox radio station
<templatedata> { "description": "Infobox for radio stations", "params": { "name ": { "label": "Name", "description": "Name of radio station, often the callsign", "type": "line", "suggested": true }, "image": { "label": "Image", "description": "Image, often the logo of radio station", "type": "wiki-file-name" }, "city ": { "label": "City", "description": "Name of city of license", "type": "wiki-page-name", "suggested": true }, "area ": { "label": "Area", "description": "Name of broadcast area", "type": "string" }, "branding ": { "label": "Branding", "description": "Branding", "type": "string" }, "slogan ": { "label": "Slogan", "description": "Slogan of radio station", "type": "string" }, "frequency ": { "label": "Frequency", "description": "Frequency in Hertz, using Template:Frequency", "type": "line", "suggested": true }, "translator ": { "label": "Translators", "description": "Translator(s)", "type": "string" }, "repeater ": { "label": "Repeaters", "description": "Repeater(s)", "type": "string" }, "airdate ": { "label": "Airdate", "description": "First date of broadcast, using Expression error: Unrecognized word "dd"., YYYY ", "type": "string", "suggested": true }, "last airdate": { "label": "Last airdate", "description": "Last date of broadcast (for defunct stations), using Expression error: Unrecognized word "dd"., YYYY ", "type": "string" }, "share ": { "label": "Share",
"description": "Ratings/share",
"type": "string" }, "share as of": { "label": "Share as of",
"description": "Date of ratings/share value",
"type": "string" }, "share source ": { "label": "Share source",
"description": "Source of ratings/share value",
"type": "string"
},
"format": {
"label": "Format",
"description": "Programming format",
"type": "string",
"suggested": true
},
"language ": {
"label": "Language",
"description": "Language",
"type": "string"
},
"power": {
"label": "Power",
"description": "Power rating for AM stations, in Watts",
"type": "string"
},
"erp ": {
"label": "ERP",
"description": "Effective radiated power for FM stations, in Watts",
"type": "string"
},
"haat ": {
"label": "HAAT",
"description": "Height above average terrain, in meters",
"type": "string"
},
"class": {
"label": "Class",
"description": "Class",
"type": "string"
},
"facility_id ": {
"label": "Facility ID",
"description": "Facility ID",
"type": "string"
},
"coordinates ": {
"label": "Coordinates",
"description": "Transmitter coordinates, using Lua error in Module:Coordinates at line 601: attempt to index field 'wikibase' (a nil value).",
"suggested": true,
"type": "string"
},
"callsign_meaning ": {
"label": "Callsign meaning",
"description": "Callsign meaning",
"type": "string"
},
"former_callsigns": {
"label": "Former callsigns",
"description": "Former callsigns",
"type": "string"
},
"former_frequencies": {
"label": "Former frequencies",
"description": "Former frequencies",
"type": "string"
},
"affiliations ": {
"label": "Affiliations",
"description": "Affiliations of radio station",
"type": "string"
},
"operator": {
"label": "Operator",
"description": "Operator of radio station",
"type": "string",
},
"owner": {
"label": "Owner",
"description": "Owner of radio station",
"type": "string",
"suggested": true
},
"licensee": {
"label": "Licensee",
"description": "Licensee of radio station",
"type": "string"
},
"sister_stations ": {
"label": "Sister_stations",
"description": "Sister stations",
"type": "string"
},
"webcast ": {
"label": "Webcast",
"description": "Live streaming URL or radio station, using [URL Listen Live]",
"type": "string"
},
"website ": {
"label": "Website",
"type": "Website of radio station, using example
Tracking category
The above documentation is transcluded from Template:Infobox radio station/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |