「モジュール:Side box」の版間の差分
ナビゲーションに移動
検索に移動
en:Module:Side box oldid=1096940545 より更新(MediaWiki‐ノート:Common.cssに伴う修正)
bsd>Izno (we cookin with plainlist templatestyles now) |
bsd>ネイ (en:Module:Side box oldid=1096940545 より更新(MediaWiki‐ノート:Common.cssに伴う修正)) |
||
| 29行目: | 29行目: | ||
if args.image and args.image ~= 'none' then | if args.image and args.image ~= 'none' then | ||
data.image = args.image | data.image = args.image | ||
end | end | ||
| 45行目: | 36行目: | ||
'role', | 'role', | ||
'labelledby', | 'labelledby', | ||
-- Classes | |||
'textclass', | |||
-- Styles | -- Styles | ||
| 82行目: | 77行目: | ||
if data.style then | if data.style then | ||
root:cssText(data.style) | root:cssText(data.style) | ||
end | end | ||
| 117行目: | 105行目: | ||
local text = body:newline():tag('div') | local text = body:newline():tag('div') | ||
text:addClass('side-box-text') | text:addClass('side-box-text') | ||
:addClass(data.textclass) | :addClass(data.textclass or 'plainlist') | ||
if data.textstyle then | if data.textstyle then | ||
text:cssText(data.textstyle) | text:cssText(data.textstyle) | ||
| 140行目: | 128行目: | ||
root:newline() | root:newline() | ||
local frame = mw.getCurrentFrame() | |||
local templatestyles = '' | local templatestyles = '' | ||
if data.templatestyles then | if data.templatestyles then | ||