Module:Documentation: Difference between revisions

osrsw>Shayani
useful history button alongside edit and purge
osrsw>Shayani
prep for css class change
Line 62: Line 62:
     ret2 = mw.html.create( nil )
     ret2 = mw.html.create( nil )
         :tag( 'div' )
         :tag( 'div' )
             :addClass( 'doc-header' )
             :addClass( 'doc-header documentation-header')
             :tag( 'span' )
             :tag( 'span' )
             :addClass( 'doc-title' )
             :addClass( 'doc-title documentation-title' )
             :wikitext( string.format('%s documentation', onModule and 'Module' or 'Template') )
             :wikitext( string.format('%s documentation', onModule and 'Module' or 'Template') )
             :done()
             :done()
             :done()
             :done()
         :tag( 'div' )
         :tag( 'div' )
             :addClass( 'doc-transclusion' )
             :addClass( 'doc-transclusion documentation-subheader' )
             :tag( 'span' )
             :tag( 'span' )
             :addClass( 'documentation-documentation' )
             :addClass( 'documentation-documentation' )
Line 75: Line 75:
             :done()
             :done()
             :tag( 'span' )
             :tag( 'span' )
             :addClass( 'doc-editlinks plainlinks' )
             :addClass( 'doc-editlinks documentation-links plainlinks' )
             :wikitext(
             :wikitext(
            '[[' .. tostring( mw.uri.fullUrl( page .. '/doc', {action='edit'} ) ) .. ' edit]] ' ..
            '[[' .. tostring( mw.uri.fullUrl( page .. '/doc', {action='edit'} ) ) .. ' edit]] ' ..