Module:Sandbox/User:Microbrews/Variants: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 42:
variant_name = variant_name:gsub('^%s*(.-)%s*$', '%1') -- trim whitespace
variant_name = variant_name:gsub('%((.-)%)$', '%1') -- trim parentheses
variant_name = variant_name:gsub("^%l", string.upper) -- capitalize first letter
table.insert(formatted, '[[' .. name .. '|' .. variant_name .. ']]')
end
Line 112 ⟶ 113:
:tag('td')
:css{ ['border-left'] = 'none' }
:wikitext('[['..entry[1'page']..']]')
:done()
:tag('td')
291

edits