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())}


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

<k>wiki>javascript:with(document.forms[0]){good(nt=prompt('Name%20',wgTitle));good(wpSummary.value+='dir');good(wpTextbox1.value='DIRECT%20Category:'+nt+'');c</bowing>

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