FANDOM


local p = {}
 
function p.Number (frame)
 
   local usernumber = frame.args[1]
 
   if not usernumber then
      return "No number supplied"
   end
 
   local stringnumber = tonumber( usernumber )
 
   if not stringnumber then
      return "You have entered an invalid number"
   else
      return stringnumber
   end
 
end
 
 
function p.ExtractChapterNumber (frame)
 
   chapterversestring =  frame.args[1]
 
   if not chapterversestring then
      return "You must enter a string"
   end
 
   local chapterstring = mw.ustring.gsub( chapterversestring, "^(.+):.+", '%1fff' )
   local chapternumber = tonumber( chapterstring )
 
   return chapterstring
 
end
 
return p

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.