Open main menu

Duplicate parametersEdit

Hi all,

In this edit this template got duplicate parameters (as the template is quite a basic template and is used in quite some places this error expends to a lot of pages). I can't find the actual issue myself. Mvg, Basvb (talk) 13:50, 27 December 2014 (UTC)

Removing all lines but one seems to leave the error in. Thus the error is on every line. Mvg, Basvb (talk) 13:43, 28 December 2014 (UTC)
I tested a bit with the template. {{if defined call4|{{{2|}}}|sisterwiki|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}} }} replacing the first 2nd parameter call with a random word makes the error go away. If we look to Template:if defined call4: {{template call4|1={{{2}}}|1{{{1}}}=void3|2={{{3}}}|3={{{4}}}|4={{{5}}}|5={{{6}}}}}<noinclude>[[Category:Function templates|{{PAGENAME}}]]</noinclude> we see that this first parameter is used in a parameter with void. Removing this parameter (|1{{{1}}}) makes the error go away. When we go to Template:template call4: {{{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}}} we see that it only takes 5 parameters, and it is given 6, all these templates in between are ment to see whether we want a next link? Isn't it much cleaner to use something like: {{#if:{{{2|}}}|{{sisterwiki|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}|}}? See this test and this call. Mvg, Basvb (talk) 14:35, 28 December 2014 (UTC)
The template was created in 2005, months before parser functions (incl. #if:) were introduced (2006). Some pre-historic if templates are still hosted on Meta, the "original" is Qif on Wikipedia (November 2005, AzaToth). Interestingly the template here is older. –Be..anyone (talk) 22:42, 25 January 2015 (UTC)

Deletion requestEdit

{{editprotected|technical="yes"}} Please add {{delete|broken template used on less than 30,530 pages}}. There were 30,529 pages using duplicate arguments in template calls on 07:26, 24 January 2015 (UTC).

Be..anyone (talk) 07:26, 24 January 2015 (UTC)

Why delete a template which is widely (more than a few hundred times) in use? In the section above this one I've proposed a fix. Mvg, Basvb (talk) 19:52, 24 January 2015 (UTC)
Although I don't agree that deletion is the way to go I've fulfilled your edit request. Will you create the nomination page at Commons:Deletion requests? Mvg, Basvb (talk) 11:17, 25 January 2015 (UTC)
Thanks, done. I didn't know that you could edit this beast, your comment above sounded as if you were unable to test your suggestion. –Be..anyone (talk) 18:53, 25 January 2015 (UTC)
At 28 December I was unable to (got the sysopbits just a weak or two ago), but it's more that I didn't like to replace the complete template without being 100% sure if the new suggested has the desired working. But if it's otherwise deleted why not? So that's what I'll propose at the deletion request. Mvg, Basvb (talk) 20:50, 25 January 2015 (UTC)
  fixed by Basvb, tnx.   I withdraw my nomination, –Be..anyone (talk) 18:28, 29 January 2015 (UTC)
Return to "Sisterwikis" page.