Module:AVDevice: Difference between revisions

Change "Add part" button to link to Create_a_part with av_devices parameter (via update-page on MediaWiki MCP Server)
Change "Add accessory" button to link to Create_an_accessory with av_devices parameter (via update-page on MediaWiki MCP Server)
Line 535: Line 535:
addSectionRow(container, 'Accessories')
addSectionRow(container, 'Accessories')


-- Build the add accessory link with prefilled AV device
-- Build the add accessory link pointing to Create_an_accessory with av_devices parameter
local addAccessoryUrl = mw.uri.fullUrl(
local addAccessoryUrl = mw.uri.fullUrl(
"Special:FormEdit",
"Create an accessory",
{
{
form = "Accessory",
av_devices = pageName
["Accessory[av_devices]"] = pageName
}
}
)
)
MediaWiki Appliance - Powered by TurnKey Linux