モジュール‐ノート:Infobox/former

ページのコンテンツが他言語でサポートされていません。

subheader, imageのバグ修正提案[編集]

提案 K-icznさんにご指摘を受け、{{Infobox2}}を使用していたテンプレートにおいて、一部のimageが表示されないバグが発覚しましたので、同様の仕組みのsubheaderとともに

	if h.subheader[1] then
		for k, v in ipairs(h.subheader) do
			result = result .. row(nil, nil, nil, nil, v[1], v.style or h.subheader.style, h.subheader.class, v.rowclass, nil, nil, nil, nil, nil, nil, nil)
		end
	end
	if h.image[1] then
		for k, v in ipairs(h.image) do
			result = result .. row(nil, nil, nil, nil, v[1] and (v[1] .. (v.caption or '')), v.style or h.image.style, h.image.class, v.rowclass, nil, nil, nil, nil, nil, nil, nil)
		end
	end

から

	for k, v in pairs(h.subheader) do
		result = result .. row(nil, nil, nil, nil, v[1], v.style or h.subheader.style, h.subheader.class, v.rowclass, nil, nil, nil, nil, nil, nil, nil)
	end
	for k, v in pairs(h.image) do
		result = result .. row(nil, nil, nil, nil, v[1] and (v[1] .. (v.caption or '')), v.style or h.image.style, h.image.class, v.rowclass, nil, nil, nil, nil, nil, nil, nil)
	end

への変更を提案します。また、1 - 5行目の不必要なコメントの除去も合わせて行いたいと思います。提案の内容はサンドボックスに反映してあります。3日ほど待って反対意見がなければ、WP:AN/PEに編集をお願いしますので、ご意見よろしくお願いします。--Waiesu会話2016年7月29日 (金) 00:49 (UTC)[返信]

バグ修正願い[編集]

特別:テンプレートを展開において{{Infobox |title=test}} を展開していただければ分かると思いますが、captionタグのclass属性がclass=" とダブルクォーテーションが一つ欠けて閉じていない状態になっています。通常は問題なく表示できるのですがビジュアルエディターでは、おそらくこれが原因で表示がおかしくなります(cf.Wikipedia:ビジュアルエディター/フィードバック)。103行目、' style="''" style="' に修正すれば良いと思われますので修正をお願いします。--にょきにょき会話2016年9月10日 (土) 14:22 (UTC)[返信]

返信 (にょきにょきさん宛) 確認しました。大変お手数ですが、WP:AN/PEに依頼いただければすぐに作業を行いますので、よろしくお願いいたします。 Waiesu会話2016年9月10日 (土) 14:30 (UTC)[返信]
明らかなミスでごく単純な修正だったので、いちいち手続きを挟む必要もないかなと思っていたのですが、ひとまず依頼しておきました。--にょきにょき会話2016年9月10日 (土) 14:57 (UTC)[返信]
報告 バグの報告ありがとうございました。編集を行いました(差分)。確認お願いいたします。--Waiesu会話2016年9月10日 (土) 15:00 (UTC)[返信]
迅速なご対応ありがとうございました!--にょきにょき会話2016年9月10日 (土) 15:06 (UTC)[返信]