Difference between revisions of "Template:AMQ/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>DrChuck68
(Removed link to deprecated template)
blackwiki>Zyxw
(add examples, display URLs generated, misc formatting)
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]] AM Query database for the applicable United States AM broadcast radio station.
+
This template displays an external link to the [[Federal Communications Commission]] AM Query database for the applicable United States AM broadcast radio station.
  
 
== Usage ==
 
== Usage ==
Line 18: Line 18:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Code !! Result
+
! Code !! Result !! URL
 
|-
 
|-
| <code><nowiki>{{AMQ|WGY}}</nowiki></code> || {{AMQ|WGY}}
+
| <code><nowiki>{{AMQ|WGY}}</nowiki></code>
 +
| {{AMQ|WGY}}
 +
| <kbd>https://<nowiki/>transition.fcc.gov/fcc-bin/amq?call={{hilite|WDRC}}</kbd>
 
|-
 
|-
| <code><nowiki>{{AMQ|WGY|WGY (810 AM)}}</nowiki></code> || {{AMQ|WGY|WGY (810 AM)}}
+
| <code><nowiki>{{AMQ|WGY|WGY (810 AM)}}</nowiki></code>
 +
| {{AMQ|WGY|WGY (810 AM)}}
 +
| same as prior example
 +
|-
 +
| <code><nowiki>{{AMQ|KJNO}}</nowiki></code>
 +
| {{AMQ|KJNO}}
 +
| <kbd>https://<nowiki/>transition.fcc.gov/fcc-bin/amq?call={{hilite|KJNO}}</kbd>
 +
|-
 +
| <code><nowiki>{{AMQ|XERA}}</nowiki></code>
 +
| {{AMQ|XERA}}
 +
| <kbd>https://<nowiki/>transition.fcc.gov/fcc-bin/amq?call={{hilite|XERA}}</kbd>
 
|}
 
|}
  

Revision as of 00:32, 16 August 2018

This template displays an external link to the Federal Communications Commission AM Query database for the applicable United States AM broadcast radio station.

Usage

{{AMQ|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 AM 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
{{AMQ|WGY}} WGY in the FCC's AM station database https://transition.fcc.gov/fcc-bin/amq?call=WDRC
{{AMQ|WGY|WGY (810 AM)}} WGY (810 AM) same as prior example
{{AMQ|KJNO}} KJNO in the FCC's AM station database https://transition.fcc.gov/fcc-bin/amq?call=KJNO
{{AMQ|XERA}} XERA in the FCC's AM station database https://transition.fcc.gov/fcc-bin/amq?call=XERA

See also