VOOZH about

URL: https://minecraft.wiki/w/Module:UI_path

⇱ Module:UI path – Minecraft Wiki


Module:UI path

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]Jump to code ↴

This module implements {{UI}}.

[view] [edit] [history] [purge]The above documentation is transcluded from Module:UI path/doc.
localp={}
-- Helper function to get arguments
localgetArgs=require('Module:Arguments').getArgs
functionp.main(frame)
localargs=getArgs(frame)
returnp._ui(args)
end
functionp._ui(args)
localnavPath={}
localseparator=' → '
-- It stops automatically at the first "nil" (empty/missing) parameter.
for_,vinipairs(args)do
table.insert(navPath,'"'..v..'"')
end
-- If no parameters were provided, return nothing
if#navPath==0then
return''
end
-- Join the pieces with the arrow
localresult=table.concat(navPath,separator)
-- If a link is provided, wrap the result in a wikilink
ifargs.linkandargs.link~=''then
result='[['..args.link..'|'..result..']]'
end
-- Wrap in a span for potential styling
return'<span class="t-ui">'..result..'</span>'
end
returnp
Retrieved from "https://minecraft.wiki/w/Module:UI_path?oldid=3465782"

Navigation menu