6,834
edits
No edit summary |
No edit summary |
||
Line 364: | Line 364: | ||
local headers = nil | local headers = nil | ||
local rows = { { "void", "This "..args.type.." doesn't take any parameters." } } | local rows = { { "void", "This "..args.type.." doesn't take any parameters." } } | ||
local widths = { | local widths = { 30, 80, 510 } | ||
return p.table(headers, rows, widths, 'wikitable-parameters wikitable') | return p.table(headers, rows, widths, 'wikitable-parameters wikitable') | ||
else | else | ||
Line 371: | Line 371: | ||
local isOptional = tokens[3] == 'optional' | local isOptional = tokens[3] == 'optional' | ||
local defaultValue = isOptional and tokens[4] or "n/a" | local defaultValue = isOptional and "<span style='font-family: \"Source Code Pro\", monospace;'>"..tokens[4].."</span>" or "n/a" | ||
local description = p.formatDescription(table.concat(tokens, ' ', isOptional and 5 or 3)) | local description = p.formatDescription(table.concat(tokens, ' ', isOptional and 5 or 3)) | ||
edits