Module:AVDevice: Difference between revisions

Badge fix: use plainlinks + external link with query params for pre-filtered device type search. $wgNoFollowDomainExceptions handles nofollow, plainlinks hides external icon. (via update-page on MediaWiki MCP Server)
Change "Add part" button to link to Create_a_part with av_devices parameter (via update-page on MediaWiki MCP Server)
Line 645: Line 645:
addSectionRow(container, 'Parts')
addSectionRow(container, 'Parts')
-- Build the add part link with prefilled AV device
-- Build the add part link pointing to Create_a_part with av_devices parameter
local addPartUrl = mw.uri.fullUrl(
local addPartUrl = mw.uri.fullUrl(
"Special:FormEdit",
"Create a part",
{
{
form = "Part",
av_devices = pageName
["Part[av_devices]"] = pageName
}
}
)
)
MediaWiki Appliance - Powered by TurnKey Linux