Module talk:Citation/CS1/Feature requests: Difference between revisions

Content deleted Content added
Check for wikilink to current page: this one is done in the sandbox now
Line 89:
: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">''''' &nbsp;[[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850|&nbsp;''talk'']]</sup></span> 02:04, 21 May 2013 (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. --''''' &nbsp;[[User:Gadget850|<span style="color:gray">Gadget850&nbsp;(Ed)</span>]]'''''<sup>[[User talk:Gadget850|&nbsp;''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">''''' &nbsp;[[User:Gadget850|Gadget850]]'''''<sup>[[User talk:Gadget850|&nbsp;''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)
 
== Format size ==