Difference between revisions of "Template:C-SPAN/doc"
Jump to navigation
Jump to search
imported>Zyxw (note available Wikidata property, show current URL format) |
imported>Jc86035 (Wikidata) |
||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- 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]]) --> | ||
| − | {{Wikidata | + | {{Uses Wikidata|P2190}} |
This template allows linking to the C-SPAN link appropriate for many biographies. This will aid in the maintenance and standardization of these external links. | This template allows linking to the C-SPAN link appropriate for many biographies. This will aid in the maintenance and standardization of these external links. | ||
| Line 14: | Line 14: | ||
===Fields=== | ===Fields=== | ||
| − | The only field is the C-SPAN identifier. | + | The only field is the C-SPAN identifier. If it is not provided, then the first value from Wikidata will be used. If the Wikidata item does not have any {{Q|P2190}} data, or there is no Wikidata item for the article, then the article title will be used to generate a link. |
{| class="wikitable" | {| class="wikitable" | ||
Revision as of 09:24, 10 May 2019
| This is a documentation subpage for Template:C-SPAN. It contains usage information, categories and other content that is not part of the original template page. |
This template allows linking to the C-SPAN link appropriate for many biographies. This will aid in the maintenance and standardization of these external links.
Contents
Usage
- This template should not be substituted.
Cut & paste
{{C-SPAN|}}
Fields
The only field is the C-SPAN identifier. If it is not provided, then the first value from Wikidata will be used. If the Wikidata item does not have any Lua error in Module:Wd at line 196: attempt to index field 'wikibase' (a nil value). (P2190) data, or there is no Wikidata item for the article, then the article title will be used to generate a link.
| Field | Data | Result | URL source |
|---|---|---|---|
| 1 | C-SPAN id | Appearances on | https://www.c-span.org/person/?{{{1}}} |
jonstewart
Example
URL:
- https://www.c-spanvideo.org/jonstewart (former URL)
- https://www.c-span.org/person/?jonstewart (current URL)
Usage:
{{C-SPAN | jonstewart }}
Result:
Note:
- C-SPAN's naming convention varies, and while a concatenation of first name with last name appears to be most common, a middle name, middle initial, or alternate name may be a component of the id used for C-SPAN appearances. Also, not all political figures have appeared on C-SPAN.
See also
- {{Worldcat id}}