This is aninformation page. It is neither anencyclopedia article nor one ofWikipedia's policies or guidelines; rather, its purpose is to explain certain aspects of Wikipedia's norms, customs, technicalities, or practices. It may reflect differing levels ofconsensus andvetting. |
Previewing a page may produce an error message like this at the top:
The error happens when a page is calling atemplate and tries to assign a value to the same parameter (also called argument) more than once, as with two values for the date parameter in this example:
{{Cite web|date=2014|title=Cars|date=2016}}Removing one of the date assignments will eliminate the warning, but please consider whether the real error is that one of the parameters should have been named differently, for example as"access-date=" (instead of"date=").
The message is not shown on the saved page, so readers will not see it, but it should still be fixed. Later editors may not notice the issue and mistakenly change the value of the first assignment, unaware the 2nd value will be used.
The problem also happens if the same exact value is assigned twice, as in example:
{{Cite web|date=2016|title=Cars|date=2016}}Such cases should also be fixed to prevent future confusion. (Abot can usually fix the problem when parameter values are identical.)
A blank assignment will also cause the error:
{{Cite web|date=2014|title=Cars|date=}}Editors often copy example code with many blank assignments, so watch out for this.
Templates can haveunnamed parameters which are automatically called 1=, 2=, 3=, etc. by the software. Text with no equals sign after a pipe is interpreted as an unnamed parameter, for example|2014|. The first unnamed parameter is called "1" and so on, so this example would produce the error for "1=" as set twice:
{{Cite web|1=2014|title=Cars|2014}}Pages with the error are automatically placed in ahidden category calledCategory:Pages using duplicate arguments in template calls. Its name is determined byMediaWiki:Duplicate-args-category. It is listed atSpecial:TrackingCategories with the description inMediaWiki:Duplicate-args-category-desc.
The error message is generated byMediaWiki:Duplicate-args-warning. The English Wikipedia has customized theEnglish (en) version of the message to add a "Help" link to this page.