Difference between revisions of "Template:C-SPAN"
Jump to navigation
Jump to search
imported>Izno (per tper) |
imported>Jc86035 (add Wikidata) |
||
| Line 1: | Line 1: | ||
| − | [https://www.c-span.org/person/?{{lc:{{#invoke:String|replace|source={{{1|<includeonly>{{PAGENAME}}</includeonly> | + | {{#if:{{{1|}}}|[https://www.c-span.org/person/?{{lc:{{#invoke:String|replace|source={{{1}}}|pattern=%s|replace=|plain=no}}}} Appearances] on [[C-SPAN]]|{{#if:{{wikidata|property|P2190}}|[https://www.c-span.org/person/?{{wikidata|property|P2190}} Appearances] on [[C-SPAN]] {{EditAtWikidata|pid=P2190}}|[https://www.c-span.org/person/?{{lc:{{#invoke:String|replace|source=<includeonly>{{PAGENAME}}</includeonly>|pattern=%s|replace=|plain=no}}}} Appearances] on [[C-SPAN]]}}}}<noinclude> |
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 09:20, 10 May 2019
Template:Wikidata Appearances on C-SPAN Script error: No such module "EditAtWikidata".
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}}} |
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}}
| The above documentation is transcluded from Template:C-SPAN/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |