* * Dependencies: mediawiki.util * * * */ mw. Use the 'what links here' toolbox link to find double redirects to a particular page, or use Special:DoubleRedirects to find them throughout the whole wiki./** * Redirect User:Name/skin.js and skin.css to the current skin's pages * (unless the 'skin' page really exists). You are most likely to need to do this after a significant page move. This sometimes causes pages to appear as if the user created them, when in reality they only created a redirect that later someone else turned into an article. However this does mean that you should look out for double redirects and eliminate them, by changing them to be 1-step redirects instead. Due to limitations with MediaWiki, XTools cannot efficiently determine whether a page was a redirect when it was first created. It avoids people building up an unpleasantly complicated tree of redirects! This is a deliberate restriction, partly to prevent infinite loops, and partly to keep things simple. Instead people will just be presented with the relevant link (a view of the redirect page). Two types of redirections exist: Hard redirection: Readers navigated to the redirect page are taken directly to the target page (usually other pages of the same. The redirecting will not follow through to the end of the chain. See: Help:Deleting a page Double redirectsĪ double redirect (a page redirecting to a page which is itself a redirect) will not work. 10.1k 6 6 gold badges 34 34 silver badges 59 59 bronze badges. if the page name of the redirect is offensive, or you wish to discourage people from referring to concept by that name, then you simply go to the redirect page, and follow the same procedure for deleting a page. If you do need to delete a redirect, e.g. If a page name is vaguely meaningful there's no harm (and some benefit) in having it as a redirect to the most relevant existing page in your wiki. They do not occupy a significant amount of database space, and they do not show up in wiki search results. There's generally no need to delete redirects. You can edit the page if the redirect is wrong, and you can revert to an older version to remove the redirect. You can view the history of the page before the redirect was put in place. So, in the example given by the extension, first you create the namespace 'Moved', make it editable by sysops and redirectors, then enable extension only in that namespace. You can go to the associated discussion page to discuss the redirect. The trick is to allow external redirects only in a namespace that is editable only by the sysops and the redirectors user group. Click this to get back to the redirected page name, and "view" the redirect.īy doing this, you can do all the things that any wiki page allows. After the initial installation, the MediaWiki platform does not have a built-in application administration and configuration section. But this time I have a media wiki server running on a port. If set to nonredirects when blredirect is enabled, this is only applied to the second level. The browser is always redirected! However near the top of the page, a link is provided. I have used OpenResty to redirect to internal locations defined in the NginX configurations. ![]() You can use the 'preview' button, to check that you have entered the correct page name (Generally you will be redirecting to an existing page name, so the link should be blue, not red)Īfter creating a redirect, you can no longer get to that page name. index sets the default file that will be served. The root directive sets the web root for this host we’re setting it to the wiki/ subdirectory where our MediaWiki install lives. It sets the hostname for Nginx to listen to so that it knows to use this config file for all requests to that hostname. Where pagename is the name of the page you want to redirect users to. This is the base server configuration block. Do this by typing the desired name into the search box, or straight into the URL (methods described on Help:Starting a new page)įor the text of the new page, enter the following: To create a redirect, you must start a new page with the name you want to direct from. Alternative solution is to write a MediaWiki extension and introduce yet another tag for such redirections, but it seems to be an overkill to me. 5 A redirect to a page in the category namespace Add some JavaScript to MediaWiki:Common.js which would perform redirect when some condition occurs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |