Difference between revisions of "Template:History of Canadian Broadcasting/doc"
Jump to navigation
Jump to search
imported>JJMC89 (tpl) |
imported>Nihlus (fixing) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 8: | Line 8: | ||
* {{tlc|{{BASEPAGENAME}}|<var>callsign</var>|<var>display</var>}} | * {{tlc|{{BASEPAGENAME}}|<var>callsign</var>|<var>display</var>}} | ||
| − | There are two parameters, the station callsign and how you want the link to display. Both are ''optional''. | + | 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 == | == Examples == | ||
| − | * {{tlc|{{BASEPAGENAME}}}} on page [[CKPC (AM)]] → {{{{BASEPAGENAME}}|CKPC|CKPC (AM)}} | + | * {{tlc|{{BASEPAGENAME}}}} on page [[CKPC (AM)]] → {{{{BASEPAGENAME}}|CKPC-AM|CKPC (AM)}} |
| − | * {{tlc|{{BASEPAGENAME}}|CKPC|CKPC (AM)}} → {{{{BASEPAGENAME}}|CKPC|CKPC (AM)}} | + | * {{tlc|{{BASEPAGENAME}}|CKPC-AM|CKPC (AM)}} → {{{{BASEPAGENAME}}|CKPC-AM|CKPC (AM)}} |
| + | |||
| + | == 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> | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
Latest revision as of 03:54, 25 October 2017
| This is a documentation subpage for Template:History of Canadian Broadcasting. It contains usage information, categories and other content that is not part of the original template page. |
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
{{History of Canadian Broadcasting}}on page CKPC (AM) → CKPC (AM) history – Canadian Communications Foundation{{History of Canadian Broadcasting|CKPC-AM|CKPC (AM)}}→ CKPC (AM) history – Canadian Communications Foundation
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
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Callsign | callsign 1 | The radio station's callsign, must have either -FM or -AM appended to it
| String | optional |
| Display | display 2 | The title of the link; will be followed by "history"
| String | optional |