Wikibooks:Subdomains

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Details on how to use the multiple subdomains presently activated for Wikibooks. (From discussions moved from the Staff Lounge).

Subdomains introduced[edit source]

In case you hadn't noticed, Wikibooks now has subdomains. I set up redirects from http://wikibooks.org/ and http://www.wikibooks.org/ to Wikibooks portal, and then changed the main page of this wiki (which is now officially the English wiki) to be Main page. So if someone types en.wikibooks.org, it will take them to the English site, but if someone types wikibooks.org, it will take them to the old portal. All other URLs under the wikibooks.org domain are redirected to the corresponding page in en.wikibooks.org, so hopefully no links to us from outside will be broken.

Linking to other Wikimedia projects[edit source]

To link to other projects from wikibooks, you can use the following prefixes, which link to the same language of a different project:

  • w: wikipedia
  • wikt: wiktionary
  • q: wikiquote
  • b: wikibooks
  • m: meta-wiki

Note that any links you created to Wikipedias using syntax such as [[fr:Accueil]] will be broken -- they are now interlanguage links which will be extracted from the text and displayed in the sidebar. To link to a wikipedia of a different language, use w:fr:Accueil. -- Tim Starling 14:13, 20 Jul 2004 (UTC)

Questions[edit source]

(see also the Talk page.)

  • So now we have to change all of the links that used to say 'en:' to 'w:en:', manually. Is there a way you could do this with a bot or something? Could we change all of them at once? - SamE 15:24, 20 Jul 2004 (UTC)
It might be best to contact someone who operates a bot. -- Tim Starling 01:44, 21 Jul 2004 (UTC)
  • How do you create a new subdomain? Not that I want to, just that everything is en: right now, even the large German Wikibooks. Could you publicize this?
Go to the subdomain, there are instructions.
I went to the subdomain ( http://de.wikibooks.org ) and got an "does not exist" error. The I went to http://de.wikibooks.org/wiki/Hauptseite and there was the new domain. Now ( http://de.wikibooks.org ) works too and is redirected to die Hauptseite. But I still found no instructions. Did I anything wrong? I reregistered my nick, which worked. Do I guess right, and we have to migrate the pages manually?--berni 08:54, 21 Jul 2004 (UTC)

Portal[edit source]

  • And could you also put the portal back at www.wikibooks.org? Thanks for all your work, Tim. - SamE 00:58, 21 Jul 2004 (UTC)
As for putting the portal back: well, I considered attempting to serve the page from the English but with a wikibooks.org domain name, just using a rewrite rule, but making rewrite rules cross into different virtual hosts is tricky. Putting in a redirect to en was definitely the easiest solution. The other solutions would be:
  1. Write a PHP script to serve the page from the en.wikibooks wiki when requests come in for wikibooks.org or www.wikibooks.org
  2. Create a static HTML page based on the current portal and put it in the appropriate location. Easy to set up but hard to maintain.
  3. Create a separate self-contained wiki for the sole purpose of serving the portal page
Is the URL of the portal really that important? -- Tim Starling 01:44, 21 Jul 2004 (UTC)

The portal should be at http://wikibooks.org or http://www.wikibooks.org with a redirection from one to the other. Many people think that a web site has to start with www. Yann 12:16, 24 Jul 2004 (UTC)

Moving pages across subdomains, and Transwiki[edit source]

  • I just wondered if there is the posibility to move a page completely to an other subdomain (including history and discussion). This would be a nice feature. I also do not know if there are legal problems, if we just copy the content.--berni 09:08, 21 Jul 2004 (UTC)
The m:transwiki system was designed to move content from one project or language to another while maintaining some record of the authors. I don't think the ability to move pages into a different domain works yet, so that's probibly the best method to use. Also note that the transwiki log is only for pages that spend some time in the transwiki namespace at the target wiki, therefore if a page is going from the main namespace at en directly to the main namespace at de, it doesn't need to be registered in the log. Gentgeen 15:59, 21 Jul 2004 (UTC)
Ok. As far, as I understood, I have to copy & paste the main article, and maybe the discussion-page. Then I've to go over the history to find all authors, who contributed to that page und write them on the discussion page (or if they are very few, I put them in the summary, when creating the new page. The I'll list the original page at the votes for deletion. Am I right with this process or did I overlook something important? --berni 08:13, 22 Jul 2004 (UTC)
I think you've got the main points. Eventually, we're supposed to be able to move pages from one wiki to another, but that's not ready yet. Gentgeen 12:40, 22 Jul 2004 (UTC)
For people who are familar with Java I've written a short Javaprogramm, that reads a page at en.wikibooks.org and gives a sorted list of the authors, that contributed to that page (it only works, if there arent more then 10000 changes to that page). See http://pcpool.mathematik.uni-freiburg.de/~berni/ExtractAuthorBot.java Usage: Call it with the name of the page e.g. use "java ExtractAuthorBot Wikibooks:Staff_lounge" to get a list of persons who contributed to this page. --berni 09:05, 22 Jul 2004 (UTC)
I wrote some article for computer games and they'll be moved to ja.wikibooks but I can't know how to move them completely to ja.wikibooks. How to do it? Is it necessary to do something before click "Create wiki" button? http://ja.wikibooks.org/ shows "Wiki does not exist". PiaCarrot 10:35, 22 Jul 2004 (UTC)
As far, as I understood, it will be there in a few hours. So drink a cup fo tea ;-) --berni 10:49, 22 Jul 2004 (UTC)
I pasted my article to ja.wikibooks but I'm annoying for history information (in fact, all edits are made by me). What is it necessary thing to merge history? PiaCarrot 13:45, 22 Jul 2004 (UTC)
This is an unclear issue. As far as I know, it isn't possible to import history yet. User:Chriss suggested to keep the articles in the english wikipedia as long, as this is not cleared.--berni 14:07, 22 Jul 2004 (UTC)