Difference between revisions of "Template:History of Canadian Broadcasting"

From blackwiki
Jump to navigation Jump to search
imported>Nihlus
(providing tv option)
imported>Nihlus
(more freedom in link)
Line 1: Line 1:
[http://www.broadcasting-history.ca/listing_and_histories/{{#if:{{{tv|}}}|television|radio}}/<includeonly>{{lc:{{{callsign|{{{1|{{#ifexpr:{{str len|{{first word|{{PAGENAME}}}}}} > 4 |{{PAGENAME}}|{{first word|{{PAGENAME}}}}-AM}}}}}}}}}}</includeonly> {{{display|{{{2|{{#ifexpr:{{str len|{{first word|{{PAGENAME}}}}}} > 4 |{{PAGENAME}}|{{first word|{{PAGENAME}}}} AM}}}}}}}} history] – [[Canadian Communications Foundation]]<noinclude>
+
[http://www.broadcasting-history.ca/listing_and_histories/{{{type|{{{3|radio}}}}}}/<includeonly>{{lc:{{{callsign|{{{1|{{#ifexpr:{{str len|{{first word|{{PAGENAME}}}}}} > 4 |{{PAGENAME}}|{{first word|{{PAGENAME}}}}-AM}}}}}}}}}}</includeonly> {{{display|{{{2|{{#ifexpr:{{str len|{{first word|{{PAGENAME}}}}}} > 4 |{{PAGENAME}}|{{first word|{{PAGENAME}}}} AM}}}}}}}} history] – [[Canadian Communications Foundation]]<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 21:11, 25 October 2017

Expression error: Unrecognized punctuation character "[". historyCanadian Communications Foundation

Template documentation[view] [edit] [history] [purge]

Generates an external link to History of Canadian Broadcasting.

Usage

  • {{History of Canadian Broadcasting|callsign=callsign|display=display}}
  • {{History of Canadian Broadcasting|callsign|display}}

There are two parameters, the station callsign and how you want the link to display. Both are optional. If callsign is defined, it must have either -FM or -AM appended to it in order for the URL to work.

Examples

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 History of Canadian Broadcasting

A template for linking to History of Canadian Broadcasting

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Callsigncallsign 1

The radio station's callsign, must have either -FM or -AM appended to it

Example
CKPC-AM
Stringoptional
Displaydisplay 2

The title of the link; will be followed by "history"

Default
{{PAGENAME}}
Stringoptional