Module:Sidebar: Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 20: | Line 20: | ||
function sidebar_title() | function sidebar_title() | ||
local lines = {} | local lines = {} | ||
table.insert("|-") | table.insert(lines, "|-") | ||
table.insert(string.format("! %s", title)) | table.insert(lines, string.format("! %s", title)) | ||
return table.concat(lines, "\n") | return table.concat(lines, "\n") | ||
end | end | ||
| Line 28: | Line 28: | ||
function sidebar_row(row_content) | function sidebar_row(row_content) | ||
local lines = {} | local lines = {} | ||
table.insert("|-") | table.insert(lines, "|-") | ||
table.insert(string.format("| %s", row_content)) | table.insert(lines, string.format("| %s", row_content)) | ||
return table.concat(lines, "\n") | return table.concat(lines, "\n") | ||
end | end | ||
| Line 36: | Line 36: | ||
function header_footer_row(row_content) | function header_footer_row(row_content) | ||
local lines = {} | local lines = {} | ||
table.insert("|-") | table.insert(lines, "|-") | ||
table.insert(string.format('| style="font-size: 80%;" | %s', row_content)) | table.insert(lines, string.format('| style="font-size: 80%;" | %s', row_content)) | ||
return table.concat(lines, "\n") | return table.concat(lines, "\n") | ||
end | end | ||