Latest comment: 1 month ago by 92.21.143.196 in topic Error category


Error category

[edit]

What is it about the documentation page that causes it to be listed in Category:Pages using duplicate arguments in template calls?

Can it be fixed? Should it be fixed? -- 89.241.66.195 06:49, 25 April 2025 (UTC)Reply

These are the two separate chunks of code that trigger the error ...
{{Template link general|nolink=on|2=nowrap=on|Long template name that would wrap to a new line|Long value for the 1st parameter that would also get wrapped}}
{{Template link general|nolink=on|2=nowrapname=on|Long template name that would wrap to a new line|Long value for the 1st parameter that would also get wrapped}}
They are the final two table entries, and found in the left column (within code tags with CSS styling).
These were found by copying the documentation page to a sandbox, removing chunks of code one at a time, and checking the error category each time until the status changed. Also, adding parts back in - in the same order they were removed - found the second chunk of code that is also generating the same error.
But, how to fix this? -- 92.21.143.196 20:44, 26 June 2025 (UTC)Reply
After several hours in multiple sandboxes, I may have found a partial solution. It may be that the 2= parameter was misnumbered, but I didn't explore changing the number. Instead, I found a way to do away with that seemingly clunky code, by using nowiki in place of nolink=on and removing the 2= prefix from the next parameter. See these changes. This clears the doc page from the error category but the template page itself is still listed in the error category, and I don't know why. -- 92.21.143.196 10:08, 27 June 2025 (UTC)Reply
To be honest, I don't really understand the three examples in the wrapping section of the template documentation. Each of the three examples has different code but all three examples show the exact same output format as each other. I don't get what they are trying to say. -- 92.21.143.196 11:11, 27 June 2025 (UTC)Reply