Module:CareerList: Difference between revisions

101 bytes removed ,  12 March 2023
no edit summary
No edit summary
No edit summary
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'
 
 
-- формируем ссылку
local link = string.format('[%s %s]', url, args.site or '')
 
-- формируем ячейки таблицы
local args = frame.args
local list = args.list or ''
local width = args.width or '100%'
 
return string.format([=[
<div class="mw-parser-output"><table class="wikitable career-list" style="width: 100%%s;">
<table style="width: 100%%; table-layout: fixed">
<caption>%s</caption>
<thead>
<tr>
<th scope="col">Категория</th>
<th scope="col">Ссылка</th>
<th scope="col">Псевдоним</th>
<th scope="col">Заметки</th>
</tr>
</thead>
<tbody>%s</tbody></table></div>]=], width, args.title or '', list)
<tbody>
%s
</tbody>
</table>
</div>]=], width, args.title or '', list)
end