Module:Sandbox/Perryprog/sandbox explained
local p = ;
local transcluder = require('Module:Transcluder')
local function referenceCount(referencesText) count = 0 -- Seriously, no string.split method? for match in string.gmatch(referencesText, '[1]
Notes and References
- ') do count = count + 1 end return countend
function p.main(frame) pageReferences = transcluder.get(frame.args[1],) return referenceCount(pageReferences)end
return p