User talk:A Witt

A MediaWiki Question

I was wondering whether it is possible in any way to use parser tags in a template which gets passed a variable from the main page? For example, I want to do something like <filesize>{{{File Name}}}</filesize> on the file template, but of course mediawiki just parses the tag with '{{{File Name}}}' as the input. --Feldmahler 01:37, 4 November 2006 (EST)


from what I am following it looks possible but I'm not sure what your <filesize> extension is doing from the front end. --A Witt 02:43, 4 November 2006 (EST)


Well... it just takes the $input as the file name, and spits back the size of the file in KB... and does nothing else. --Feldmahler 09:24, 4 November 2006 (EST)



Using a default filename in the template is supposed to fix that

<filesize>{{{File Name|Mozart_-_K497.pdf}}}</filesize>

That seems to be giving an error for some reason, perhaps using an #if statement for if the variable is empty rather than a default filename, I'm checkin it out... --A Witt 03:53, 5 November 2006 (EST)



I've tried a lot of different ways, even using #if/else, subst: and <includeonly> but everything is hitting an error on /extensions/imslpfilesize.php(22): Image->Image(NULL)

Which looks like we can't get around it unless the php has a way to parse a null file.

--A Witt 04:51, 5 November 2006 (EST)

Sorting Categories

Hello, I think we need your expertise here .... See IMSLP:Community Portal where I posted this problem. Cheers , Peter 06:34, 5 November 2006 (EST)


Page Transformation

Hi! You can actually use the Special:Transform page to automatically transform old non-template format work pages to the newer format :) --Feldmahler 22:15, 20 December 2006 (EST)


hahah nice  :P

A Witt 22:29, 20 December 2006 (EST)