跳转到内容

模組討論:InfoboxImage

页面内容不支持其他语言。
维基百科,自由的百科全书

这是本页的一个历史版本,由Stang留言 | 贡献2022年7月13日 (三) 00:24 暴露 Lua 接口,变成元模块:​ 修正)编辑。这可能和当前版本存在着巨大的差异。


Stang在话题“編輯請求 2022-07-13”中的最新留言:2年前

新代码

请求已处理--1=0欢迎河北维基人加入QQ群331736133 2016年2月7日 (日) 08:07 (UTC)回复

我从 en:Module:InfoboxImage 搬运过来新的代码,里面多了 |page= 参数,现在就在这个模块的沙盒页里面。-- 2016年2月2日 (二) 13:26 (UTC)回复

@Great_Brightstar以后编辑请求要用{{Editprotected|patch=}}这个版本,方便管理员更新。--1=0欢迎河北维基人加入QQ群331736133 2016年2月7日 (日) 08:12 (UTC)回复

暴露 Lua 接口,变成元模块

{{editprotected}} 道理类似Module talk:Infobox提出来的那个。另外我这个模板并不是说被保护了,而是说我看到了文档不敢…… --Artoria2e5 更改·工具 2016年5月29日 (日) 21:12 (UTC)回复

目前未有保护。--Jimmy Xu 2016年6月11日 (六) 04:29 (UTC)回复

編輯請求 2022-07-13

User:Manchiu

@@ -6,7 +6,6 @@
 --    sizedefault - 如果size参数留空,默认显示图像大小 - 如果size參數留空,預設顯示影像大小
 --    alt - 图像替换文本 - 影像替換文字
 --    title - 图像标题文本 - 影像標題文字
---    border - 有边框则设为yes - 有邊框則設為yes
 --    center - 图像需居中则设为yes - 影像需居中則設為yes
 --    upright - 垂直图像参数 - 垂直影像參數
 --    suppressplaceholder - 设为yes则检查图像是否为占位符并停用 - 設為yes則檢查影像是否為佔位符並停用
@@ -187,7 +186,6 @@
         local alt = frame.args["alt"];
         local link = frame.args["link"];
         local title = frame.args["title"];
-        local border = frame.args["border"];
         local upright = frame.args["upright"] or "";
         local thumbtime = frame.args["thumbtime"] or "";
         local center= frame.args["center"];
@@ -246,9 +244,6 @@
         if link ~= "" and link ~= nil then
             result = result .. "|link=" .. link;
         end
-        if border == "yes" then
-            result = result .. "|border";
-        end
         if upright == "yes" then
             result = result .. "|upright";
         elseif upright ~= "" then

border参数已失效 Stang 2022年7月13日 (三) 00:23 (UTC)回复