Difference between revisions of "Template:FML/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(update text)
imported>IagoQnsi
(documented new second parameter)
Line 7: Line 7:
 
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}|<var>callsign</var><nowiki>}}</nowiki></code>
 
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}|<var>callsign</var><nowiki>}}</nowiki></code>
  
Please do not add <code>-FM</code> to the callsign.
+
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}|<var>callsign</var>|<var>custom text</var><nowiki>}}</nowiki></code>
  
== Example ==
+
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.
  
Usage in the article [[WNEW-FM]]:
+
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.
  
<code><nowiki>{{</nowiki>{{BASEPAGENAME}}|WNEW<nowiki>}}</nowiki></code>
+
== Examples ==
 
+
{{Automarkup
Output:
+
| {{Make code|<<FML!WNEW>>}}
 
+
| {{Make code|<<FML!WNEW!NEW 102.7>>}}
{{{{BASEPAGENAME}}|WNEW}}
+
}}
 
 
URL:
 
 
 
<kbd>https://<nowiki/>radio-locator.com/info/{{hilite|WNEW}}-FM</kbd>
 
  
 
== See also ==
 
== See also ==

Revision as of 16:32, 4 July 2020

This template displays an external link to Radio-Locator.com (formerly the M.I.T. List of Radio Stations) for an FM station.

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]]

See also