2,244
回編集
ja>Ochaochaocha3 細 (1版 をインポートしました) |
Karanemi666 (トーク | 投稿記録) 編集の要約なし タグ: 手動差し戻し |
||
(同じ利用者による、間の7版が非表示) | |||
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: | result = '<table class="' .. (subbox and '' or 'infobox ') .. (args.bodyclass or '') .. '" style="' .. (subbox and 'min-width:100%; width:calc(100% + 6px); margin:-3px; ' or 'width:33%; ') .. (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タグ | ||
result = result .. '<caption itemprop="name" class="' .. (args.titleclass or '') .. ' style="' .. (args.titlestyle or '') .. '">' .. args.title .. '</caption>' | result = result .. '<caption itemprop="name" class="' .. (args.titleclass or '') .. '" style="' .. (args.titlestyle or '') .. '">' .. args.title .. '</caption>' | ||
end | end | ||
if args.above then | if args.above then | ||
128行目: | 128行目: | ||
--本体部 | --本体部 | ||
for k, v in ipairs(sbody) do | for k, v in ipairs(sbody) do | ||
result = result .. row(v.header, v.headerstyle, v.label, v.labelstyle, v.data, v.datastyle, v.rowstyle, v.class, v | result = result .. row(v.header, v.headerstyle, v.label, v.labelstyle, v.data, v.datastyle, v.rowstyle, v.class, v.rowclass, v.id, v.itemprop, v.rowitemprop, v.itemtype, v.rowitemtype, v.itemref, v.rowitemref) | ||
end | end | ||