Module:Shortcut: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
add a nocat option to suppress category output
(calculate the number of list items based on a table of list items, rather than doing it ad hoc from the shortcuts plus whatever else we want to add)
(add a nocat option to suppress category output)
Line 5:
 
-- Load required modules
local yesno = require('Module:Yesno')
local checkType = require('libraryUtil').checkType
 
Line 85 ⟶ 86:
 
-- Error category
if shortcuts[1] and not yesno(options.nocat) then
local title = mw.title.new(shortcuts[1])
if not title or not title.exists then
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu