mw wiki ext wikibase item sitelink set ID SITE TITLE [flags]
Set or remove one item sitelink. Set preserves existing badges by default. Repeated –badge explicitly replaces the complete badge set; –clear-badges explicitly removes all badges. Site IDs and allowed badges are finally validated by the selected Wikibase. Every edit uses a current revision snapshot, or requires –baserevid when supplied. Dry-run reads state without fetching a CSRF token or editing.