Module:DependencyList: Difference between revisions

osrsw>Gaz Lloyd
m make autocaps of lowercase first letter of pagename only apply to the first use of a colon (e.g. [Module:Sandbox/User:bigmantonyd/Profitable alchemy] would try to load from [Module:Sandbox/User:Bigmantonyd/Profitable alchemy] resulting in a script error)
osrsw>Gaz Lloyd
m use [^:] instead
Line 57: Line 57:
         :gsub( '_', ' ' )
         :gsub( '_', ' ' )
         :gsub( '^.', string.upper )
         :gsub( '^.', string.upper )
         :gsub( '^(.-:)(.)', function(a,b) return a..string.upper(b) end )
         :gsub( '^([^:]-:)(.)', function(a,b) return a..string.upper(b) end )


     return name
     return name