Module:Newarticletext: Difference between revisions
From The Petit Planet Wiki
More actions
ReisuDesign (talk | contribs) Created page with "local p = {} function p.main(frame) local td_attr = { valign='top' } local td_css = { width='50%' } local title = mw.title.getCurrentTitle().text local sections = mw.loadData('Module:Newarticletext/data') local output = {} -- For Each Section for i,section_data in ipairs(sections) do if section_data['header'] and section_data['sections'] then local evenTest local section = page_layo..." |
ReisuDesign (talk | contribs) No edit summary |
||
| Line 58: | Line 58: | ||
function page_layout(section_title) | function page_layout(section_title) | ||
local table_attr = { | local table_attr = { | ||
class = 'wikitable mw-collapsible | class = 'wikitable mw-collapsible plainlinks', | ||
['data-expandtext'] = '+', | ['data-expandtext'] = '+', | ||
['data-collapsetext'] = '-' | ['data-collapsetext'] = '-' | ||