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

From blackwiki
Jump to navigation Jump to search
imported>Nihlus
(+)
imported>Nihlus
(fixing)
 
(3 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
 
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
  
Generates a web-link for [http://www.broadcasting-history.ca broadcasting-history.ca].
+
Generates an external link to [http://www.broadcasting-history.ca History of Canadian Broadcasting].
  
 
== Usage ==
 
== Usage ==
 +
* {{tlc|{{BASEPAGENAME}}|callsign{{=}}<var>callsign</var>|display{{=}}<var>display</var>}}
 +
* {{tlc|{{BASEPAGENAME}}|<var>callsign</var>|<var>display</var>}}
  
<nowiki>{{BroadcastingHistoriesCanada|</nowiki>''callsign''{{!}}''display''<nowiki>}}</nowiki>
+
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.
  
There are two parameters, the station callsign and how you want the link to display. Both are ''optional''.
+
== Examples ==
 +
* {{tlc|{{BASEPAGENAME}}}} on page [[CKPC (AM)]] → {{{{BASEPAGENAME}}|CKPC-AM|CKPC (AM)}}
 +
* {{tlc|{{BASEPAGENAME}}|CKPC-AM|CKPC (AM)}}  → {{{{BASEPAGENAME}}|CKPC-AM|CKPC (AM)}}
  
Example:
+
== TemplateData ==
 +
{{TemplateData header}}
 +
<templatedata>
 +
{
 +
"description": "A template for linking to History of Canadian Broadcasting",
 +
"format": "inline",
 +
"params": {
 +
"callsign": {
 +
"label": "Callsign",
 +
"description": "The radio station's callsign, must have either -FM or -AM appended to it",
 +
"type": "string",
 +
"aliases": [
 +
"1"
 +
],
 +
"example": "CKPC-AM"
 +
},
 +
"display": {
 +
"label": "Display",
 +
"description": "The title of the link; will be followed by \"history\"",
 +
"default": "{{PAGENAME}}",
 +
"type": "string",
 +
"aliases": [
 +
"2"
 +
]
 +
}
 +
}
 +
}
 +
</templatedata>
  
{| class="wikitable"
+
<includeonly>{{sandbox other||
|-
 
! Code !! Result
 
|-
 
| <code><nowiki>{{BroadcastingHistoriesCanada}}</nowiki></code> on page [[CKPC (AM)]] || {{BroadcastingHistoriesCanada|CKPC|CKPC (AM)}}
 
|}
 
<includeonly>
 
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
<!-- Categories below this line, please; interwikis at Wikidata -->
 
[[Category:Radio external link templates]]
 
[[Category:Radio external link templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 03:54, 25 October 2017

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