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)
No edit summary
ReisuDesign (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 75: Line 75:


function preload_link(page, preload, display)
function preload_link(page, preload, display)
     return mw.html.create('a')
     return mw.html.create('span')
         :attr(
         :attr('class', 'preload-plus-link')
            'href',
         :attr('data-preload', tostring(preload))
            tostring(mw.uri.fullUrl(page))
         :attr('data-page', tostring(page))
        )
        :attr(
            'class',
            'preload-plus-link'
        )
         :attr(
            'data-preload',
            tostring(preload)
        )
         :attr(
            'data-page',
            tostring(page)
        )
         :wikitext(display)
         :wikitext(display)
end
end