Module talk:YouTubeSubscribers: Difference between revisions

Content deleted Content added
Design: add hatnote to prior convos to help us/others keep track
Design: Reply
Line 13:
 
:ok so I modified the module to return dates represented as <nowiki>{{Format date|YYYY|mm|dd}}</nowiki>. The number is represented as <nowiki>{{val|count}}</nowiki>. But that's easy to change. I'm currently just failing with error on error conditions. Tell me if this is good enough for you to proceed. I created a test cases page at [[Module talk:YouTubeSubscribers/testcases]]. [[User:BrokenSegue|''B''roken]][[User talk:BrokenSegue|''S''egue]] 02:42, 18 February 2023 (UTC)
::Replying in order:
::#It looks like {{t|Infobox YouTube personality}} already generates a reference to the channel itself, so as far as that application, we're all set. There should absolutely be a reference somehow, since that's a firm requirement of any Wikidata data being used on Wikipedia.
::#The infobox currently as {{para|subscriber_date}} as a separate parameter from {{para|subscribers}}, so it'd be easiest for me to work with a separate call. That way, I can just edit the infobox to replace the parameters with calls to the module. That also seems more flexible for other future use cases.
::#"47 million" is a lot more humanly readable than "47,001,747", so I'd say yes. {{t|Format price}} can be used, I think, even though we're not talking about a price here. As always, flexibility is nice, so if it's possible, it'd be nice to have an option to return a raw number for future use cases where that is desired.
::#Better error handling is always better. At minimum, we'll want it to return {{t|Error}} and link to the module documentation, where we'll explain what the issues might be and teach folks how to get to the Wikidata statement so they can fix them. Ideally, we'd give specific errors that would help folks even more easily implement fixes.
::Regarding the date format of the subscriber count, for the infobox, the documentation currently has it as "Month Year", which seems like a good level of detail to me — specifying the precise day is probably overkill. (It also sidesteps the need to abide by {{t|Use mdy dates}}/{{t|Use dmy dates}}, which is [[Wikipedia:Village_pump_(technical)/Archive_187#Date_formatting_outside_citations|alas currently very difficult]].) For other applications, the precise day might be desired; the format I'd suggest is Y-m-d, which is what the [[WP:CS1|common citation system]] currently defaults to.
::Cheers, <span style="color:#AAA"><small>&#123;{u&#124;</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}&#125;</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 05:58, 21 February 2023 (UTC)