Content deleted Content added
archive |
m Replaced deprecated <source> tags with <syntaxhighlight> (via WP:JWB) |
||
(6 intermediate revisions by 4 users not shown) | |||
Line 1:
{{
Line 6:
A class has been added to {{tl|broken ref}} so that errors on talk and other pages will show if enabled in [[Special:MyPage/skin.css]]. This does not add the page to a maintenance category.
<
span.brokenref {
display: inline;
}
</syntaxhighlight>
For example, an error will show here if this is enabled.<ref></ref>
---'''''— [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<span style="color:darkblue">
== Fixing broken reference name: what if it was initially broken? ==
Line 25:
So, how to fix these broken refs? Delete them? [[User:Korrawit|Korrawit]] ([[User talk:Korrawit|talk]]) 05:51, 27 May 2011 (UTC)
:If they are broken from the start, then you have no way to fix them. Remove the broken ref and discuss it with the editor who added it. I suspect that they did a copy/paste from another article. ---'''''— [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<span style="color:darkblue">
::Thanks[[User:Korrawit|Korrawit]] ([[User talk:Korrawit|talk]]) 13:50, 27 May 2011 (UTC)
== Question: Who decided that refs should display a big red message when their personal stylistic preferences aren't followed ==
I'm just wondering who weighed the options and decided that a big unruly red message borking up an article is the means to justify the end - that being "descriptive ref names"? This is the case where if you name a ref with a number, an error message states that the ref name can't be an integer and should be more descriptive. There have been many cases were a year is far more appropriate to use as the name, but can't be because somebody has ensured that this template imposes their personal preferences. - '''[[User:Floydian|<
:The error is generated by the {{cite.php}} software extension— you can look at the code versions to see the authors. When the extension generates an error, it calls a MediaWiki interface page that defines the displayed message.
:I think your issue is that you can't use an integer as a reference name. Looking at the HTML output, the entries in the reference list are given HTML ids such as <code>cite_ref-0</code> for an unnamed reference and <code>cite_ref-''name''-0</code> for a named reference. By using an integer, there is some chance that the software may generate duplicate ids which would result in invalid HTML and ambiguous links. You can easily resolve this by prefixing the integer with a character like an asterisk or percent. ---'''''— [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<span style="color:darkblue">
== no bot? ==
Line 45:
I'm confused. I've found two articles with the error message <code><nowiki>"Cite error: <ref> tag with name "<whatever>" defined in <references> is not used in prior text; see the help page"</nowiki></code>, yet the references with those names ''are'' used within the infobox. But the reference markers within the infoboxes have the wrong numbers and don't jump you down to the footnotes section.
At [[
I'm fairly sure that this problem is new since 19th April. On that date I fixed a cite error in [[The Witcher 2: Assassins of Kings]] by commenting out an unused reference, and, I hope, I would have noticed the other three error messages if they had been there on that date. Very little has happened to the article since then. -- [[User:John of Reading|John of Reading]] ([[User talk:John of Reading|talk]]) 10:36, 27 April 2012 (UTC)
:There is some odd interaction with {{tl|
::Removing the months and days makes the problem disappear too - <code><nowiki>{{
:::Good question. Do we have a downlevel test wiki? See [[User:Gadget850/a10]] for some testing on this issue.---'''''— [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<span style="color:darkblue">
::::[https://test2.wikipedia.org/wiki/Main_Page Here] is a note that they are running 1.20wmf1. I've stripped away a few more levels of templates at [[User:John of Reading/X3]], which might help. -- [[User:John of Reading|John of Reading]] ([[User talk:John of Reading|talk]]) 14:21, 27 April 2012 (UTC)
:::::By coincidence, I have been working on Error: Invalid time. The {{tl|dts}} series of templates stuff the sortable part inside {{code|display:none}} which suppresses the error message and makes troubleshooting a pain; see [[MediaWiki talk:Common.css#Parser function errors]]. I don't see Error: Invalid time in [[The Witcher 2: Assassins of Kings]] HTML. ---'''''— [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<span style="color:darkblue">
::::::{{tp|
[[Wikipedia:Village pump (technical)#Named refs and #time errors]] ---'''''— [[User:Gadget850|<span style="color:gray">Gadget850 (Ed)</span>]]'''''<span style="color:darkblue">
|