View source for Module:Inventory slot
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
-- Individual cell
function p.cell( f )
local args = f.args or f
if f == mw.getCurrentFrame() and args[1] == nil then
args = f:getParent().args
end
args[1] = mw.text.trim( args[1] or '' )
-- Comment this next line out if you're not using aliases
local aliases = mw.loadData( 'Module:Grid/Aliases' )
if aliases then
local frames = {}
for frame in mw.text.gsplit( args[1], '%s*;%s*' ) do
local frameParts = p.getParts( frame )
if aliases[frameParts.name] then
local aliasFrames = {}
for aliasFrame in mw.text.gsplit( aliases[frameParts.name], '%s*;%s*' ) do
local aliasParts = p.getParts( aliasFrame )
aliasParts.title = frameParts.title or aliasParts.title or ''
aliasParts.mod = frameParts.mod or aliasParts.mod or ''
000
1:0
Templates used on this page:
- Template:Documentation header (view source)
- Template:Template link (view source)
- Template:Tl (view source)
- Template:Yesno (view source)
- Module:Documentation (view source)
- Module:Inventory slot/doc (view source)
- Module:ProcessArgs (view source)
- Module:Static (view source)
- Module:TSLoader (view source)
Return to Module:Inventory slot.