Module:AVDevice: Difference between revisions
Fix badge breadcrumb: replace external link syntax with plain wikilink to avoid nofollow and external-link icon (via update-page on MediaWiki MCP Server) |
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) |
||
| Line 246: | Line 246: | ||
) | ) | ||
-- Type badge (breadcrumb) — | -- Type badge (breadcrumb) — plainlinks hides external icon, $wgNoFollowDomainExceptions handles nofollow | ||
local badgeWikitext = '[[AV Device Search|AV device]]' | local badgeWikitext = '[[AV Device Search|AV device]]' | ||
if device_type then | if device_type then | ||
badgeWikitext = badgeWikitext .. ' › [ | local typeUrl = tostring(mw.uri.fullUrl('AV Device Search', {device_type = device_type})) | ||
badgeWikitext = badgeWikitext .. ' › <span class="plainlinks">[' .. typeUrl .. ' ' .. device_type .. ']</span>' | |||
end | end | ||
addFullRow(container, badgeWikitext, '', false, 'infobox-type-badge') | addFullRow(container, badgeWikitext, '', false, 'infobox-type-badge') | ||