This project page is move-protected.

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.

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)

CSS in Template pages[edit]

Can anyone see why the CSS at Template:NarrowColumn/Styles.css won't save when placed out of comments? JimKillock (discusscontribs) 21:44, 18 November 2020 (UTC)

I don't quite follow, but are you aware that CSS comments must be placed like this: /* CSS Comment */ ? --Jules (Mrjulesd) 22:34, 18 November 2020 (UTC)
It basically was throwing off me creating CSS files if it saw any CSS error. So I was able to create Template:NarrowColumn/Styles.css when I commented the whole CSS out, as per /* CSS Comment */, but not otherwise, until I saw my mistake. JimKillock (discusscontribs) 14:02, 28 November 2020 (UTC)
Maybe you can't create css pages with errors, although I haven't tested this. --Jules (Mrjulesd) 01:41, 29 November 2020 (UTC)
Yes, that's right. Felt a bit stupid when I realised this. JimKillock (discusscontribs) 20:48, 1 December 2020 (UTC)

WSExport URL for submissions[edit]

Hi, I am trying to understand how currently Wikibooks may export content to ebook formats via WSExport. This gives options for language and page from which to export, eg

but the parameters make no reference to domain. How then do I specify the Wikibooks domain in order to create an export? JimKillock (discusscontribs) 13:10, 4 December 2020 (UTC)

The parameter is lang=en-wikibooks] in case anyone else needs this. JimKillock (discusscontribs) 12:43, 5 December 2020 (UTC)
However, it does not currently work. JimKillock (discusscontribs) 12:55, 5 December 2020 (UTC)
I don't know how you can get the tool to work for Wikibooks. But for Wikibooks you can try MediaWiki to LaTeX which can give several output formats. For basic PDFs you can also click the "Download as PDF" link on the sidebar while viewing the "print version" of a wikibook. --Jules (Mrjulesd) 02:15, 6 December 2020 (UTC)
EDIT also see Help:Print versions for more advice on export. For XML export see Help:Export. --Jules (Mrjulesd) 02:18, 6 December 2020 (UTC)
Thanks Jules, AIUI it should work – they say this is supported – see T266085 proposal to drop WSExport support for Wikibooks which links to code asking for ?lang=en-wikibooks in the WSExport parameters; it does not seem to work so I have raised a ticket at T269956. JimKillock (discusscontribs) 18:56, 11 December 2020 (UTC)

Styling the term in a definition list.[edit]

Hi, A definition list created with " ; term : definition" is displayed with the term emboldened. If the Template:Defn is used, the term can be normal weight. Is there a less cumbersome way to make the term plain rather than bold? Thanks, ... PeterEasthope (discusscontribs) 20:47, 7 December 2020 (UTC)

Afaict, there's a set of templates, {{glossary}} {{glossary end}} {{term}} {{defn}}, meant to be used thus:
{{glossary end}}
These templates generate html tags
which looks like this:
That looks the same as would be produced by
;foo :bar
(or rather, in this case since I'm indenting by two levels, ::;foo :bar).
--Pi zero (discusscontribs) 21:15, 7 December 2020 (UTC)

Centering in a cell in a table[edit]

Hi, tables can be used to create an illustration as in this section. Observe that in the middle row, first column, "Oberon MediaWiki.Markup command ... downarrow" is left justified in the cell. In my trial, "text-align: center" failed to center the content in the cell. Is this a limitation of MediaWiki translation of markup to HTML? Can anyone suggest how to center in this instance? Thanks ... PeterEasthope (discusscontribs) 17:57, 16 January 2021 (UTC)

@PeterEasthope: I've tried something; not sure if it's the effect you wanted. --Pi zero (discusscontribs) 18:50, 16 January 2021 (UTC)
Good! I should have thought of "align" rather than "text-align". Thanks! ... PeterEasthope (discusscontribs) 19:06, 16 January 2021 (UTC)