Difference between revisions of "Template:FMQ/doc"

From blackwiki
Jump to navigation Jump to search
imported>DrChuck68
imported>Sammi Brie
(add tdata)
 
(One intermediate revision by one other user not shown)
Line 36: Line 36:
 
| <kbd>https://<nowiki/>transition.fcc.gov/fcc-bin/fmq?call={{hilite|W245BA}}</kbd>
 
| <kbd>https://<nowiki/>transition.fcc.gov/fcc-bin/fmq?call={{hilite|W245BA}}</kbd>
 
|}
 
|}
 +
 +
== TemplateData==
 +
{{TemplateData header}}
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "Call sign",
 +
"description": "Call sign of radio station",
 +
"required": true,
 +
"type": "string"
 +
},
 +
"2": {
 +
"label": "Custom URL text",
 +
"type": "string"
 +
}
 +
},
 +
"description": "FCC FM Query template",
 +
"format": "inline"
 +
}
 +
</templatedata>
  
 
== See also ==
 
== See also ==
Line 43: Line 64:
 
* {{tl|TVQ}}
 
* {{tl|TVQ}}
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>{{Sandbox other||
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
{{DEFAULTSORT:Fmq}}
 
{{DEFAULTSORT:Fmq}}

Latest revision as of 03:26, 16 July 2020

This template displays an external link to the Federal Communications Commission FM Query database for the applicable United States FM broadcast radio station, including LPFM and translator stations.

Usage

{{FMQ|1=callsign|2=URL text}}

Parameters:

  • 1 - the station callsign, required
  • 2 - the URL text, optional

Historical note: Prior to the URL text parameter being added, the URL text Query the FCC's FM station database for {{{1}}}} was hard-coded into this template. When the URL text parameter was added, the previous text was left as the default.

Examples:

Code Result URL
{{FMQ|WDRC}} WDRC in the FCC's FM station database https://transition.fcc.gov/fcc-bin/fmq?call=WDRC
{{FMQ|WDRC|WDRC-FM}} WDRC-FM same as prior example
{{FMQ|WLIX-LP}} WLIX-LP in the FCC's FM station database https://transition.fcc.gov/fcc-bin/fmq?call=WLIX-LP
{{FMQ|W245BA}} W245BA in the FCC's FM station database https://transition.fcc.gov/fcc-bin/fmq?call=W245BA

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 FMQ

FCC FM Query template

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Call sign1

Call sign of radio station

Stringrequired
Custom URL text2

no description

Stringoptional

See also