「モジュール:Infobox/former」の版間の差分

編集の要約なし
編集の要約なし
タグ: 差し戻し済み
編集の要約なし
タグ: 差し戻し済み
98行目: 98行目:
if not child then
if not child then
--tableタグ
--tableタグ
result = '<table class="' .. (subbox and '' or 'infobox ') .. (args.bodyclass or '') .. '" style="' .. (subbox and 'min-width:100%; width:calc(100% + 6px); margin:-3px; ' or 'width:25%; ') .. (args.bodystyle or '') .. '"' .. (args.bodyitemtype and (' itemscope itemtype="' .. args.bodyitemtype .. '"') or '') .. ' itemref="' .. (args.bodyitemref or '') .. '">'
result = '<table class="' .. (subbox and '' or 'infobox ') .. (args.bodyclass or '') .. '" style="' .. (subbox and 'min-width:100%; width:calc(100% + 6px); margin:-3px; ' or 'width:20%; ') .. (args.bodystyle or '') .. '"' .. (args.bodyitemtype and (' itemscope itemtype="' .. args.bodyitemtype .. '"') or '') .. ' itemref="' .. (args.bodyitemref or '') .. '">'
if args.title then
if args.title then
--captionタグ
--captionタグ
142行目: 142行目:
link = 'Template:' .. link
link = 'Template:' .. link
end
end
result = result .. '<tr class="noprint"><td colspan=2 style="text-align:right; ">[[' .. link .. '|テンプレートを表示]]</td></tr>'
result = result .. '<tr class="noprint"><td colspan=2 style="text-align:right; font-size:85%;">[[' .. link .. '|テンプレートを表示]]</td></tr>'
end
end