Wikibooks:Reading room/Technical Assistance

From Wikibooks, the open-content textbooks collection

< Wikibooks:Reading room(Redirected from WB:TECH)
Jump to: navigation, search
ArchivesReading Rooms
General Discussion Books & Projects User Help Announcements
General Projects | Feature requests General | Technical | Administrative (Usurps/Renaming) Bulletin Board

Contents

Wikimedia Commons logo Post a comment
if you use the title box, you don't need to put a title in the body

Welcome to the Technical Assistance reading room. Asks questions and get assistance with the MediaWiki software, the wiki markup language, site-related CSS and Javascript questions, and questions about the software configuration at Wikibooks. This is not a general-purpose technical support room. See the Study help desk for general technical questions, and the Reading Room for general non-technical ones.

To facilitate ease of browsing and replying, please:

  1. Place your question at the bottom of the page;
  2. Title the question (by placing the title between equals signs thus: == title ==);
  3. Sign your name and date (by adding four tildes thus: ~~~~).

[edit] Using Template:Page-break

I've begun work on a Wikibook intended for use as a printed workbook. Each "chapter" is a page of the workbook and needs to start on a new page of the printout. I tried using {{Page-break}} and {{Page-break/end}} on my print-version page, both in front of each chapter (template inclusion), and surrounding each chapter, but when I printed (using Firefox browser), no page breaking occurred between the chapters. Is there a discussion or example somewhere that shows how to cause page-breaks on the print version? --Lindsay (talk) 12:36, 27 October 2008 (UTC)

I've never heard of the templates {{Page-break}} or {{Page-break/end}}, I'll look at them and make sure they are doing the right kinds of things. I have some other templates that can be used with a printable version, and I can make you a printable version of your book if you want. What book is it? --Whiteknight (Page) (Talk) 14:12, 8 November 2008 (UTC)
It's not public yet, only a few pages have been written so far. To see what I have so far, click here. In addition to your generous offer to help with this particular project, I'd appreciate any suggestions on how I might have found this information on my own. I haven't found any good way to locate templates for common jobs, such as the "tlx" template you used in your reply. Thanks! --Lindsay (talk) 14:05, 24 November 2008 (UTC)
The problem seems to be that most of the functionality offered by {{Page-break}} is not supported by popular browsers (Firefox, IE). However, some of it is. In fact, sufficient to force a page break. I implemented a template called {{Newpage}} (the name is similar to the LaTeX command \newpage). As far as I tested it, it works with Firefox, IE, Safari, and the Adobe PDF printer for Windows. (The current PDF generation with the link "PDF version" does not support it.) Comments are welcome. --Martin Kraus (talk) 10:57, 3 December 2008 (UTC)
Thanks, Martin. I tried it on my Mac with Firefox and a Preview print, and it seemed to work perfectly. --Lindsay (talk) 21:03, 3 December 2008 (UTC)
Great. I'm also using it now to produce a PDF version of a multi-module wikibook and realized that it is recommendable to have no white space (in particular no empty lines) right before {{Newpage}} in order to avoid completely blank pages. However, two or more empty lines after {{Newpage}} are a good idea to have some vertical spacing if there are no page breaks at all as in the HTML rendering of the print version. I've added a corresponding commont on the template page for {{Newpage}}. --Martin Kraus (talk) 09:06, 4 December 2008 (UTC)

[edit] Subject Categorising

Hi!,
Can anybody please advise me in simple terms... I have read the advice pages but...
Why are there both category and subject links in book pages?
I know what a subject is, and why sub-categories are useful,
but why don't I just need subject links?
What are category links for? How are these intended to differ?

Armchair (talk) 16:59, 12 December 2008 (UTC)

Are you asking what the difference is between {{subject|Foobar}} and [[Category:Foobar]]? The first is a template which uses category underneath. You can include multiple categories (up to about 10 categories) using subject so less typing is involved and can make things look nicer. The subject template also automatically includes the book category when used. There is no real reason to use both. --darklama 17:34, 12 December 2008 (UTC)

[edit] About a 'for' command

Who can help me describ the following command? for /f "tokens=3" %%x in ('echo list volume ^| diskpart ^| findstr /c:"ULCPCOPK %1"') do SET DVDROM=%%x:

[edit] Subjects and Categories

Hello again, Can an admin advise on this please?

  • Can new subject pages, (not general category pages), be made, or are users stuck with the existing structure?
  • If they can be made, how is it done? I get spurious results trying to make one with the subject syntax.
  • The number of miscellaneous subjects is quite large and the top level subject list is quite restricted. For example, there is not even a 'Recreation' or 'Sport' top level subject. Is there any existing group that is working on the subject structure.
  • Thanks for any input, as I have just realised that I do not understand the subject that I am trying to write about!!! Armchair (talk) 15:46, 16 December 2008 (UTC)
New Subject pages can be created - Whiteknight has the templates (1, 2) for that. But, I'd suggest that they be kept to a minimum. Miscellaneous is probably the only one that needs refinement.  — Mike.lifeguard | talk 18:01, 18 December 2008 (UTC)
Well, I disagree there :-). The subject namespace is sadly empty... feel free to make pages! --SB_Johnny | PA! 23:14, 18 December 2008 (UTC)
And I disagree with you disagreement. If we go about the subject namespace as we have gone with the categories then we lose a great chance to provide the community something useful, I have recently put some of my time on the subject of categories and as they are they should be turned into something more orderly but the work required is abysmal, please SB_Johnny, do help provide a guideline to the use of the subject namespace, if we let them get into a chaotic state then what's the point... --Panic (talk) 23:55, 18 December 2008 (UTC)
Subject pages can be very useful for interwiki linking, and organizing subjects that are addressed in more than one book. That's actually what I plan to be doing this winter with plant names, etc. This was discussed when we first added the namespace. --SB_Johnny | PA! 12:02, 19 December 2008 (UTC)
Armchair, if you intend to put some time into organizing the subject namespace, try to talk with Witheknight he has done some preliminary work on that topic, remember to avoid using the subject namespace in a way similar to the category namespace, my believe is that it should replace the bookshelves that exist (they provide a similar function), avoid creating subjects dealing only one book and try to make a connection to categories, I have created subject pages to categories with more that one book, see Subject:C++, similar problems exist, names given to subjects should avoid conflict with book names and try to extend the information present on categories, with extended information on the books sharing a subject, as you can see in that example. If you have some ideas please use this space so work is synchronized.
For categories, I have been removing them from subpages and were relevant added what I removed to the book category so categories are crosslinked by the topic they share, for the names due to what is already present I've selected to keep using the prominent method, names start in upper case and the rest is always lower case (this avoids most conflicts with book names ie: Category:Windows Programming all pages of Wikibook Windows Programming and Category:Windows programming general and should also point to a Subject:Windows programming, were all books on the subject are given small description... --Panic (talk) 23:55, 18 December 2008 (UTC)

[edit] Chords diagram

Hi. I came across Guitar/Chord Reference, which is both inaccurate and frumpy. I wonder if it would be possible to enable an appropriate chords output package for LaTeX, such as GChords, which is versatile enough to handle not only the guitar but also several fretted chordophones/plucked string instruments. Jd (talk) 11:31, 20 December 2008 (UTC)

I'm not aware of a way to do this kind of advanced type setting with the wiki markup language. Thus, I'm afraid you'll have to create an appropriate image (preferable SVG: scalable vector graphics) for each chord and upload it (preferable to Wikimedia Commons) to use it here at Wikibooks. There are a few such images already available in Wikimedia Commons, e.g.: here but many are missing and you might prefer a different notation. One way to create these SVG images might be to compile LaTeX code to Postscript, convert that to PDF and from that to an SVG image. There should be free software available for all the steps. --Martin Kraus (talk) 21:04, 20 December 2008 (UTC)

[edit] Dropimage template has changed!

Dropimage has changed; it started recently, at about the time that the template suddenly aquired the show/hide link labels. These labels are longer than the earlier link label and as a result some existing work now overlaps. In addition, the alignment to center no longer works for all of the instances in WikiBooks of that template. I no longer seem to be able to edit it!

Can an admin please correct the matter?

P.S. The Editing Wikitext task is up for grabs!!!

Armchair, 1600 GMT 24 Dec 2008.

Hello: I have found a coding error in the dropimage template which accounts for the 'failure to center' and I have corrected it and saved it. However, when I examine the template code I notice that it does not reflect the recent change. Is it something to do with flagged revisions? It affects quite a number of pages, so approval of the revision would be appreciated. Thanks in advance for any reviewer assistance, Repairman (talk) 17:02, 5 January 2009 (UTC)

By the way, does anybody know how to change the wording of the navframe link; for example so that it just has the arrow without any wording like show/hide? Thanks again, Repairman (talk) 17:04, 5 January 2009 (UTC)

I'd suspect this could simply be due to the fact that changes in templates take a while to propagate through the server cache. Wait a while or enable server cache purge tab in the Gagets part of the preferences. --Swift (talk) 20:33, 5 January 2009 (UTC)
Hi again, back in my usual username again; thanks for that input. It turned out that the table line also objected to having a margin property; I'm still not sure why; anyway all back to near normal again. The caching undoubtedly contributed to the confusion though. I had to put in an extra 3em of right padding to keep the new link text from mixing with long headings.Armchair (talk) 18:59, 6 January 2009 (UTC)

[edit] com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression:

Hi,

I am using WebObjects. I am using InnoDB with MySQL as a database. I configured in properties file properly. When I tried to update entities in EOModeler through code, but it is not working. Please help me to solve this problem.

 private void saveChange()
        {
            String setOn = new String("SET FOREIGN_KEY_CHECKS = 1");
            String setOff = new String("SET FOREIGN_KEY_CHECKS = 0");
            // NSArray keys = new NSArray("FOREIGN_KEY_CHECKS");
            NSLog.allowDebugLoggingForGroups(NSLog.DebugGroupSQLGeneration);
            NSLog.allowDebugLoggingForGroups(NSLog.DebugGroupDatabaseAccess);
            NSLog.setAllowedDebugLevel(NSLog.DebugLevelInformational);
            EOUtilities.rawRowsForSQL(session().defaultEditingContext(), "User", setOff);
            session().defaultEditingContext().saveChanges();
            EOUtilities.rawRowsForSQL(session().defaultEditingContext(), "User", setOn);
            System.out.println("**********In save Changes***********");
        }
        

I invoked the above code in saveChanges(). In the server console prints like the below:

<com.webobjects.jdbcadaptor.MySQLPlugIn$MySQLExpression: "SELECT PK FROM EO_PK_TABLE 
WHERE NAME = 'user_table' FOR UPDATE">
[2008-12-31 12:24:42 ] <WorkerThread4> fetch canceled
[2008-12-31 12:24:42 ] <WorkerThread4> 0 row(s) processed
[2008-12-31 12:24:42 ] <WorkerThread4>  === Rollback Internal Transaction
[2008-12-31 12:24:42 ] <WorkerThread4>  === Begin Internal Transaction


[edit] Upload Images

Hello, I have looked everywhere for this, but I cannot find it. When I go under the "Edit this Page" tab, I am told there should be a link that say "Upload Images" or "Upload Files" in my toolbox on the left hand side of the screen. Unfortunately it is not there! I am working on placing a chemistry book in Wikibooks and thus there are many figures that need to be included. Please help me with this!! Elo 1219 (talk) 17:24, 6 January 2009 (UTC)elo_1219

What's not there? The toolbox or the link? What do you see under the search box/in the toolbox? As a slightly less convenient way to find the page next time, you can check Special:SpecialPages (which, incidentally, should also be in the toolbox) where there is a link to Special:Upload. --Swift (talk) 18:30, 6 January 2009 (UTC)

I have the actual toolbox and the only links available are Search this Book, What links Here, Related Changes, and Special Pages. I tried clicking on the special pages and going to upload file, but then I get a Permission Error, Permission error "The action you have requested is limited to users in one of the groups: Autoconfirmed users, Administrator, Uploaders." I kept searching and the only thing I have found is to upload an image through wikimedia commons and then using the file in my text. Elo 1219 (talk) 19:23, 6 January 2009 (UTC)elo_1219

Oh, I noticed that you only registered yesterday. The software doesn't grant you upload rights until after a four days. Sorry this caused you problems. --Swift (talk) 20:31, 6 January 2009 (UTC)
This feature will self-enable after a short time period (Swift says four days). New users are not allowed to upload as a vandalism prevention mechanism. If I were able, I would make you an uploader, but that is a privilege beyond my current level (admin). You can either ask a Bureaucrat, hope one notices your dilemma, or wait it out. --Jomegat (talk) 20:36, 6 January 2009 (UTC)
It's not something we can dole out. If the image meets Commons' licensing policy, you can upload it there without waiting.  — Mike.lifeguard | talk 20:47, 6 January 2009 (UTC)
It's worth pointing out that any files uploaded to the Commons are directly usable here. It's very much as if they are here (same syntax and everything). Images we upload here are generally those that fall under "fair use" (Commons doesn't accept those, but we do if a reasonable rationale can be provided) or those that are not going to be useful at the Commons (such as book covers). --Jomegat (talk) 21:05, 6 January 2009 (UTC)
Thank you all for letting me know!! As long as I know that I will be able to upload soon, I will be fine. I will be working with Wikibook for the next couple of months for this chemistry project. Thanks again for your help! Elo 1219 (talk) 21:21, 6 January 2009 (UTC)elo_1219
Personal tools
Create a book