View source for Module:Ustring
From The Goon Show Depository
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
--require('strict')
return setmetatable({}, {
__index = function(t, k)
local what = mw.ustring[k]
if type(what) ~= "function" then
return what
end
return function(frame)
local fargs = frame.args
local fargsused = { tag = true }
local args = {}
local str_i = 1
while fargs['s' .. str_i] do
fargsused['s' .. str_i] = true
args[str_i] = fargs['s' .. str_i]
str_i = str_i + 1
end
for i, v in ipairs(fargs) do
fargsused[i] = true
args[i + str_i - 1] = tonumber(v) or v:gsub("^\\", "", 1)
000
1:0
Templates used on this page:
- Template:(( (view source)
- Template:)) (view source)
- Template:Aligned table (view source)
- Template:Div col (view source)
- Template:Div col/styles.css (view source)
- Template:Div col end (view source)
- Template:Documentation (view source)
- Template:Escape (view source)
- Template:Hlist/styles.css (view source)
- Template:If empty (view source)
- Template:Luaref (view source)
- Template:Main other (view source)
- Template:Module other (view source)
- Template:Module rating (view source)
- Template:Ombox (view source)
- Template:Para (view source)
- Template:Plainlist/styles.css (view source)
- Template:Replace (view source)
- Template:Sandbox other (view source)
- Template:Scribunto (view source)
- Template:Scribunto/helper (view source)
- Template:Scribunto/helper2 (view source)
- Template:Script error (view source)
- Template:String-handling templates (view source)
- Template:String handling templates (view source)
- Template:Tl (view source)
- Template:Used in system (view source)
- Module:Aligned table (view source)
- Module:Arguments (view source)
- Module:Check for unknown parameters (view source)
- Module:Documentation (view source)
- Module:Documentation/config (view source)
- Module:Documentation/styles.css (view source)
- Module:Effective protection level (view source)
- Module:Escape (view source)
- Module:High-use (view source)
- Module:If empty (view source)
- Module:Message box (view source)
- Module:Message box/configuration (view source)
- Module:Message box/ombox.css (view source)
- Module:Navbar (view source)
- Module:Navbar/configuration (view source)
- Module:Navbar/styles.css (view source)
- Module:Navbox (view source)
- Module:Navbox/configuration (view source)
- Module:Navbox/styles.css (view source)
- Module:Navbox with collapsible groups (view source)
- Module:String (view source)
- Module:TableTools (view source)
- Module:Transclusion count (view source)
- Module:Transclusion count/data/U (view source)
- Module:Ustring (view source)
- Module:Ustring/doc (view source)
- Module:Yesno (view source)
Return to Module:Ustring.