Content deleted Content added
Anomalocaris (talk | contribs) m fixed lint errors: Tidy bug affecting font tags wrapping links (6) Obsolete HTML tags (6) |
Added threads from Module_talk:Citation/CS1/Feature_requests |
||
(9 intermediate revisions by the same user not shown) | |||
Line 424:
::::{{small|The HTML classes discussion does not include a class for the included work title, so I made up an illustrative class.}} --'''''— [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup> 14:58, 30 March 2013 (UTC)
:::::This allows the style to be customized per Wikipedia language version. In the CSS above, \22 is the hex code for the standard quote mark. This can be replaced with other marks: see [[Non-English usage of quotation marks]]. --''''' [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup> 00:17, 12 April 2013 (UTC)
== Fix bug causing spurious "Check |url= value" warnings on single-letter subdomains of 4-or-more-letter gTLDs (e.g. "z.cash") ==
The is_domain_name function incorrectly considers <single letter>.<4-or-more-letter gTLD> not to be a valid ___domain.
See https://en.wikipedia.org/wiki/Zcash#References for an example; "z.cash" is incorrectly considered not to be a valid ___domain. (See https://www.iana.org/domains/root/db/cash.html for the delegation record of ".cash".) The fix is straightforward.
[[User:Daira Hopwood|Daira Hopwood ⚥]] ([[User talk:Daira Hopwood|talk]]) 02:36, 8 August 2017 (UTC)
:Fixed in the sandbox.
::<code><nowiki>{{Cite web/new|url=https://z.cash/about.html|title=Zcash - About}}</nowiki></code>
:::{{Cite web/new|url=https://z.cash/about.html|title=Zcash - About}}
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 11:00, 8 August 2017 (UTC)
:Thanks :-) [[User:Daira Hopwood|Daira Hopwood ⚥]] ([[User talk:Daira Hopwood|talk]]) 12:44, 8 August 2017 (UTC)
== Suppress spurious warning about zero-width joiner ==
<nowiki>{{cite web|title=തിരുവിതാംകൂര്|language=Malayalam}}</nowiki> on the [[Travancore]] article displays with a warning:
* {{cite web|title=തിരുവിതാംകൂര്|language=Malayalam}}
The zero-width joiner is at the very end and is needed for the title to render correctly.
* തിരുവിതാംകൂര്‍ - title with the zero-width joiner
* തിരുവിതാംകൂര് - title without the zero-width joiner
I see that the citation templates support {{para|ignore-isbn-error|true}} to suppress warnings about the ISBN. Can support for {{para|ignore-title-error|true}} be added to suppress warnings about the title field's content?
See [[Zero-width joiner#Examples]] for how the zero-width joiner and also [[Zero-width non-joiner#Use of ZWNJ to display alternate forms]] are used to control the rendering of Indic scripts. http://unicode.org/review/pr-37.pdf goes into technical details.
Another option, would be for you to check the language field and if it's set to one of the [[Brahmic scripts]], [[Indo-Aryan languages]], or [[Arabic script]]s to suppress the warnings about ZWJ and ZWNJ. --[[User:Marc Kupper|Marc Kupper]]|[[User talk:Marc Kupper|talk]] 00:47, 6 June 2016 (UTC)
: I thought of a work-around that does not involve changing the template. Instead, the title can be entered using [[HTML entities]]. Here's the {{tl|cite web}} used in the previous example but using the entities &#x0D24;...&#x200D; rather than UTF-8 as before.
:* {{cite web|title=തിരുവിതാംകൂര്‍|language=Malayalam}}
:Or, I can enter the title in UTF-8 except for the zero width joiner which I entered as an HTML entity.
:* {{cite web|title=തിരുവിതാംകൂര്‍|language=Malayalam}}
:There's no warning about the zero width joiner character though I did use one. The downsides are 1) people are used to copy/pasting UTF-8 strings and would need to convert them to HTML entities. 2) If the entire title is converted then it's no longer human readable when in edit-mode and is confusing to humans should just the zero-width joiners be entered as entities.
: Another way to code the template check which is to see if any characters in the string being examined are part language blocks that uses characters such as the zero-width joiner and to then suppress warnings about the zero-width joiners. All 13 characters in the example title prior to the zero-width joiner were in the [[Malayalam (Unicode block)]] which runs from U+0D00 to U+0D7F. --[[User:Marc Kupper|Marc Kupper]]|[[User talk:Marc Kupper|talk]] 01:22, 8 June 2016 (UTC)
::Please let us not go back to 2004 with HTML entities.
::These are valid Unicode characters, which are required in these languages, and which can be easily typed using keyboards for these languages.
::The right thing would be to check the language automatically and not show this error if it is one of the languages in which this character is valid, as you suggest initially. --[[User:Amire80|Amir E. Aharoni]] ([[User talk:Amire80|talk]]) 15:28, 20 July 2016 (UTC)
== Reporting apparent error in error indication ==
I was looking at [[Help:CS1#How the templates work]], and saw what looked like unintended error indications there as follows:
{{quote|CS1 templates present a citation generally as:
* With author:
:{{Cite journal |last=Author |date=Date |title=Title |work=Work |publisher=Publisher |id=Identifiers |template doc demo=true}}
* Without author:
:{{Cite journal |date=Date |title=Title |work=Work |publisher=Publisher |id=Identifiers |template doc demo=true}}
}}
:(note: wikitext for above copied from ''Help:CS1#How the templates work'')
I'm guessing that this comes from the handling of the <code><nowiki>|template doc demo=true</nowiki></code> parameter which is passed there to {{tl|Cite journal}}. I would be outside my comfort zone to pursue this further myself, so I am reporting it here. [[User:Wtmitchell|Wtmitchell]] [[User talk:Wtmitchell|(talk)]] <small>(earlier ''Boracay Bill'')</small> 22:24, 25 April 2017 (UTC)
:Not a feature request, how did you end up here?
:{{para|template doc demo|true}} does not prevent error messages; it only prevents this page from being included in {{cl|CS1 errors: dates}}. To get rid of the error message, those citations will require a valid date: {{para|date|Date}} is not a valid date; or, the citations should be handwritten without using the templates.
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 22:37, 25 April 2017 (UTC)
== prearchive for deadurl ==
Add {{para|prearchive|yes}} as an alias to {{para|deadurl|no}}. Negative logic like setting a parameter to false to enable a feature is foreign to the average editor. 'prearchive' better describes the feature for preemptively archiving the link. --''''' [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup> 16:30, 6 April 2013 (UTC)
:I am seeing a number of uses of {{para|deadurl|yes}} which is meaningless. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 12:37, 31 October 2014 (UTC)
== Check for wikilink to current page ==
If a citation includes a wikilink to the current page, it becomes bolded:
{{markup
|<nowiki>{{cite book |title=[[Module talk:Citation/CS1/Feature requests]]}}</nowiki>
|{{cite book |title=[[Module talk:Citation/CS1/Feature requests]]}}
}}
Propose: If the wikilink is to the current page, then remove the linking. --''''' [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup> 16:18, 12 April 2013 (UTC)
:If this is done, it should be done via CSS. Removing the irrelevant italics, the output is styled
::<nowiki><span class="citation book"><strong class="selflink">Module talk:Citation/CS1/Feature requests</strong></span></nowiki>
:Setting ".citation .selflink { font-weight:normal; }" will remove the bold. [[User:Dragons flight|Dragons flight]] ([[User talk:Dragons flight|talk]]) 18:05, 12 April 2013 (UTC)
:If this is done, then it should apply to all links. I've seen lists of books in author pages where the list is constructed with CS1 templates that include {{para|authorlink}}. See [[Andrew_Hunt_(historian)#Bibliography|Andrew Hunt §Bibliography]].
:—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 14:43, 27 April 2013 (UTC)
::Yes, the suggested CSS would eliminate the bolding associated with such links regardless of where they occur in the citation. Adding that (or not) doesn't actually affect the Module, it would need to go in [[Mediawiki:Common.css]] (or similar). [[User:Dragons flight|Dragons flight]] ([[User talk:Dragons flight|talk]]) 16:36, 27 April 2013 (UTC)
:::Yep, it does. Tested in my common.css and citation wikilinks to the current page aren't '''{{tag|strong|s}}''' anymore. I gather that this change needs to be made to [[MediaWiki:Common.css]]. Shall I make an edit request there?
:::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 11:43, 28 April 2013 (UTC)
:It would make more sense to me to throw an error in these cases for correction, as these items of various types (author/title) probably just shouldn't have the links rather than being removed by the template. Where an error might get messy would be in things like cite doi, which are by their nature not necessarily on the page which is linked. Hmm. --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 03:44, 28 April 2013 (UTC)
::I'm inclined to disagree. There is nothing ''wrong'' with wikilinks that point to the current page as long as the link is disabled in the citation. This allows editors to reuse whole citations; it allows {{xtag|section}} to transclude text from one article to another with self-linking citations intact. I don't see a need for error messages here.
::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 11:43, 28 April 2013 (UTC)
:::And citation templates. I agree with Trappist. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 13:06, 28 April 2013 (UTC)
::::Just exploring another option. I'm not particularly attached to it. --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 13:20, 28 April 2013 (UTC)
:::::The CSS can deal easily with redirects and wikilinks that occur in places other than link parameters. Trying to accomplish the same breadth of error checking in Module logic would be performance prohibitive. One could check a few of the obvious parameters, e.g. authorlink, but I don't really see how that improves over the CSS suggestion. [[User:Dragons flight|Dragons flight]] ([[User talk:Dragons flight|talk]]) 22:13, 20 May 2013 (UTC)
:I'd suggest that people make a request for this at [[MediaWiki talk:Common.css]]. [[User:Dragons flight|Dragons flight]] ([[User talk:Dragons flight|talk]]) 22:13, 20 May 2013 (UTC)
== [[Template:Cite wikisource]] ==
Could anybody move it to Lua? --[[User:DixonD|DixonD]] ([[User talk:DixonD|talk]]) 09:26, 10 May 2013 (UTC)
:it has some novel parameters, including the unique facility of editor-specified page section links ({{para|anchor}}). in the doc, this parameter perhaps belongs under "In-source locations" rather than under "Title"? while useful, the parameter name '''anchor''' is confusing and should be more user-friendly.
:i also like that any or all wikisource-related icons can be hidden.
:the doc also misidentifies '''type''': this parameter does not provide "additional information about the media type of the source". the medium is fixed for all wikisource sources: it is a digital, online host, formatted as a wiki. as documented at the template page, '''type''' provides information about the {{em|work classification}} or {{em|work type}} of the source.
:[[Special:Contributions/70.19.122.39|70.19.122.39]] ([[User talk:70.19.122.39|talk]]) 17:45, 11 May 2013 (UTC)
:I've done a few more conversions this last weekend. I've been handling these roughly in order by number of transclusions. The 1100 uses of cite wikisource is roughly in the middle of the list of what is left. We'll probably get to it eventually, but it will likely be months before all of the 20+ minor templates are converted. [[User:Dragons flight|Dragons flight]] ([[User talk:Dragons flight|talk]]) 22:38, 20 May 2013 (UTC)
== Chapter and section ==
Why is there a restriction on using "chapter" and "section" at the same time? It seems to me there are legitimate need for the two to be used at the same time.Here is a book which has volume, sections and chapters:
*Bowen, Dr. Henry Lee; 1953; "Chapter 9. Victory in China"; ''The Army Air Forces in World War II''; Volume V The Pacific: Matterhorn to Nagasaki June 1944 to August 1945; Section II, Aid to China: The Theater Air Forces in CBI; University of Chicago Press.
-- [[User:PBS|PBS]] ([[User talk:PBS|talk]]) 13:33, 14 June 2013 (UTC)
:'section' originates from {{tl|cite manual}}. When I merged it into {{tl|cite book}}, I made 'section' and 'chapter' aliases. See below for more. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 17:42, 14 June 2013 (UTC)
::I think that is not the best way to go. I have shown you above an example of where a book uses sections and chapters. -- [[User:PBS|PBS]] ([[User talk:PBS|talk]]) 09:27, 15 June 2013 (UTC)
== strip wikilinks from page, pages, at ==
This citation:
:{{citation |last=Cornelius Tacitus |first=Publius |author-link=Tacitus |title=[[s:la:De origine et situ Germanorum|De origine et situ Germanorum]] ''(On the Origin & Situation of the Germans)'' |at=[[s:la:De origine et situ Germanorum (Germania)#XL|Cap. XL]] |year=98 |ref={{harvid|Tacitus|98}} }}
uses
:{{para|at|<nowiki>[[s:la:De origine et situ Germanorum (Germania)#XL|Cap. XL]]</nowiki>}}
the module does not know how to strip the markup before adding it to the COinS.
—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 13:19, 4 June 2015 (UTC)
== Sfnref ==
Integrate {{tl|sfnref}} into the CS1 templates. This would take two parameters: {{para|sfnref}} and {{para|sfnyear}}. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 12:45, 31 March 2014 (UTC)
== postscript check ==
Check for 'postscript' with more than one character. I'm seeing some odd stuff inserted. --''''' [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup> 19:30, 6 April 2013 (UTC)
:My present reaction is that it may be too late for this. There appear to be too many people doing things like {{para|postcript|<nowiki><!-- None --></nowiki>}}, plus [[User:Citation bot]] has been putting a message about {{tl|inconsistent citations}} in the postscript. Insisting that it ought to be only one character seems a bit futile at this point. [[User:Dragons flight|Dragons flight]] ([[User talk:Dragons flight|talk]]) 22:25, 20 May 2013 (UTC)
::Perhaps just a hidden tracking category to see what is out there. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 02:04, 21 May 2013 (UTC)
== Part ==
A part= parameter would be useful, see for example:
* [http://wiki.fibis.org/index.php?title=Military_periodicals_online#The_United_Service_Journal_and_Naval_and_Military_Magazine The United Service Journal and Naval and Military Magazine] where there are volumes divided into two parts for each year in the volume.
*{{Cite Notitia Parliamentaria |part=1}}
*{{Cite Notitia Parliamentaria |part=2}}
-- [[User:PBS|PBS]] ([[User talk:PBS|talk]]) 13:41, 14 June 2013 (UTC)
:Also useful would be column (col.), paragraph (para.); track; hours, minutes and seconds; act, scene, canto, book, part, folio, stanza, back cover, liner notes, indicia, colophon, dust jacket, verse and probably a lot more. But this is why we have the catchall 'at' field where you can add free text where 'chapter' and 'page' don't exactly fit. --<span style="color:Turquoise">''''' [[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850| ''talk'']]</sup></span> 17:45, 14 June 2013 (UTC)
::By that argument volume may as well be removed! A difference is made between chapter and page. A similar difference needs to be made between volume and part. In parts page numbering often restarts. Most of the items you have listed in your first sentence are attributes of the same physical book (and are other ways of pinpointing information within a physical book). Part is different, it frequently describes a physical book with its own page numbering. -- [[User:PBS|PBS]] ([[User talk:PBS|talk]]) 09:26, 15 June 2013 (UTC)
== Partial links in title ==
{{mdt|Help talk:Citation Style 1#Partial links in title}}
—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 18:57, 30 July 2019 (UTC)
|