Difference between revisions of "Template:FMQ/doc"
Jump to navigation
Jump to search
imported>DrChuck68 m (→See also) |
imported>Sammi Brie (add tdata) |
||
| (6 intermediate revisions by 3 users not shown) | |||
| Line 2: | Line 2: | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[</nowiki>[[Wikipedia:Wikidata]]<nowiki>]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[</nowiki>[[Wikipedia:Wikidata]]<nowiki>]]) --> | ||
| − | + | 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 == | == Usage == | ||
| − | <nowiki>{{FMQ|1=</nowiki>'' | + | <nowiki>{{FMQ|1=</nowiki>''callsign''<nowiki>|2=</nowiki>''URL text''<nowiki>}}</nowiki> |
Parameters: | Parameters: | ||
| − | *1 - the station | + | *1 - the station callsign, required |
*2 - the URL text, optional | *2 - the URL text, optional | ||
| Line 18: | Line 18: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| − | ! Code !! Result | + | ! Code !! Result !! URL |
|- | |- | ||
| − | | <code><nowiki>{{FMQ|WDRC}}</nowiki></code> || {{ | + | | <code><nowiki>{{FMQ|WDRC}}</nowiki></code> |
| + | | {{FMQ|WDRC}} | ||
| + | | <kbd>https://<nowiki/>transition.fcc.gov/fcc-bin/fmq?call={{hilite|WDRC}}</kbd> | ||
|- | |- | ||
| − | | <code><nowiki>{{FMQ|WDRC|WDRC-FM}}</nowiki></code> | + | | <code><nowiki>{{FMQ|WDRC|WDRC-FM}}</nowiki></code> |
| + | | {{FMQ|WDRC|WDRC-FM}} | ||
| + | | same as prior example | ||
|- | |- | ||
| − | | <code><nowiki>{{FMQ|WLIX-LP}}</nowiki></code> || {{ | + | | <code><nowiki>{{FMQ|WLIX-LP}}</nowiki></code> |
| + | | {{FMQ|WLIX-LP}} | ||
| + | | <kbd>https://<nowiki/>transition.fcc.gov/fcc-bin/fmq?call={{hilite|WLIX-LP}}</kbd> | ||
|- | |- | ||
| − | | <code><nowiki>{{FMQ|W245BA}}</nowiki></code> || {{ | + | | <code><nowiki>{{FMQ|W245BA}}</nowiki></code> |
| + | | {{FMQ|W245BA}} | ||
| + | | <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 == | ||
| − | |||
| − | |||
* {{tl|AMQ}} | * {{tl|AMQ}} | ||
| − | * {{tl|FCC | + | * {{tl|FCC letter}} |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
* {{tl|FCC-TV-Station-profile}} | * {{tl|FCC-TV-Station-profile}} | ||
* {{tl|TVQ}} | * {{tl|TVQ}} | ||
| − | <includeonly>{{ | + | <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 is a documentation subpage for Template:FMQ. It contains usage information, categories and other content that is not part of the original template page. |
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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Call sign | 1 | Call sign of radio station | String | required |
| Custom URL text | 2 | no description | String | optional |
See also
- {{AMQ}}
- {{FCC letter}}
- {{FCC-TV-Station-profile}}
- {{TVQ}}