Module:Check DYK hook/doc
Appearance
![]() | This is a documentation subpage for Module:Check DYK hook. It may contain usage information, categories and other content that is not part of the original module page. |
This module checks hooks used in Wikipedia:Did you know.
Usage
This module can be used from templates or from other Lua modules.
From templates
From templates, call the isValidHook
function with the hook as the first positional parameter.
{{#invoke:Check DYK hook|isValidHook&124;hook}}
Valid hooks will return a value of "yes"; invalid hooks will return the empty string.
From modules
From modules, call the _isValidHook
function with the hook as the first positional parameter.
mCheckDYKHook = require('Module:Check DYK hook')
result = mCheckDYKHook._isValidHook(hook)
Valid hooks will return a true
; invalid hooks will return false
.