Difference between revisions of "Template:FMQ/doc"

From blackwiki
Jump to navigation Jump to search
imported>DrChuck68
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>]]) -->
  
Generates a web-link for the [[Federal Communications Commission]] FM Query database for the applicable United States FM broadcast radio station, including LPFM and translator stations.
+
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>''station-name''<nowiki>|2=</nowiki>''URL text''<nowiki>}}</nowiki>
+
  <nowiki>{{FMQ|1=</nowiki>''callsign''<nowiki>|2=</nowiki>''URL text''<nowiki>}}</nowiki>
  
 
Parameters:
 
Parameters:
*1 - the station name, required
+
*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> || {{FMQ|WDRC}}
+
| <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> || {{FMQ|WDRC|WDRC-FM}}
+
| <code><nowiki>{{FMQ|WDRC|WDRC-FM}}</nowiki></code>
 +
| {{FMQ|WDRC|WDRC-FM}}
 +
| same as prior example
 
|-
 
|-
| <code><nowiki>{{FMQ|WLIX-LP}}</nowiki></code> || {{FMQ|WLIX-LP}}
+
| <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> || {{FMQ|W245BA}}
+
| <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|AM station data}}
 
* {{tl|AML}}
 
 
* {{tl|AMQ}}
 
* {{tl|AMQ}}
* {{tl|FCC history cards}}
+
* {{tl|FCC letter}}
* {{tl|FM station data}}
 
* {{tl|FML}}
 
* {{tl|FMXL}}
 
* {{tl|LPFM station data}}
 
* {{tl|LPL}}
 
 
 
'''Television templates'''
 
 
* {{tl|FCC-TV-Station-profile}}
 
* {{tl|FCC-TV-Station-profile}}
 
* {{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