From WikiChip
Difference between revisions of "Module:chip"

(Created page with "local p = {} function p.chip(frame) return 'test' end return p")
 
Line 1: Line 1:
 
local p = {}
 
local p = {}
 
function p.chip(frame)
 
function p.chip(frame)
     return 'test'
+
     local infobox = mw.html.create('table')
 +
 
 +
    infobox
 +
        :attr('class', 'chip-infobox')
 +
 
 +
    return infobox
 
end
 
end
 
return p
 
return p

Revision as of 02:20, 3 January 2017

To add this template, simple add
{{chip}}
to the page and save. The chip infobox will have a small [Edit Values] button at the top-right corner which can be used to add values using a form.
local p = {}
function p.chip(frame)
    local infobox = mw.html.create('table')

    infobox
        :attr('class', 'chip-infobox')

    return infobox
end
return p