Module:ScriptItem: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 581: Line 581:
local headers = nil--{ "Type", "Description" }
local headers = nil--{ "Type", "Description" }
local rows = { { p.formatType(tokens[1], frame), description } }
local rows = {}
rows[1] = { p.formatType(tokens[1], frame), description }
if args.readonly == 'true' then
rows[2] = { p.formatType('readonly', frame), 'This '..args.type..' cannot be changed.' }
else
rows[2] = { 'read/write', 'This '..args.type..' can be changed, as well as read.' }
end
local widths = { 120, 400 }
local widths = { 120, 400 }
return p.table(headers, rows, widths, 'wikitable-returns wikitable')
return p.table(headers, rows, widths, 'wikitable-returns wikitable')
6,834

edits

Navigation menu