User talk:Tpt

From Wikisource
Jump to: navigation, search



Hello, and welcome to Wikisource! Thank you for joining the project. I hope you like the place and decide to stay. Here are a few good links for newcomers:

Carl Spitzweg 021-detail.jpg

You may be interested in participating in

Add the code {{active projects}}, {{PotM}} or {{CotW}} to your page for current wikisource projects.

You can put a brief description of your interests on your user page and contributions to another Wikimedia project, such as Wikipedia and Commons.

I hope you enjoy contributing to Wikisource, the library that is free for everyone to use! In discussions, please "sign" your comments using four tildes (~~~~); this will automatically produce your IP address (or username if you're logged in) and the date. If you need help, ask me on my talk page, or ask your question here (click edit) and place {{helpme}} before your question.

Again, welcome! Beeswaxcandle (talk) 23:48, 3 September 2011 (UTC)

User talk:BirgitteSB[edit]

More questions for you over there. And please tell me if ever I should move the disscussion to BugzillaBirgitteSB 23:44, 18 July 2012 (UTC)


As nobody else is stepping in, could I trouble you to start this page? --Piotrus (talk) 20:49, 20 September 2012 (UTC)

I've created a beginning of list : oldwikisource:Wikisource:Metadata. Tpt (talk) 19:09, 21 September 2012 (UTC)

Section transcluded when it shouldn't be[edit]

Hi Tpt. Wondering whether you can explain Dudley, Robert (1532?-1588) where the "Dudley, Lettice" section is included, though it is not within the transclusion component and is wrapped with its own tag. Thanks. — billinghurst sDrewth 13:48, 1 October 2012 (UTC)

slurpInterwiki.js sur wikidata[edit]


La communauté catalane a traduit ton script en catalan, et voudrait que tu l'inclusses dans ton code source. Le code se trouve sur ta page de discussion sur Wikidata. Merci d'avance.--Bertrand GRONDIN (talk) 20:08, 3 November 2012 (UTC)

'Magical Headers' and footnotes[edit]

Hello. I was wondering if there was a way to tweak your header template so that footnotes appear above the blue navigation bar at the bottom of Mainspace pages (e.g.) as opposed to underneath the bar. Thanks, Londonjackbooks (talk) 22:11, 25 November 2012 (UTC)

This bar is not added by the header template but by a script. I'll try to improve it. Tpt (talk) 17:07, 26 November 2012 (UTC)
Thanks. Londonjackbooks (talk) 17:21, 26 November 2012 (UTC)

Header template and {{Plain sister}} parameters[edit]

Is it possible to incorporate Plain sister entries into the header template so that links to sister projects appear in the notes section of the header? Ex., <pages index="Foo.djvu" header=1 wikipedia="Danny Deever" from=x to=y />, etc. If I am not explaining myself well, please reference the Scriptorium for elaboration. Thanks again, Londonjackbooks (talk) 13:40, 8 March 2013 (UTC)

Typo in About page of epub export[edit]

Gday Tpt. I haven't seen you in IRC to ask, so resorting to a note on your talk page. I spotted a typo in the 'About' text that appends an exported Epub. Where are corrections made? On wiki or is that something that happens in production? Anyway, the typo is in the library in first sentence libray to library

This e-book comes from the online libray Wikisource

Thanks for all that you do. — billinghurst sDrewth 13:23, 7 December 2012 (UTC)

The about text is stored in MediaWiki:Wsexport about in each wiki. The default value is the page in oldwikisource oldwikisource:MediaWiki:Wsexport about. After any change in the file you have to purge the wsexport cache by navigating to . I've fixed the oldwikisource version. Tpt (talk) 16:39, 7 December 2012 (UTC)

JSON in MediaWiki pages[edit]

Hi. I heard you were poking at the Proofread Page extension. It occurs to me that the JSON in MediaWiki pages output could be (dramatically) enhanced by some new code from Meta-Wiki. Example here: m:Schema:Proofread Page. --MZMcBride (talk) 01:48, 16 December 2012 (UTC)

This new code is currently included into the EventLogging MediaWiki extension. I'll talk with its developers if we could include this output system inside of Core in order to can be used by all extensions. Tpt (talk) 07:41, 16 December 2012 (UTC)

Sending EPUB down the subpages hierarchy[edit]

Just had a play with Mrs. Caudle's curtain lectures and found that it only generated chapter/pages that were listed on the front page, not those that were listed subsidiary to work itself. Noting that the "The Curtain Lectures" component is 206pp and there are 30+ chapters that are listed on a separate page due to the limitations on the published table of contents. Is there a means to ensure that it drills down further? Or are we going to have to more cleverly construct our tables of content to get the wsexport tool to work? Thanks. Apologies for these possibly stupid questions, as I don't know where to look for the construction logic, and we are yet to document these sorts of things. — billinghurst sDrewth 12:36, 16 December 2012 (UTC)

You just have to add a "class="ws-summary"" to the node that contain the list of the sub-chapters as I have done here. These things are documented on oldwikisource. Tpt (talk)

Microformat data[edit]

Your attention at Template talk:Header#Microformat data would be appreciated, please. Pigsonthewing (talk) 23:52, 16 January 2013 (UTC)

Some difficulties with ws-export[edit]

Hi Tpt! Thanks for your ws-export extension, we have deployed it recently at ws-ca and it works really well. Good job! I found only some minor problems, which are: (1) with the side notes like here. Is there anything that I'm doing wrong? (2) I also noticed that the collaborator list reflects only the people who have edited the transcluded pages, but not the ones that have edited the pages. (3) I've seen that in ws-fr you manage to include the book cover in the epub, how can we make it happen at ws-ca? Thanks again for your efforts, this extension was extremely needed! --Micru (talk) 15:36, 20 January 2013 (UTC)

1 It's maybe because the epub style-sheet doesn't include the sidenote-right class. To add it in epubs, add it to ca:Mediawiki:Epub.css and reload Wsexport cache.
2 These people should be included in the list. I'll report this issue to the contributor that maintain this feature.
3 Add something like <span class="ws-cover">Test.djvu/3</span> or <span class="ws-cover">Test.jpg</span> to the html of the main page of the book (this can be done by a template).
Tpt (talk) 20:15, 20 January 2013 (UTC)
Thanks for your answers! Still another question, what is the best way to define a nested "ws-summary"? And is it possible to specify the order or a different title other than the link name? --Micru (talk) 14:49, 21 January 2013 (UTC)
If a page linked by a link inside of the "ws-summary" of the main page contains a "ws-summary" containing links, the pages linked by this second "ws-summary" will also be added to the epub. This, I hope answer to your question that I'm don't sure to understand well.
No, it isn't currently possible to define an other title than the link name. Tpt (talk) 21:00, 21 January 2013 (UTC)
Yes, that answers my question, I thought it would be possible to define sub-sections on the main "ws-summary", but it seems it is only possible using linked pages with more links.--Micru (talk) 21:21, 21 January 2013 (UTC)

Subpages in Index/Page[edit]

You have new messages
Hello, Tpt. You have new messages at WS:S.
You can remove this notice at any time by removing the {{Talkback}} or {{Tb}} template.

WMF made changes to how they defined their global settings[1], and across the WS it broke Template: ns by taking away subpages across the WSes (now fixed), but it also introduced subpages to Index: and Page: (well all ns 100 to 111 by default) For the coding in ProofreadPage, do you see any issues with having subpages in these two namespace? When I was talking to Reedy about fixes, he mentioned whether we should be standardising the namespace numbers for the WSes, and batch move all the pages to a higher number. I ran away, but Reedy sees value in adding it to the TO DO list, as least for consideration. Thanks for your advice in this area. — billinghurst sDrewth 01:50, 5 February 2013 (UTC)

A Critical Examination of Dr G. Birkbeck Hills "Johnsonian" Editions doesn't epub[edit]

Gday Tpt. I have found that quotes in work names in main ns and file/index/page ns are problematic. A Critical Examination of Dr G. Birkbeck Hills "Johnsonian" Editions doen't feed into Epub via the sidebar, and it also causes problems in page numbering that ThomasV set up (did a note to WS:S about that bit. In the end, I may end up moving all these components to a naming without quotations,I thought it best to flag and see if there is a programmatic fix.

HTTP error:

If any of this is something that is better in Bugzilla, please let me know. Thanks. — billinghurst sDrewth 02:24, 22 April 2013 (UTC)

It's now fixed. If you want you can report bugs in GitHub that also host source code. Tpt (talk) 19:19, 30 April 2013 (UTC)


Hi, I can not upload many files from like, There are no .djvu file.

Jayantanth (talk) 10:05, 23 November 2013 (UTC)


Courtsey notification, locally. ShakespeareFan00 (talk) 16:44, 29 May 2014 (UTC)

hidden zero padding[edit]

Hi Thomas,

Regarding PagelistTagParser.php, lines 66–71, can we please suppress this hidden zero padding for non-numeric page labels? The extra padding looks horrible when the page label is not a number; e.g. Index:The Bostonians (London & New York, Macmillan & Co., 1886).djvu. Hesperian 10:39, 18 June 2014 (UTC)

+1 — billinghurst sDrewth 10:50, 18 June 2014 (UTC)
Yes check.svg Done . Fixed by this change that should be deployed next Tuesday. Tpt (talk) 14:31, 18 June 2014 (UTC)
Great, thanks! Hesperian 05:40, 19 June 2014 (UTC)


Hi Thomas,

Thank you very much for fixing the bug in the program that creates the Epub-files, yesterday. You did it so fast! Wonderful. Just to let you know: it works fine now! I did a new download of the book I mentioned and now I can read all of it on my E-reader. Thanks again for that.

What I was thinking: did this little bug affect all export to Epubs? And what does it mean that no one did discover this bug until now?

Greetings, Dick Bos (talk) 13:05, 10 August 2014 (UTC)

"did this little bug affect all export to Epubs?": I believe it affects all ePub containing images after the deployment of the MediaViewer (some weeks ago). But I believe that most ePub readers do not fail like yours so maybe no other Wikisource contributor has been affected by this bug. Tpt (talk) 17:14, 12 August 2014 (UTC)

ia-upload failure ...[edit]

Hi, I tried to upload Internet Archive 57MB and received the error The upload to WikimediaCommons failed: Client error response [status code] 413 [reason phrase] Request Entity Too Large [url]

== {{int:filedesc}} ==
| Author       = {{creator:Walter Thornbury}} and {{creator:Edward Walford}}
| Editor       = 
| Translator   = 
| Illustrator  = 
| Title        = Old and New London 
| Subtitle     = a narrative of Its History, Its People, and Its Places
| Series title = 
| Volume       = 1
| Edition      = 
| Publisher    = : Cassell & Company Limited
| Printer      = 
| Date         = 
| City         = London 
| Language     = {{language|en}}
| Description  = {{en|Scanned work ''Old and new London : a narrative of its history, its people, and its places'' illustrated with  Numerous Engravings from the most authentic sources. — v. 1-2. The city, ancient and modern -- v. 3-4. Westminster and the western suburbs -- v. 5. The western and northern suburbs -- v. 6. The southern suburbs}}
| Source       = {{IA|oldnewlondonnarr01thoruoft}}
| Image        = {{PAGENAME}}
| Image page   = 9
| Permission   = {{PD-scan|PD-old}}
| Other versions = 
| Wikisource   = s:en:Index:{{PAGENAME}}
| Homecat      = 

which was for a user. There will also be a second volume to follow. If you can see that I have done something wrong, or if there is a tweak that you need to make, then please let me know when I am right to go. Thanks. — billinghurst sDrewth 05:36, 4 January 2015 (UTC)

Sorry for the late answer, I was very busy last week. The root cause of this error is, I think, that the DjVu is too big for Wikimedia Commons upload API. It's very strange, the DjVu is around 57MB and I believe that the upload limit is of 100MB. So, I think that the only way to upload this file to Wikimedia Commons is to use the UploadWizard. Tpt (talk) 09:52, 10 January 2015 (UTC)
Not an issue, hardly urgent. That was my thought too, though couldn't be sure. I have created a bug for this.

Openbillinghurst sDrewth 12:10, 10 January 2015 (UTC)