Module talk:Citation/CS1: Difference between revisions

Content deleted Content added
ClueBot III (talk | contribs)
m Archiving 3 discussions to Module talk:Citation/CS1/Archive 12. (BOT)
Line 15:
}}
__TOC__
 
== COinS ==
When "|author=Y, X " is used we produce rft.au=Y%2C+X&rft.aulast=Y%2C+X which results in Zotero - duplicating the author. [[User:Shyamal|Shyamal]] ([[User talk:Shyamal|talk]]) 05:09, 31 August 2015 (UTC)
:Use {{para|last}} and {{para|first}} --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] ([[User talk:Redrose64|talk]]) 09:28, 31 August 2015 (UTC)
 
[[User:Shyamal|Shyamal]]: Please do not experiment in the live module. At the beginning of your experiment a large number of articles (essentially everything that uses [[Module:Citation/CS1]]) was dumped on the job queue. In the two minute duration of your experiment, hundreds or thousands of articles were changed to reflect the changes caused by your experiment. It may be a while before these changed articles are restored.
 
{{para|author}} and {{para|authors}} are free-form parameters. Editors can and do write all kinds of name formats in them. {{para|last}} also suffers from this but usually to a much lesser extent. Human names being what they are, getting them right in the COinS must rely on editors getting them right in the cs1|2 templates.
 
Are you suggesting that the module should not duplicate the first author name in both <code>&rft.aulast=</code> and <code>&rft.au=</code>? That can be done. Does this apply when there is only one author? What about when there is more than one author?
 
Should <code>&rft.aulast=</code> always be filled even when there is no {{para|first}} in the template?
 
—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 12:01, 31 August 2015 (UTC)
::I do not see where I can check the COinS output from the sandbox version which was why I resorted to that foolishness. I have not evaluated all the situations but ideally Zotero import of COinS from Wikipedia articles should produce well-parsed output (whether there are issues in Zotero, I do not know). Users follow either the author= for one author and authorN= for multiple authors OR the alternative form of last= first= (single) and lastN= | firstN= (for multiple authors) - if the last+first/lastN+firstN versions both work fine with Zotero - the same should hold for the author/authorN - ideally. Currently using author results in two authors being listed after COinS parsing by Zotero. [[User:Shyamal|Shyamal]] ([[User talk:Shyamal|talk]]) 13:05, 31 August 2015 (UTC)
:::::[Tangential question] - {{ping|Trappist the monk}} - I am unable to find any contents on LUA being handled a job to be queued - my impression was that the idea of LUA was that the code would be executed when a page is requested and that the only things that would get queued would be the caching and cluster synchronization of the code. [[User:Shyamal|Shyamal]] ([[User talk:Shyamal|talk]]) 15:43, 31 August 2015 (UTC)
 
::::::That is not how I understand it. I was once told that the server farm caches fully rendered copies of each article. Each time an article is edited, the cached copy is replaced with a newly rendered version. Change to template code takes a while to propagate to all affected pages. This is why it is sometimes necessary to purge or null edit pages.
 
::::::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 17:40, 31 August 2015 (UTC)
 
:::Changes to the the module sandbox can be evaluated by using the /new versions of the cs1|2 templates, for example:
::::<code><nowiki>{{cite book/new |title=Title |last=Last |first=First}}</nowiki></code>
:::::{{cite book/new |title=Title |last=Last |first=First}}
:::To see what the raw module output looks like, wrap the template in {{tlx|code}}:
::::<code><nowiki>{{code|{{cite book/new |title=Title |last=Last |first=First}}}}</nowiki></code>
:::which, for this example gives:
::::{{code|{{cite book/new |title=Title |last=Last |first=First}}}}
:::I am not at all sure I understand what you wrote. So rather than attempt a reply based on a misunderstanding, can I ask you to restate and perhaps provide cs1|2 examples of what you mean?
 
:::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 13:42, 31 August 2015 (UTC)
* Test 1 {{aye}} {{cite book/new |title=Title Test1|last=Last |first=First|year=2000}}
* Test 2 {{cite book/new | title=Title Test2|author=Last, First|year=2000}}
* Test 3 {{cite book/new |title=Title Test3| author1=Last1, First1|author2=Last2, First2| year=2000}}
* Test 4 {{aye}} {{cite book/new |title=Title Test4| last1=Last1| first1=First1| last2=Last2| first2=First2| year=2000}}
http://oi57.tinypic.com/zl3f3o.jpg - You are right it seems to be a problem with the author usage - notice that the first author alone gets duplicated in Test 3 [[User:Shyamal|Shyamal]] ([[User talk:Shyamal|talk]]) 15:39, 31 August 2015 (UTC)
 
:What does the red rectangle mean? What does (first) mean? As a guess, these mean that Zotero found <code>&rft.aulast=</code> without <code>&rft.aufirst=</code> which may or may not be an error because cs1|2 does not have a parameter for corporate authors so they are usually placed in {{para|last}} or {{para|author}}.
 
:I have extracted the author metadata from your examples:
:* Test 1 {{aye}} <code><nowiki>{{cite book/new |title=Title Test1|last=Last |first=First|year=2000}}</nowiki></code>
:*:<code><nowiki>&rft.aufirst=First</nowiki></code>
:*:<code><nowiki>&rft.aulast=Last</nowiki></code>
:*:<code><nowiki>&rft.au=Last%2C+First</nowiki></code>
:* Test 2 <code><nowiki>{{cite book/new | title=Title Test2|author=Last, First|year=2000}}</nowiki></code>
:*:<code><nowiki>&rft.aulast=Last%2C+First</nowiki></code>
:*:<code><nowiki>&rft.au=Last%2C+First</nowiki></code>
:* Test 3 <code><nowiki>{{cite book/new |title=Title Test3| author1=Last1, First1|author2=Last2, First2| year=2000}}</nowiki></code>
:*:<code><nowiki>&rft.aulast=Last1%2C+First1</nowiki></code>
:*:<code><nowiki>&rft.au=Last1%2C+First1</nowiki></code>
:*:<code><nowiki>&rft.au=Last2%2C+First2</nowiki></code>
:* Test 4 {{aye}} <code><nowiki>{{cite book/new |title=Title Test4| last1=Last1| first1=First1| last2=Last2| first2=First2| year=2000}}</nowiki></code>
:*:<code><nowiki>&rft.aufirst=First1</nowiki></code>
:*:<code><nowiki>&rft.aulast=Last1</nowiki></code>
:*:<code><nowiki>&rft.au=Last1%2C+First1</nowiki></code>
:*:<code><nowiki>&rft.au=Last2%2C+First2</nowiki></code>
:It is not clear to me that the way [[Module:Citation/CS1]] is doing things is correct. Why does the module concatenate the values from {{para|first}} and {{para|last}} into a value for <code>&rft.au=</code> when that author is already identified in <code>&rft.aufirst=</code> and <code>&rft.aulast=</code>? Is this duplication necessary?
 
:Perhaps an experiment is in order. I have hacked [[Module:Citation/CS1/sandbox]] so that <code>&rft.aufirst=</code> and <code>&rft.aulast=</code> are only filled when the first author is listed in the cs1|2 template with {{para|first}} and {{para|last}}.
 
:I have extracted the author metadata from the hacked version of the module using your same examples:
:* Test 1 <code><nowiki>{{cite book/new |title=Title Test1|last=Last |first=First|year=2000}}</nowiki></code>
:*:<code><nowiki>&rft.aufirst=First</nowiki></code>
:*:<code><nowiki>&rft.aulast=Last</nowiki></code>
:* Test 2 <code><nowiki>{{cite book/new | title=Title Test2|author=Last, First|year=2000}}</nowiki></code>
:*:<code><nowiki>&rft.au=Last%2C+First</nowiki></code>
:* Test 3 <code><nowiki>{{cite book/new |title=Title Test3| author1=Last1, First1|author2=Last2, First2| year=2000}}</nowiki></code>
:*:<code><nowiki>&rft.au=Last1%2C+First1</nowiki></code>
:*:<code><nowiki>&rft.au=Last2%2C+First2</nowiki></code>
:* Test 4 <code><nowiki>{{cite book/new |title=Title Test4| last1=Last1| first1=First1| last2=Last2| first2=First2| year=2000}}</nowiki></code>
:*:<code><nowiki>&rft.aufirst=First1</nowiki></code>
:*:<code><nowiki>&rft.aulast=Last1</nowiki></code>
:*:<code><nowiki>&rft.au=Last2%2C+First2</nowiki></code>
 
:So, do your test again using your examples and tell me if the hack makes a positive difference.
 
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 17:40, 31 August 2015 (UTC)
:::Yes! Definitely looks the way it ought to now. Thanks. [[User:Shyamal|Shyamal]] ([[User talk:Shyamal|talk]]) 02:23, 1 September 2015 (UTC)
::::Ok, I'll leave the experiment in the code for now.
 
::::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 09:55, 1 September 2015 (UTC)
:::::I missed you other query - the red rectangle shows that the first author is getting duplicated - I suspect that <code>&rft.aulast=</code> is used in cases where only one author in a long list is given and expanded automatically as ''et al.'' by Zotero. I hope your fix has no side-effects and that it will be incorporated into the main code at some point. Thanks. [[User:Shyamal|Shyamal]] ([[User talk:Shyamal|talk]]) 12:16, 1 September 2015 (UTC)
 
== Requested move 9 September 2015 ==
 
<div class="boilerplate" style="background-color: #efe; margin: 2em 0 0 0; padding: 0 10px 0 10px; border: 1px dotted #aaa;"><!-- Template:RM top -->
:''The following is a closed discussion of a [[WP:requested moves|requested move]]. <span style="color:red">'''Please do not modify it.'''</span> Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a [[Wikipedia:move review|move review]]. No further edits should be made to this section. ''
 
The result of the move request was: '''not moved'''. [[User:Jenks24|Jenks24]] ([[User talk:Jenks24|talk]]) 16:10, 25 September 2015 (UTC)
 
----
 
 
[[:Module:Citation/CS1]] → {{no redirect|Module:Citation/Formatting}} – CS1 stands for Citation Style 1, but this module is used for Citation Style 1, Citation Style 2, and even Vancouver-style citations. The name "CS1" is a confusing anachronism. [[User:Kaldari|Kaldari]] ([[User talk:Kaldari|talk]]) 23:20, 9 September 2015 (UTC) <small>''Relisted''. [[User:Jenks24|Jenks24]] ([[User talk:Jenks24|talk]]) 09:16, 17 September 2015 (UTC)</small>
*As long as this is done in a way that doesn't break citation formatting during the process of the move, it sounds ok. I have frequently complained on [[Help talk:Citation Style 1]] that decisions are made there that affect other citation styles without watchers of those other styles being notified of any discussion, so this sort of name change seems like a move in the right direction to me. —[[User:David Eppstein|David Eppstein]] ([[User talk:David Eppstein|talk]]) 00:43, 17 September 2015 (UTC)
::Well, if we're going to open this can of worms and move away from "CS1" as the name, we should consider whether "Citation" is the right name for the module, since some people may think that the module is used only for {{tl|Citation}}.
 
::Personally, I think the current name is fine, since anyone who gets here is probably at least a little bit technical and will read the documentation. Let's modify the documentation to make it very clear where this module is used, then call it a day. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 03:49, 17 September 2015 (UTC)
*'''Comment:''' I hope that [[User:Mr Stradivarius]] or [[User:Trappist the monk]] will add their opinions before this is closed, in case the rename turns out to be a bad idea, or in case simultaneous renames are needed. Even if it's a good idea, we don't want to break the world when closing (speaking from bad experience). [[User:EdJohnston|EdJohnston]] ([[User talk:EdJohnston|talk]]) 17:26, 17 September 2015 (UTC)
 
'''oppose''': This feels like a make-work project. If proposer were a regular contributor to discussions here or at [[Help talk:Citation Style 1]] and were proposer to have offered more substantial reasoning than the unsupported declaration that {{tq|[the] name "CS1" is a confusing anachronism}}, then it's possible that I might be persuaded that this isn't a make-work project. There are twenty-three cs1|2 templates and their sandboxes that will need to be touched, this module (which will require tweaking so we don't break links to its submodules and sandboxes – which should also move if the main module moves), a deal of documentation, and perhaps other stuff that I haven't thought of that must at least be looked at.
 
—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 22:40, 17 September 2015 (UTC)
:Well, it definitely confused me :P [[User:Kaldari|Kaldari]] ([[User talk:Kaldari|talk]]) 22:53, 17 September 2015 (UTC)
::What's confusing about the first two sentences of the documentation? "This module and associated sub-modules support the Citation Style 1 and Citation Style 2 citation templates. In general, it is not intended to be called directly, but is called by one of the core CS1 and CS2 templates." – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 00:53, 18 September 2015 (UTC)
*'''Strong oppose''' since the module is in use, ''and'' since apparently it must be so crucial to the functionality of this site that it is [[WP:CASCADE|cascade-protected]]. Leave it be; moving a module causes more problems than its worth since redirects do not exist in the "Module:" namespace. Moving this page ''will'' have severe negative consequences. [[User:Steel1943|<span style="color: #2F4F4F;">'''''Steel1943'''''</span>]] ([[User talk:Steel1943|talk]]) 02:00, 18 September 2015 (UTC)
* '''oppose''' This has been at this page ___location for a long time and probably everyone concerned with it knows what it is, what it’s called. It’s name is not in English but it’s not an article or other page meant for readers of the encyclopaedia, so it’s name does not have to be in English. Many templates and modules have similarly terse names. As for “formatting” it is no more concerned with that then every template on WP that generates HTML, i.e. most of them.--<small>[[User:JohnBlackburne|JohnBlackburne]]</small><sup>[[User_talk:JohnBlackburne|words]]</sup><sub style="margin-left:-2.0ex;">[[Special:Contributions/JohnBlackburne|deeds]]</sub> 05:08, 18 September 2015 (UTC)
** {{re|JohnBlackburne}} You completely misunderstood the point here. Nobody said anything like that. The problem is that it uses the name "CS1" to refer to CS1, CS2 ''and'' Vancouver citation styles. [[User:Nyuszika7H|nyuszika7h]] ([[User talk:Nyuszika7H|talk]]) 16:37, 18 September 2015 (UTC)
:::The only part of [[Vancouver system]] styling supported by cs1|2 is the author/editor name-list styling and that, incompletely.
::
:::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 17:30, 18 September 2015 (UTC)
 
'''Oppose''' per Trappist and because the Module's documentation is clear. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 03:47, 19 September 2015 (UTC)
----
:''The above discussion is preserved as an archive of a [[Wikipedia:Requested moves|requested move]]. <span style="color:red">'''Please do not modify it.'''</span> Subsequent comments should be made in a new section on this talk page or in a [[Wikipedia:Move review|move review]]. No further edits should be made to this section.</div><!-- Template:RM bottom -->
 
== Recent change ==
 
{{ping|Trappist the monk}} I think the recent change you've made here seems to have changed cite news so that page numbers are simply given as a number, so that for example a citation will now read "14 December 1912. 3. Retrieved 26 August 2015." instead of the old "14 December 1912. '''p.''' 3. Retrieved 26 August 2015." (bolding mine). At least I think it was the edit you made here that changed this, but templates/modules at this level of intricacy are beyond my pay-grade. If it is here, can this please be reversed? Example using cite news template:
 
:{{cite news|title=Obituary|url=http://trove.nla.gov.au/ndp/del/article/73480630|accessdate=26 August 2015|work=Footscray Independent|date=14 December 1912|page=3}}
 
Cheers, [[User:Jenks24|Jenks24]] ([[User talk:Jenks24|talk]]) 18:53, 26 September 2015 (UTC)
 
:Fixed. The function <code>is_valid_parameter_value()</code> is used to test the state of meta-parameter <code>NoPP</code>. If set to <code>yes</code>, <code>true</code>, or <code>y</code> then set the prefix meta-parameters <code>PPrefix</code> and <code>PPPrefix</code> to empty strings. But, <code>is_valid_parameter_value()</code> also considers {{para|nopp}} (empty or not present) to be a valid parameter value so the subsequent code dutifully set <code>PPrefix</code> and <code>PPPrefix</code> to empty strings. In all other uses of the function, the meta-parameter that is tested is the same meta-parameter that is set to an empty string when it does not have an acceptable value.
 
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 19:56, 26 September 2015 (UTC)
 
::Looks good to me now. Thanks! [[User:Jenks24|Jenks24]] ([[User talk:Jenks24|talk]]) 20:12, 26 September 2015 (UTC)
 
== False error message on cite encyclopedia ==