Module:Infobox/split: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
p.makeEmptyColumnEmpty = function(frame) | p.makeEmptyColumnEmpty = function(frame) | ||
local ret = string.gsub(frame.args[1], "\127'\"`UNIQ%-%-nowiki%-%x%x%x%x%x%x%x%x%-QINU`\"'\127", "") | local ret = string.gsub(frame.args[1], "\127'\"`UNIQ%-%-nowiki%-%x%x%x%x%x%x%x%x%-QINU`\"'\127", "") | ||
return ret | |||
end | |||
p.makeEmptySplitEmpty = function(frame) | |||
local ret = string.gsub(frame.args[1], "\127'\"`UNIQ%-%-nowiki%-%x%x%x%x%x%x%x%x%-QINU`\"'\127", "") | |||
ret = string.gsub(ret, "</tr><tr>", "") | |||
return ret | return ret | ||
end | end | ||
return p | return p |
Revision as of 20:07, 23 October 2024
Documentation for this module may be created at Module:Infobox/split/doc
local p = {} p.generateColumns = function(frame) local ret = "" for i in frame.args do ret = ret .. frame:expandTemplate{ title = "User:Viklo/Infobox/split/column", args = { i } } end return ret end p.makeEmptyColumnEmpty = function(frame) local ret = string.gsub(frame.args[1], "\127'\"`UNIQ%-%-nowiki%-%x%x%x%x%x%x%x%x%-QINU`\"'\127", "") return ret end p.makeEmptySplitEmpty = function(frame) local ret = string.gsub(frame.args[1], "\127'\"`UNIQ%-%-nowiki%-%x%x%x%x%x%x%x%x%-QINU`\"'\127", "") ret = string.gsub(ret, "</tr><tr>", "") return ret end return p