Template talk:C-SPAN

(Redirected from Template talk:C-SPAN/doc)
Latest comment: 2 years ago by Jimthing in topic Harmonize

Harmonize

edit

Any objections to harmonizing this template with others so that it reads "Bill Gates on C-SPAN" "Joe Smith on C-SPAN" instead of "Appearances on C-SPAN"? --Richard Arthur Norton (1958- ) (talk) 20:45, 31 October 2010 (UTC)Reply

Yes, completely agree. Why is this template completely different to most others? It should be made "Bill Gates on C-SPAN" (or even "Bill Gates appearances on C-SPAN" so the precise subject matter of the link appears clearly and forthrightly in the line. This is also important when more than one C-SPAN link needs to be done, otherwise all we have is:
Which is not very helpful at all! Jimthing (talk) 15:10, 21 May 2022 (UTC)Reply

Semi-protected edit request on 26 November 2014

edit

C-SPAN is now redirecting to this format:
http://www.c-span.org/person/?personname
71.23.178.214 (talk) 13:52, 26 November 2014 (UTC)Reply

  Done I've completed this request and I've also made the template case and whitespace insensitive and added a feature so that it should be possible to use the template on most BLPs without defining their name as a parameter (using {{PAGENAME}} as a default). Please update the documentation as is appropriate. — {{U|Technical 13}} (etc) 18:35, 26 November 2014 (UTC)Reply
edit

The purpose of this edit is to provide increased privacy and security for users by having the template generate an HTTPS link instead of the current HTTP link. C-SPAN appears to support HTTPS; for example, http://www.c-span.org/person/?jonstewart generates a 301 Moved Permanently redirect to https://www.c-span.org/person/?jonstewart. In the template, please change http://www.c-span.org/person/ to https://www.c-span.org/person/ instead. Thanks. --Elegie (talk) 11:44, 10 May 2017 (UTC)Reply

  Done Izno (talk) 12:11, 10 May 2017 (UTC)Reply

Wikidata

edit

Can this template be updated to pull information from Wikidata's C-SPAN person ID property? Trivialist (talk) 14:24, 24 June 2017 (UTC)Reply

Please put proposed code into Template:C-SPAN/sandbox and reactivate. — Martin (MSGJ · talk) 10:53, 27 June 2017 (UTC)Reply
edit

C-SPAN searches function better (i.e. find results more consistently) with insertion of a "+" between names rather than formatting them as a single word, along with an expanded URL such as the following:

https://www.c-span.org/search/?searchtype=People&query=colleen+hanabusa

Compare the results with those of the current:

https://www.c-span.org/person/?colleenhanabusa

Thanks —ADavidB 10:18, 8 August 2017 (UTC)Reply

Move to reference of C-Span Person as numeric ID

edit

The string IDs are breaking as noted above, but the numeric ID allows for consistent linking if the string changes example: ID 61258 is used in https://www.c-span.org/person/?61258/ColleenWakakoHanabusa which as noted in the "Broken link" discussion above for https://www.c-span.org/person/?colleenhanabusa found after using C-Span search ?searchtype=People&query=colleen+hanabusa. The numeric id is currently supported as it stands, but cleanup of existing uses of this template will be needed, warnings for entering a string rather than numeric, with finally moving only to numeric ids. This has been raised as an inconsistency with the Wikidata property and will help address a root cause of broken links using this template. Wolfgang8741 says: If not you, then who? (talk) 15:43, 23 February 2022 (UTC)Reply

Proposed additions and changes to the template for a transition to the numeric ID see C-SPAN person ID (P2190) and P2190 discussion - I'm not quite sure how to modify the template in the sandbox to make the following warnings and validation occur.
1. Deprecate the string parameter by displaying a warning on a page preview where the template is used with the text stated in number 2.
Until the string values are migrated to the number format the template should continue to display on pages, but the page preview warning for the format change.
Use of the template with the numeric format should display with no message on preview. Adding these pages to a tracking category as a subcategory of Category:C-SPAN called Category:People appearing on C-SPAN.
If no parameter value is present, the template should fall back to try and retrieve Wikidata values, if found display and categorize similar to the number format.
If no parameter AND no value found in Wikidata, show a warning on preview that "the C-SPAN template value entered is invalid or not found" and place the page in a tracking/maintenance category such as Category:C-SPAN template failing to display or whatever would be most appropriate for tracking.
2. Add preview warning text when using string format in templates "C-SPAN string IDs have been deprecated. Please use the number identifier from the person URL ie 61258 from https://www.c-span.org/person/?61258/ColleenWakakoHanabusa)
3. Add a maintenance category for string ID is used where numeric ID should exist - Category:C-SPAN template using deprecated parameter format.
4. (probably outside scope of the template modification)Final task is to cleanup existing string IDs (currently over 10,000) and convert to numeric values - URL Bot requested to assist values in Wikidata prior to 26 Feb 2022 have a numeric ID statement on Wikidata, those without couldn't be verified and are most likely are broken links.Wolfgang8741 says: If not you, then who? (talk) 21:26, 14 March 2022 (UTC)Reply
@Wolfgang8741: I have implemented the requested changes other than point 4, with some adjustments to better reflect the actual behaviour of the template (e.g. the error messages have been made more specific). Jc86035 (talk) 10:34, 16 March 2022 (UTC)Reply

Regex/category fix

edit

I would like to merge Template:C-SPAN/sandbox with the current template; I have modified the {{{1}}} regex to accomodate single-digit values and includeonly'd the uses of Category:Pages using non-numeric C-SPAN identifiers and Category:C-SPAN template failing to display so the template itself doesn't appear in them. Philroc (talk) 16:13, 28 March 2022 (UTC)Reply

  Done. Instead of includeonly tags, ifeq functions were used to also remove the sandbox and testcases pages from the categories. P.I. Ellsworth - ed. put'r there 19:33, 28 March 2022 (UTC)Reply

Adding Template:WikidataCheck once Wikidata Property Proposal resolves

edit

I'm suggesting adding Template:WikidataCheck to the template now that EN Wikipedia templates have been moved to numeric to add monitoring of value matches and divergence from the numeric values in Wikidata for the associate property. It adds three tracking categories. Wolfgang8741 says: If not you, then who? (talk) 00:52, 30 March 2022 (UTC)Reply

Proposal for split of P2190 (origin in a string format ID) to a numeric focused ID - C-SPAN Person Numeric ID Wolfgang8741 says: If not you, then who? (talk) 13:07, 30 March 2022 (UTC)Reply