Topic on Project:Support desk

Module CS1 Cite_book error

10
Evolution and evolvability (talkcontribs)

Over at Wikiversity, the Cite_Book template is currently reporting a lua error (see example 1):

Lua error in Module:Citation/CS1 at line 3723: bad argument #1 to 'pairs' (table expected, got nil).

I've checked line 3723 in Module:Citation/CS1 but I can't find the cause of the problem. It looks to be triggered by use of the coauthors= parameter. Any ideas on what I'm missing?


Thanks in advance! Thomas.

Evolution and evolvability (talkcontribs)
Trappist the monk (talkcontribs)
Jnanaranjan sahu (talkcontribs)

Same issue on our wiki as well. Anyone have any suggestion?


Trappist the monk (talkcontribs)
Jnanaranjan sahu (talkcontribs)

What we have to do? Shall we update it? If yes then then from where? en wiki?


Trappist the monk (talkcontribs)

The suggestions module is there to offer suggestions to typical typographical errors in parameter names that occur at your wiki. The module can also hold parameter names that may be used in other wikis from which your editors import cs1|2 citations are imported. For these reasons, there is no 'master' list of suggestions. It is entirely possible that the or.wiki suggestion list will be different from the list at en.wiki.

You got the 'table expected, got nil' error message because some update, long-ago now, to the cs1|2 module suite added the ability to use Lua patterns to match a variety of typos and misspellings so that we didn't have to list them all individually.

Jnanaranjan sahu (talkcontribs)

So after importing the latest page the issue is fixed but it gives something like "Unknown parameter |coauthors= ignored (|author= suggested) (help)" . Shall we remove the coauthor as it is not supported anymore?


Trappist the monk (talkcontribs)

If you are seeing that error message then |coauthors= should be replaced with an appropriate parameter. Support for |coauthor(s)= was removed long ago at en.wiki but we still see it popping up when a cs1|2 template is imported from a wiki that supports it.

Jnanaranjan sahu (talkcontribs)

Thank you for the help. I see some more error type like |month etc.


I think I have figured it out. Thanks again for your time.

Reply to "Module CS1 Cite_book error"