跳转到内容
打开/关闭搜索
搜索
打开/关闭菜单
116
条目
154
文件
3
用户
730
编辑
Unimage Wiki
游戏内
武器
装备
剧情书
特殊道具
食物
特殊页面
实体
大型头目
强化头目
NPC
敌对生物
游戏流程
流程梗概
攻略
游戏难度
地区
进度
世界观
剧情资料
人物
大时间轴
创作历程
打开/关闭外观设置菜单
无法加载偏好设置。请检查您的网络连接并重试。
重试
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
讨论
贡献
创建账号
登录
编辑“︁
模块:Mbox
”︁
来自Unimage Wiki
查看
阅读
编辑源代码
查看历史
associated-pages
模块
讨论
更多操作
更多
工具
链入页面
相关更改
页面信息
fandom>FANDOM
2025年11月24日 (一) 17:17的版本
(导入1个版本:https://starter.fandom.com/)
(差异) ←上一版本 |
最后版本
(
差异
) |
下一版本→
(
差异
)
警告:您正在编辑该页面的旧版本。
如果您发布该更改,该版本后的所有更改都会丢失。
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
-- This Module is used for making templates based in the Lua language. -- See more details about Lua in [[w:Help:Lua]]. -- The Fandom Developer's Wiki hosts Global Lua Modules that can be imported and locally overridden. -- The next line imports the Mbox module from the [[w:c:dev:Global Lua Modules]]. local Mbox = require('Dev:Mbox') -- See more details about this module at [[w:c:dev:Global_Lua_Modules/Mbox]] -- The imported Module is overwritten locally to include default styling. -- For a more flexible Mbox experience, delete the function below and import -- https://dev.fandom.com/wiki/MediaWiki:Global_Lua_Modules/Mbox.css -- or paste (and modify as you like) its contents in your wiki's -- [[MediaWiki:Wikia.css]] (see [[w:Help:Including_additional_CSS_and_JS]]) -- or look at https://dev.fandom.com/wiki/Global_Lua_Modules/Mbox -- for more customization inspiration -- -- BEGIN DELETION HERE -- local getArgs = require('Dev:Arguments').getArgs local localCSS = mw.loadData('Module:Mbox/data').localStyle function Mbox.main(frame) local args = getArgs(frame) -- styles local styles = {} if args.bordercolor then styles['border-left-color'] = args.bordercolor elseif args.type then styles['border-left-color'] = 'var(--type-' .. args.type .. ')' end if args.bgcolor then styles['background-color'] = args.bgcolor end -- images local image = args.image or '' local imagewidth = args.imagewidth or '80px' local imagelink = '' if args.imagelink then imagelink = '|link=' .. args.imagelink end local imagewikitext = ('%sFile:%s|%s%s' .. ']]'):format('[[', image, imagewidth, imagelink) -- id for closure local id = args.id or 'mbox' local container = mw.html.create('div') :addClass('mbox') :addClass(args.class) :css(styles) :css(localCSS['mbox']) :cssText(args.style) local content = container:tag('div') :addClass('mbox__content') :css(localCSS['mbox__content']) if args.image then local image = content:tag('div') :addClass('mbox__content__image') :addClass('mw-collapsible') :attr('id', 'mw-customcollapsible-' .. id) :css(localCSS['mbox__content__image']) :wikitext(imagewikitext) if args.collapsed then image:addClass('mw-collapsed') end end local contentwrapper = content:tag('div') :addClass('mbox__content__wrapper') :css(localCSS['mbox__content__wrapper']) if args.header then contentwrapper:tag('div') :addClass('mbox__content__header') :css(localCSS['mbox__content__header']) :wikitext(args.header) end if args.text then local text = contentwrapper:tag('div') :addClass('mbox__content__text') :addClass('mw-collapsible') :attr('id', 'mw-customcollapsible-' .. id) :css(localCSS['mbox__content__text']) :wikitext(args.text) if args.collapsed then text:addClass('mw-collapsed') end if args.comment then text:tag('div') :addClass('mbox__content__text__comment') :css(localCSS['mbox__content__text__comment']) :wikitext(args.comment) end end contentwrapper:tag('span') :addClass('mbox__close') :addClass('mw-customtoggle-' .. id) :css(localCSS['mbox__close']) :attr('title', 'Dismiss') if args.aside then local aside = content:tag('div') :addClass('mbox__content__aside') :addClass('mw-collapsible') :attr('id', 'mw-customcollapsible-' .. id) :css(localCSS['mbox__content__aside']) :wikitext(args.aside) if args.collapsed then aside:addClass('mw-collapsed') end end return container end -- -- END DELETION HERE -- -- The last line produces the output for the template return Mbox
摘要:
请注意,所有对Unimage Wiki的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Unimage Wiki:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
该页面使用的模板:
模板:T
(
编辑
)
模块:Mbox/doc
(
编辑
)
编辑“︁
模块:Mbox
”︁
来自Unimage Wiki