Wikibooks:Requests for import

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

Replacement filing cabinet.svgArchivesWikibooks Discussion Rooms
Discussions Assistance Requests
General | Proposals | Projects | Featured books General | Technical | Administrative Deletion | Undeletion | Import | Permissions

To preserve edit histories and observe the attribution requirements of the licenses, content from our sister projects should be imported rather than simply pasted into a new module. Wikibooks administrators and importers can import pages from any of the English-language projects, Simple English Wikibooks, Meta, and Wikispecies.

Requests to import can be made to help in making or expanding a book, and to move works from other projects that fit Wikibooks' scope. Place requests below and an administrator will try to perform the import promptly.

Note that administrators are not responsible for moving and cleaning up pages. Please watch this page for when the import is complete and take care of the imported page.

Administrators and importers: To import a page, go to Special:Import. After import, add {{dewikify}} to the page and make a note where the imported page has ended up. Pages will by default import into Transwiki:Page's name.

Where non-free media is required in a book, editors may request an administrator or uploader to upload the file by making a request below. Please provide the non-free media rationale.

Pages with extremely long edit histories may fail to import. In this case, a single revision which gives attribution to the source wiki will be imported. While this isn't ideal, it should satisfy our licensing. Note that repeated attempts to import may eventually bring over the history, so if it fails on the first attempt, you might want to try it a few more times. Please see bug 15000 (and vote for it to get it resolved sooner).

Import and Merge[edit]

Use this section for imports that need to be "history-merged" with a module that has already been started using copy-paste.

Add requests using the form:

*[[Project:Page name]] → [[Target Page]] ~~~~

Import from Wikisource for annotation[edit]

I have just transcluded s:Economic Sophisms and would like to now create a copy for annotation. Are there any examples of similar projects? Any guidelines? All and any advice gratefully received, Cheers from Wikisource, Zoeannl (discusscontribs) 08:29, 3 September 2018 (UTC)

@Zoeannl:, see Subject:Literature for annotation examples. Guidelines are listed here. I'll import the Wikisource text soon. Leaderboard (discusscontribs) 08:49, 3 September 2018 (UTC)
Doesn't seem to work. I tried importing from my end, but the output didn't contain the source text itself and was messed up. @Pi zero:, can you help? Don't think we've ever imported a Wikisource text before. Leaderboard (discusscontribs) 09:07, 3 September 2018 (UTC)
Sorry, I really struggle with wiki-ing; I'm a proofreader primarily. Perhaps @Billinghurst: can help? --Zoeannl (discusscontribs) 10:13, 3 September 2018 (UTC)
@Zoeannl, Leaderboard: Two questions: Should the pages be imported directly to Economic Sophisms? And, do you want all the subpages? I take it there was no difficulty importing the main page, s:Economic Sophisms, to our page Transwiki:Economic Sophisms; but each subpage has to be imported individually. --Pi zero (discusscontribs)
@Pi zero: I don't think you can even import the subpages. I tried to do one of them before, and got an error instead saying that some extension was missing. Leaderboard (discusscontribs) 11:28, 3 September 2018 (UTC)
Importing pages...
Import failed: The content model 'proofread-page' is not registered on this wiki. See to find out which extensions handle this content model.
Leaderboard (discusscontribs) 11:32, 3 September 2018 (UTC)
Aha! Now I see the problem. It isn't a problem with importing s:Economic Sophisms, nor its subpages such as s:Economic Sophisms/Introduction, but with the page-space content such as s:Page:Economic Sophisms.djvu/13. Which can be chalked up (being blunt) to the, er, poor design decision of the Foundation to proliferate special formats instead of expressing everything using ordinary wiki pages. (I am, of course, being "polite"; my unvarnished opinion of that design decision would use stronger language.)

I see only three options.

  • install the corresponding extension on Wikibooks; seems an extreme measure, probably unwise.
  • convince Wikisource to switch to using ordinary wiki pages for everything; seems an insane fantasy, since for the near future at least it'd require a severe downgrade in interface quality.
  • make do without.
--Pi zero (discusscontribs) 11:51, 3 September 2018 (UTC)
@Pi zero: I think another option is to have the user copy the content by hand, and then perform a history-merge to the copied content (as then the problem of the 'extension' will no longer be there). Would be a bit cumbersome though. Leaderboard (discusscontribs) 12:03, 3 September 2018 (UTC)
@Leaderboard: There's no history to merge, since the original page can't be imported. --Pi zero (discusscontribs) 12:12, 3 September 2018 (UTC)
Comment As we are transcluding pages from the enWS Page: ns and they are book model, eg. [1] and they result in wikitext [2]. I am guessing that if we are wanting to import them as text, we would almost need to convert them to different templates and then substituting a string of those components ... {{subst:Page}}. It isn't overly complex though would take some fiddling. Billinghurst (discusscontribs) 12:47, 3 September 2018 (UTC)
@Pi zero: The reason why the original page cannot be imported is because of the content. If the import target is pointed straight to the Wikibooks page, won't only the history import?
@QuiteUnusual: Can you do this using the importupload permission (potentially bypassing the import errors)? Leaderboard (discusscontribs) 12:49, 3 September 2018 (UTC)
I can try importing it all, and we'll see what it looks like when it arrives... QuiteUnusual (discusscontribs) 14:06, 3 September 2018 (UTC)
So basically nothing, same as a Transwiki import. To be clear, the issue is it doesn't EXPORT not that it won't IMPORT - the XML from an export is essentially empty. QuiteUnusual (discusscontribs) 14:10, 3 September 2018 (UTC)
Okay, I've got most of the text across by forcing the content-model change to wikitext on the import (e.g., Transwiki:Economic Sophisms.djvu/19). I will move the pages that actually have some content shortly. QuiteUnusual (discusscontribs) 14:31, 3 September 2018 (UTC)
@Zoeannl: Well that was fun. It's mainly done (e.g., see Economic Sophisms/Chapter 11 which has all the links) and is still in Wikisource style as I assume that will help a bit. It probably needs some restructuring to work with WB properly. I do like the {{TOCstyle}} module, imported now from S. QuiteUnusual (discusscontribs) 17:58, 3 September 2018 (UTC)
Looks good but what have you done? :) It looks like you've made each WSpage a WBchapter and then transcluded the BookChapter from the respective WSpages=WBchapters. You have imported the first 40 pages and then overwritten the first 10 to make the Book chapters? I can finish the transclusion, if you could move all the pages to chapters? If the first 22 chapters are the final BookChapters, would you move the (237) pages to Chapters 23 to 260? Or we could end up with the chapter titles e.g. Chapter 1 as Economic Sophisms/Abundance, Scarcity and the pages as chapters 1-238... Thanks! --Zoeannl (discusscontribs) 05:28, 4 September 2018 (UTC)
What I have done is replicate the WS structure where what you see as "chapters" just transclude other pages. That's because content is stored in WS per page of the original book not by chapter of that book. In other words, what you call Chapter 1 is a number of separate pages (and hence imports). I blocked them together in the same way and chose to call them "chapters", but you should ignore that - the 40 "chapters" listed here are just 40 separate blocks of content from WS and, in the case of 1 - 6 I've transcluded them to create "real" chapters. There isn't a one to one link between pages and chapters (and in many cases they overlap). I don't think there's a way of automating the import to create what you want - you'll have to work with the content that's come across and move it around in the way you want it either by transcluding or copy / pasting. If there are 237 additional pages to import, it's very unlikely that's going to happen soon because each one requires manual intervention to bring across. I will experiment but it'll take deeper thought QuiteUnusual (discusscontribs) 10:48, 4 September 2018 (UTC)
I have reimported all the content. You will find it linked from the main page as a series of subpages number 1 to 254 (e.g., Economic Sophisms/17). As I noted above, some are empty because on WS all they contain is a blank page of the source text. You'll have to work out how to add the kind of structure you want for the annotated text and then move the content in. E.g., do you want to transclude parts 1 - 17 into a page called Chapter 1? Or copy the text in? If there are any pages you don't want, please add {{delete}} to each one and someone will remove them. If you end up needing to do a bulk move of pages, ask an admin as they can do move all the subpages together. QuiteUnusual (discusscontribs) 15:35, 4 September 2018 (UTC)