Jump to content

Module:Asbox: Difference between revisions

577 bytes removed ,  31 October 2024
no edit summary
(Undo revision 382430 by WikiDwarf (talk))
Tag: Undo
No edit summary
Line 178: Line 178:
})
})
:_((not p.demo or p.demo == 'doc') and--Add standard stub template documentation
:_((not p.demo or p.demo == 'doc') and--Add standard stub template documentation
require('Module:Documentation').main{
require('Module:Documentation').main
content = Buffer(page.text ~= 'Stub' and--This comparison performed in {{Asbox/stubtree}} before it invokes Module:Asbox stubtree
require('Module:Asbox stubtree').subtree{args = {pagename = page.text}}
)
)
:_in'\n== About this template ==\nThis template is used to identify a':_(args.subject):_'stub':_(args.qualifier):_out' '--space
:_in'\n== About this template ==\nThis template is used to identify a':_(args.subject):_'stub':_(args.qualifier):_out' '--space
Line 197: Line 195:
:_(frame:expandTemplate{title = tStubDoc.text})
:_(frame:expandTemplate{title = tStubDoc.text})
:_'\n\n'(),
:_'\n\n'(),
['link box'] = Buffer'This documentation is automatically generated by [[Module:Asbox]].'
:_in'The general information is transcluded from [[Template:Stub documentation]]. '
:_(mw.html.create'span'
:cssText'font-size:smaller;font-style:normal;line-height:130%'
:node(('([%s edit] | [%s history])'):format(
tStubDoc:fullUrl('action=edit', 'relative'),
tStubDoc:fullUrl('action=edit', 'relative'),
tStubDoc:fullUrl('action=history', 'relative')
tStubDoc:fullUrl('action=history', 'relative')
))
)
:_out()
:_out()
:_(page.protectionLevels.edit and page.protectionLevels.edit[1] == 'sysop' and
:_(page.protectionLevels.edit and page.protectionLevels.edit[1] == 'sysop' and
Line 212: Line 203:
.. '| /doc] subpage, which is not protected.'
.. '| /doc] subpage, which is not protected.'
)' <br/>'
)' <br/>'
}
)()
end
end