Wikibooks:Reading room/Technical Assistance

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

Welcome to the Technical Assistance reading room. Get assistance on questions related to MediaWiki markup, CSS, JavaScript, and such as they relate to Wikibooks. This is not a general-purpose technical support room.

To submit a bug notice or feature request for the MediaWiki software, visit Phabricator.

To get more information about the MediaWiki software, or to download your own copy, visit MediaWiki

There are also two IRC channels for technical help: #mediawiki for issues about the software, and #wikimedia-tech for WMF server or configuration issues.

Creating Book Pages[edit]

I am a new user and I am still not familiar with how to correctly create pages in a book. I received this as a comment: Pages should be created as a subpage - e.g,. "Book Name" and "Book Name/Chapter Name" and NOT as "Chapter Name".

It seems that the pages are fixed. Can I create /Chapter Name/ instead? Is this equivalent to Book Name/Chapter Name? --Rjbfigueroa (discusscontribs)

No. If you create a page "Chapter Name", it ends up as a new book named "Chapter Name". If you create a page as "/Chapter Name/" it still ends up as a new book named "Chapter Name", but I suspect that the page you're actually working on will end up being named "" as a subpage of the book "Chapter Name", If you create it as "Book Name/Chapter Name" then it is a page in the book "Book Name". Basically, the slash is used as a way to show what this page belongs to. Chazz (talk) 22:52, 21 May 2019 (UTC)

Renaming Book Pages[edit]

How do I rename a Book Page? When I change the name of the Book Page, it seems that the link to the old page is broken and I have copy the old content to the new page that was created as a result of renaming. TIA!

--Rjbfigueroa (discusscontribs)

@Rjbfigueroa: Can you give an example of a page you wanted to move, and where you wanted to move it to, so we can see what happened?

Fwiw, here's how to move a page, if you're using Vector skin (in the desktop interface, rather than the mobile one): View the page you want to move (not its talk page). There should be a control bar at the top of the browser, and way over on the far right of it there should be a dropdown menu. The only option on that menu should be either "rename" or "move"; use that. --Pi zero (discusscontribs)

Categories at the bottom of each page[edit]

What determines the word used to introduce the list of categories at the bottom of a page? It differs by namespace; in Cookbook it's "More", in Wikijunior it's "See also", in project space it's apparently either "Category" or "Categories" depending on how many there are. I've no problem with any of those. But in mainspace it's "Subjects", which was never quite right and now seems wrong. --Pi zero (discusscontribs) 01:15, 21 May 2019 (UTC)

I can't find it either with the search engine. We don't have this particularity on the French Wikibooks and I don't think it comes from LocalSettings.php. So we might hack the code to find it. JackPotte (discusscontribs) 07:39, 21 May 2019 (UTC)

Template / style help[edit]

Asked this over in admin and got no response...

The Muggles' Guide book chapter pages make use of a template Muggles' Guide to Harry Potter/Book/Page which is intended to show the page / chapter before and after the current chapter as links, which it does quite handily... but in the process, it overlays this forward / back text on top of the breadcrumbs, making it difficult to get back up one level to the book, or two or three levels to the project page. The issue is with all the book chapter pages, has to do with a template used on all of them. Example: Muggles' Guide to Harry Potter/Books/Deathly Hallows/Chapter 5. The template is used like this: {{Muggles' Guide to Harry Potter/Book/Page|prev=Chapter 4|next=Chapter 6|tab=5|title=Fallen Warrior}} The text that the template puts up overlays the breadcrumb link that allows the user to step up a level to the book overview page.

The book template {{Muggles' Guide to Harry Potter/Book}}, as used in Muggles' Guide to Harry Potter/Books/Order of the Phoenix, seems to also have a problem - possibly an unclosed style tag - because while it exhibits the same overlaying of the breadcrumbs, the text that is affected, and that vanishes if the breadcrumbs happen to win the race, is the entire list of chapters. And that list is also coming up in a smaller than usual font...

I've looked at the templates for these myself, but they in turn seem to depend on other templates, and I'm not prepared to go down that rabbit hole at the moment... are there any brave scriptmongers willing to take a look at this? Chazz (talk) 22:57, 21 May 2019 (UTC)