Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
If you make an edit, a temporary account will be created for you.

Module:Newarticletext: Difference between revisions

From The Petit Planet Wiki
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 mw-collapsed plainlinks',
         class                = 'wikitable mw-collapsible plainlinks',
         ['data-expandtext']  = '+',
         ['data-expandtext']  = '+',
         ['data-collapsetext'] = '-'
         ['data-collapsetext'] = '-'