Feature summary (what you would like to be able to do and where):
Allow Codex be called from Scribunto Lua, especially components and icons.
Use case(s):
Conecpt:
local codex_component = mw.codex.component local codex_icon = mw.codex.icon local warning_message = codex_component.create( 'Message' ) :prop( 'type', 'warning' ) :addClass( 'warning-bar' ) :attr( 'data-foo', 'bar' ) :wikitext( 'bar' ) local icon_journal = codex_icon.create( 'cdxIconJournal' ) :prop( 'label', 'Journal' ) :prop( 'dir', 'rtl' )
Benefits:
This would allow us to directly add Codex components, icons to Lua modules instead of manually build the HTML, upload the SVG files.