Module

WorldSwitch

From Dogcraft Wiki

You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in one of the groups: Users, Site Content Editor.


You can view and copy the source of this page.

local p = {} --p stands for package
local worldTools = require('Module:World')
-- get the parent world for a specific subworld
-- @return the world or an empty string when it doesn't find anything
function p.parentWorld(frame)
input = mw.ustring.lower(frame.args[1] .. frame.args[2])
return worldTools.getParentWorld(input)
end
-- get the subworld
-- usually would expect a world + subworld combo as the first two #invoke args, but works with any setup as long as either the first or the second arg has a string
-- @return the subworld or an empty string when it doesn't find anything
function p.subworld(frame)
input = mw.ustring.lower(frame.args[1] .. frame.args[2])
return worldTools.extractSubworld(input)
end
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
000
1:0
Debug console
* The module exports are available as the variable "p", including unsaved modifications. * Precede a line with "=" to evaluate it as an expression or use print(). Use mw.logObject() for tables. * Use mw.log() and mw.logObject() in module code to send messages to this console.

Return to Module:WorldSwitch.