Category:Pages using duplicate arguments in template calls

From MINR.ORG WIKI

So you've likely gotten here by clicking on a strange Category that showed up near the bottom of the page. It's time to answer some things related to that.

Questions[edit]

What is this category for?[edit]

This category is for telling wiki users (mainly editors) that one of the templates used for the page accidentally has multiple arguments that use the same parameter name. In a way, seeing this category at the bottom of a page or in the category list at the bottom of this page means that something was incorrectly typed when using a template.

Why is this a category?[edit]

The category provides an accessible way to list pages or media with this duplicate argument error. Because nobody purposefully makes a list searching for this issue, the wiki automatically does it for its editors.

Indicators[edit]

It's unlikely that you reached this page without seeing at least one of these indicators. However, there are multiple places that indicate when this issue is present in a wiki page:

  • This category is listed at the bottom of a page

DuplicateArgumentsD.png

  • The preview when editing a page has an extra line indicating that a parameter has more than one value. This indicator is especially useful for determining which of the parameters have multiple values linked. For reference, this is a normal vs error preview contrast.

DuplicateArgumentsE.png DuplicateArgumentsB.png

Resolving the issue[edit]

Usually, this is caused because of one of two reasons:

  1. There is too many |'s in the template, causing one or more to map onto the same parameter in the template.
  2. A parameter is defined twice.

To fix it, you need to check all of your template page arguments.The easiest way to figure out which one if multiple exist is if a part of the template's functionality is slightly off.

Example[edit]

The Minr Maps page had this error. Looking through the table of template rows, one noticeably sticks out:

DuplicateArgumentsA.png

Using this, we can pinpoint exactly which template has the issue in the editor. You can see in this instance how an extra | is added at the end, which is easy to miss due to the curly brackets. Deleting it solves the issue.

DuplicateArgumentsC.png

This category currently contains no pages or media.