Help talk:Citation Style 1/Archive 23
Appearance
![]() | This is an archive of past discussions about Help:Citation Style 1. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 20 | Archive 21 | Archive 22 | Archive 23 | Archive 24 | Archive 25 | → | Archive 30 |
The documentation for 'cite av media' needs to be improved...
I assume {{Cite AV media}} is supposed to be used for YouTube video references? Yet the documentation doesn't contain one "YouTube example". It would certainly help if such an example could be added to the documentation. Just sayin'... --IJBall (contribs • talk) 03:20, 17 August 2016 (UTC)
- Hello, IJBall
- Your assumption is wrong. YouTube is not a reliable source in Wikipedia and must never be used. (It can be used as a medium though, as opposed to a source, e.g. you link to a reliable source that has an embedded video.)
- {{Cite AV media}} is used for film and audio recordings, e.g. a conference available for sale on a tape, CD, DVD, Blu-Ray and online streaming.
- Best regards,
- Codename Lisa (talk) 08:58, 17 August 2016 (UTC)
- @IJBall: my opinion is a bit more nuanced than Codename Lisa's. If the appropriate entity uploads a video to YouTube, without violating copyright, and the video otherwise meets our requirements regarding reliable sources and self-published sources, then in that case the video is acceptable as a source. However, in this case, YouTube is not the publisher, but it's acting as a republisher of sorts. In that case, you'd cite the video as if YouTube had nothing to do with the video, crediting the original creators and publisher. Then you could add the appropriate
|url=
with|access-date=
and append|via=YouTube
to note where it was republished. - However, since most content on YouTube is self-published, it can't be used without complying with the exceptions noted at WP:SPS. Imzadi 1979 → 09:37, 17 August 2016 (UTC)
- Looks to me we are actually on the same page. Just different opinions of how to word our approach... —Best regards, Codename Lisa (talk) 09:44, 17 August 2016 (UTC)
- I actually knew all that. And, yes, I'm thinking of something like this which is simply a promo released directly from Nickelodeon on YouTube. Movie trailers direct from movie studios would be another example. In any case, this comes up a lot, and a "YouTube" example should be added to the {{Cite AV media}} documentation so that your garden variety editor knows how to properly cite YouTube, including the
|via=YouTube
parameter. --IJBall (contribs • talk) 15:01, 17 August 2016 (UTC)
- @IJBall: my opinion is a bit more nuanced than Codename Lisa's. If the appropriate entity uploads a video to YouTube, without violating copyright, and the video otherwise meets our requirements regarding reliable sources and self-published sources, then in that case the video is acceptable as a source. However, in this case, YouTube is not the publisher, but it's acting as a republisher of sorts. In that case, you'd cite the video as if YouTube had nothing to do with the video, crediting the original creators and publisher. Then you could add the appropriate
Replacements (gsub) in Module:Citation/CS1
Should str= mw.ustring.gsub (str, '[“”]', '\"');
be changed to str= mw.ustring.gsub (str, '[“”]', '%"');
as Lua escape character should be %, not standard regex \?
Same applies for line below. --Obsuser (talk) 03:50, 24 August 2016 (UTC)
- @Obsuser: In Lua, strings can use various escape sequences that start with
\
, including\"
. Further details at mw:LUAREF#string - Evad37 [talk] 08:57, 24 August 2016 (UTC)- @Obsuser: The Lua reference manual states that
\"
is a valid escape character for double quotes: Lexical Conventions. Normally%x
is usable in describing a character class forx
, (see Character Class, but within a replacement string a character class doesn't make sense, unless it's part of a capture. Try pasting:- print( string.gsub('123abc', '[2a]', '\"') )
- print( string.gsub('123abc', '[2a]', '"') )
- print( string.gsub('123abc', '[2a]', '%"') )
- into https://www.lua.org/cgi-bin/demo and you'll see that 1 & 2 work, but the interpreter barfs at the % in number 3. --RexxS (talk) 20:31, 24 August 2016 (UTC)
- @Evad37 and RexxS: Thank you. I was confused with mw:LUAREF#string.gsub which says for replacement string that "The character
%
works as an escape character: any...". However, the following part of the sentence mentions captures. - I've tried to use
:gsub(',', '%.')
on one string in Wikipedia module and it worked as I thought it would: I got "." instead of ",", not "%." instead of "," (I want to say that%
worked as escape character for dot; in https://www.lua.org/cgi-bin/demo it doesn't work that way). --Obsuser (talk) 21:01, 24 August 2016 (UTC)
- @Evad37 and RexxS: Thank you. I was confused with mw:LUAREF#string.gsub which says for replacement string that "The character
- @Obsuser: The Lua reference manual states that