跳转到内容

模組討論:Asbox

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

这是本页的一个历史版本,由Capmo留言 | 贡献2021年4月28日 (三) 14:55 Please remove hidden links to talk pages:​ 新章节)编辑。这可能和当前版本存在着巨大的差异。


Capmo在话题“Please remove hidden links to talk pages”中的最新留言:4年前

編輯請求 2019-08-11

请求已处理--Xiplus#Talk 2019年8月30日 (五) 03:26 (UTC)回复

				['link box'] = Buffer'本文档由[[Module:Asbox]]自动生成。'
					:_in'通用信息嵌入自[[Template:Stub documentation]]。'

改成

				['link box'] = Buffer'本-{zh-cn:文档; zh-tw:文件;}-由[[Module:Asbox]]自动生成。'
					:_in'通用信息嵌入自[[Template:Stub documentation]]。'

繁簡處理-- Sunny00217 2019年8月11日 (日) 13:28 (UTC)回复

編輯請求 2020-08-02

请求已处理--Xiplus#Talk 2020年8月2日 (日) 12:24 (UTC)回复

將163行的「Exclude in print」改為「不顯示於列印版面的模板」,模板重新導向。-- 2020年8月2日 (日) 04:38 (UTC)回复

请求追加一个class

请求已处理--Xiplus#Talk 2021年2月5日 (五) 11:26 (UTC)回复

建议给小作品图示部位追加 noresize class,防止图片在手机上被缩小,详细情况可见英文维基的讨论 en:Template talk:Asbox。方法如下:

function p.main(frame, page)
	args, page = p:init(frame, page)
	local output = mw.html.create'table'
		:addClass'metadata plainlinks stub'
		:css{background = 'transparent'}
		:attr{role = 'presentation'}
		:tag'tr'
			:addClass'noresize'
			:node((args.icon or args.image) and
				mw.html.create'td'
					:wikitext(args.icon or ('[[File:%s|%spx|alt=%s]]'):format(
						args.image or '',
						args.pix or '40x30',
						args.imagealt or '小作品圖示'
					))
			)

-- 2020年12月21日 (一) 15:47 (UTC)回复

@Tigerzeng我建議在能確保代碼沒有問題的情況下執行此請求。SANMOSA SPQR 2021年1月25日 (一) 09:58 (UTC)回复
我不能确保。Lua本身我最近刚有了解,而MediaWiki提供的Lua库还不熟,CSS基本不了解。--Tiger留言2021年1月25日 (一) 14:30 (UTC)回复
代码看起来没有问题,别看他贴的多,其实只加了一句…--安忆Talk 2021年1月27日 (三) 02:58 (UTC)回复

User:Manchiu

This module (or a submodule of it, I couldn't identify the cause) is unnecessarily creating thousands of links to stub template's talk pages:

These links are hidden, since they can't be seen anywhere in the template text (see for instance Template:China-rail-stub). Can someone please identify the problem and fix it? Thanks! Capmo留言2021年4月28日 (三) 14:55 (UTC)回复