Module:CareerList: Difference between revisions
Content deleted Content added
PeaceDeadC (talk | contribs) No edit summary Tag: Manual revert |
PeaceDeadC (talk | contribs) No edit summary |
||
Line 3:
function p.CareerList(frame)
local args = frame.args
local site = string.lower(args.site or '')
local id = args.id or ''
local alias = args.alias or args[1] or ''
local notes = args.notes or 'N/A'
Line 20:
-- формируем ссылку
local link = string.format('[%s %s]', url, args.site or '')
-- формируем ячейки таблицы
Line 37:
local args = frame.args
local list = args.list or ''
local width = args.width or '100%'
return string.format([=[
<div style="width: %s">
<table style="width: 100%%; table-layout: fixed">
<caption>%s</caption>
! Категория▼
<thead>
<tr>
! Псевдоним▼
! Заметки▼
<th scope="col">Ссылка</th>
%s]=], args.title or '', list)▼
</tr>
</thead>
<tbody>
%s
</tbody>
</table>
end
| |||