Commons:Categories/redirect bookmarklets

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

These bookmarklets create redirects to the category namespace.

Redirect to the same category[edit]

Creates a redirect to the category with the same name as the current page

javascript:with(document.forms[0]){void(nt=wgTitle);void(wpSummary.value+='[[:Category:'+nt+'|redir]]');void(wpTextbox1.value='#REDIRECT%20[[:Category:'+nt+']]');void(wpSave.click())}

Redirect to which category[edit]

Prompts for the category name, prefilled with the name of the current page

javascript:with(document.forms[0]){void(nt=prompt('Name%20',wgTitle));void(wpSummary.value+='[[:Category:'+nt+'|redir]]');void(wpTextbox1.value='#REDIRECT%20[[:Category:'+nt+']]');void(wpSave.click())}

Redirect to this category[edit]

Prompts for the name of a page that should redirect to the current category

javascript: