MediaWiki:Common.js/edit.js: Difference between revisions

adding code for args 2-8
(fixing rest of accessors)
(adding code for args 2-8)
Line 697: Line 697:
call += '|arg1alttype=' + f.inputArg1AltType.value + '\n';
call += '|arg1alttype=' + f.inputArg1AltType.value + '\n';
call += '|arg1altname=' + f.inputArg1AltName.value + '\n';
call += '|arg1altname=' + f.inputArg1AltName.value + '\n';
}
}
if (f.inputArg2Name.value)
{
if (f.inputArg2Opt.checked) call += '|arg2optional=yes\n';
call += '|arg2default=' + f.inputArg2Default.value + '\n';
call += '|arg2type=' + f.inputArg2Type.value + '\n';
call += '|arg2name=' + f.inputArg2Name.value + '\n';
if (f.inputArg2Alt.checked)
{
call += '|arg2alttype=' + f.inputArg2AltType.value + '\n';
call += '|arg2altname=' + f.inputArg2AltName.value + '\n';
}
}
if (f.inputArg3Name.value)
{
if (f.inputArg3Opt.checked) call += '|arg3optional=yes\n';
call += '|arg3default=' + f.inputArg3Default.value + '\n';
call += '|arg3type=' + f.inputArg3Type.value + '\n';
call += '|arg3name=' + f.inputArg3Name.value + '\n';
if (f.inputArg3Alt.checked)
{
call += '|arg3alttype=' + f.inputArg3AltType.value + '\n';
call += '|arg3altname=' + f.inputArg3AltName.value + '\n';
}
}
if (f.inputArg4Name.value)
{
if (f.inputArg4Opt.checked) call += '|arg4optional=yes\n';
call += '|arg4default=' + f.inputArg4Default.value + '\n';
call += '|arg4type=' + f.inputArg4Type.value + '\n';
call += '|arg4name=' + f.inputArg4Name.value + '\n';
if (f.inputArg4Alt.checked)
{
call += '|arg4alttype=' + f.inputArg4AltType.value + '\n';
call += '|arg4altname=' + f.inputArg4AltName.value + '\n';
}
}
if (f.inputArg5Name.value)
{
if (f.inputArg5Opt.checked) call += '|arg5optional=yes\n';
call += '|arg5default=' + f.inputArg5Default.value + '\n';
call += '|arg5type=' + f.inputArg5Type.value + '\n';
call += '|arg5name=' + f.inputArg5Name.value + '\n';
if (f.inputArg5Alt.checked)
{
call += '|arg5alttype=' + f.inputArg5AltType.value + '\n';
call += '|arg5altname=' + f.inputArg5AltName.value + '\n';
}
}
if (f.inputArg6Name.value)
{
if (f.inputArg6Opt.checked) call += '|arg6optional=yes\n';
call += '|arg6default=' + f.inputArg6Default.value + '\n';
call += '|arg6type=' + f.inputArg6Type.value + '\n';
call += '|arg6name=' + f.inputArg6Name.value + '\n';
if (f.inputArg6Alt.checked)
{
call += '|arg6alttype=' + f.inputArg6AltType.value + '\n';
call += '|arg6altname=' + f.inputArg6AltName.value + '\n';
}
}
if (f.inputArg7Name.value)
{
if (f.inputArg7Opt.checked) call += '|arg7optional=yes\n';
call += '|arg7default=' + f.inputArg7Default.value + '\n';
call += '|arg7type=' + f.inputArg7Type.value + '\n';
call += '|arg7name=' + f.inputArg7Name.value + '\n';
if (f.inputArg7Alt.checked)
{
call += '|arg7alttype=' + f.inputArg7AltType.value + '\n';
call += '|arg7altname=' + f.inputArg7AltName.value + '\n';
}
}
if (f.inputArg8Name.value)
{
if (f.inputArg8Opt.checked) call += '|arg8optional=yes\n';
call += '|arg8default=' + f.inputArg8Default.value + '\n';
call += '|arg8type=' + f.inputArg8Type.value + '\n';
call += '|arg8name=' + f.inputArg8Name.value + '\n';
if (f.inputArg8Alt.checked)
{
call += '|arg8alttype=' + f.inputArg8AltType.value + '\n';
call += '|arg8altname=' + f.inputArg8AltName.value + '\n';
}
}
}
}