Contents

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).

In some cases an import may partially fail and need to be repeated. If this happens, the revisions may be out of sequence in the history so you need to check the current revision is the one you want to use as the base for your book

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 (discuss • contribs) 08:29, 3 September 2018 (UTC)

@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 (discuss • contribs) 11:28, 3 September 2018 (UTC)

Importing pages...
Import failed: The content model 'proofread-page' is not registered on this wiki. See https://www.mediawiki.org/wiki/Content_handlers to find out which extensions handle this content model.

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.)

@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 (discuss • contribs) 12:03, 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 (discuss • contribs) 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?

I can try importing it all, and we'll see what it looks like when it arrives... QuiteUnusual (discuss • contribs) 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 (discuss • contribs) 14:10, 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 (discuss • contribs) 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 (discuss • contribs) 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 (discuss • contribs) 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 (discuss • contribs) 15:35, 4 September 2018 (UTC)