Module:RemoteControl: Difference between revisions

Clean up inline styles, use Template:Remote control/styles.css (via update-page on MediaWiki MCP Server)
Add ECID field to infobox matching CRT model implementation (via update-page on MediaWiki MCP Server)
 
Line 63: Line 63:
local title = mw.title.getCurrentTitle()
local title = mw.title.getCurrentTitle()
local pageName = title.text
local pageName = title.text
local pageId = title.id or 0


local brand = trim(args.brand)
local brand = trim(args.brand)
Line 113: Line 114:


addRow(container, 'Type', 'Remote', false)
addRow(container, 'Type', 'Remote', false)
-- ECID row: build as a normal external link wikitext; preprocess not required, but fine.
local ecidWikitext = string.format('[{{fullurl:%s|curid=%d}} EC%d]', pageName, pageId, pageId)
addRow(container, 'ECID', frame:preprocess(ecidWikitext), true)


-- Contribute section
-- Contribute section
MediaWiki Appliance - Powered by TurnKey Linux