Difference between revisions of "Template:FML/doc"
Jump to navigation
Jump to search
imported>Zyxw (create) |
imported>Sammi Brie (tdata) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> | <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> | ||
| − | This template displays an external link to | + | |
| + | This template displays an external link to [http://radio-locator.com/ Radio-Locator.com] (formerly the [[M.I.T.]] List of Radio Stations) for an FM station. | ||
== Usage == | == Usage == | ||
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}|<var>callsign</var><nowiki>}}</nowiki></code> | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|<var>callsign</var><nowiki>}}</nowiki></code> | ||
| − | + | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|<var>callsign</var>|<var>custom text</var><nowiki>}}</nowiki></code> | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | <code><nowiki>{{</nowiki>{{BASEPAGENAME}}| | ||
| − | + | This will generate a link to <kbd>https://<nowiki/>radio-locator.com/info/{{hilite|<var>callsign</var>}}-FM</kbd>. Please do not add <code>-FM</code> to the callsign, as the template adds it automatically. | |
| − | + | To change the label of the link, you can pass in custom text as a second parameter. If the second parameter is omitted, the callsign will be used as the link label. | |
| − | + | == Examples == | |
| + | {{Automarkup | ||
| + | | {{Make code|<<FML!WNEW>>}} | ||
| + | | {{Make code|<<FML!WNEW!NEW 102.7>>}} | ||
| + | }} | ||
| − | < | + | == TemplateData== |
| + | {{TemplateData header}} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "Call sign", | ||
| + | "description": "Call sign of radio station, without -FM", | ||
| + | "required": true | ||
| + | } | ||
| + | }, | ||
| + | "description": "Radio-Locator query template for FM radio stations", | ||
| + | "format": "inline" | ||
| + | } | ||
| + | </templatedata> | ||
== See also == | == See also == | ||
Latest revision as of 03:23, 16 July 2020
| This is a documentation subpage for Template:FML. It contains usage information, categories and other content that is not part of the original template page. |
This template displays an external link to Radio-Locator.com (formerly the M.I.T. List of Radio Stations) for an FM station.
Contents
Usage
{{FML|callsign}}
{{FML|callsign|custom text}}
This will generate a link to https://radio-locator.com/info/callsign-FM. Please do not add -FM to the callsign, as the template adds it automatically.
To change the label of the link, you can pass in custom text as a second parameter. If the second parameter is omitted, the callsign will be used as the link label.
Examples
| Markup | Renders as |
|---|---|
[[:Template:MultiReplace]] |
|
[[:Template:MultiReplace]] |
|
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 FML
Radio-Locator query template for FM radio stations
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Call sign | 1 | Call sign of radio station, without -FM | Unknown | required |
See also