Is there a way to calculate/query the number of templates in a wiki article?
The goal is to identify pages on our wiki that transclude excessive numbers of templates, flag them as too complex,
and work with page authors to reduce their complexity.
For example, if page P transcludes {{foo}} ten times and {{bar}} two times, the count would be 12.
(We don't care about recursive transclusions for now.)
Special:MostLinkedTemplates does the opposite (identifies highly linked templates, not highly-templated pages).
I also queried the templatelinks table, but it seems to count each template only once, not multiple transclusions of the same template.
SQL or PHP solutions would be fine. I suspect we could attach a callback to the hook 'BeforeParserFetchTemplateAndTitle'
and count the fetches, but I'd prefer something that won't impact the running wiki.
Another approach might be to reduce the $wgMax*PPNodeCount values, but choosing appropriate values
would be trial and error.
Thank you!
DanB
Forwarding on behalf of our beloved Florence, former WMF president etc. etc.
Nemo
-------- Original Message --------
Subject: Tablet skin design
Date: Mon, 31 Mar 2014 21:25:31 +0200
From: Florence Devouard
Newsgroups: gmane.org.wikimedia.mediawiki
Hello
A friend of mine is looking for a designer who could work on a
responsive mediawiki skin for a mediawiki-based website for a company.
The goal would rather be to make the skin best for use on tablets.
Would any of you be interested by such a task ? Or would know someone
who could ? Or would have pointers for such a skin ?
Please feedback here or to my email address fdevouard @@@ anthere.org
Thanks
Anthere
Still getting error messages from the Special:UpLoad page shown below:
> Error creating thumbnail: convert.im6: no decode delegate for this
> image format `/tmp/magick-2bvC6VML' @
> error/constitute.c/ReadImage/544.
> convert.im6: no images defined `PNG:/tmp/transform_c5506caa9662-1.png'
> @ error/convert.c/ConvertImageCom
>
This is my images stuff from LocalSettings.php
> ## To enable image uploads, make sure the 'images' directory
> ## is writable, then set this to true:
> $wgEnableUploads = true;
> $wgUseImageMagick = true;
> $wgUseImageResize = true;
> $wgImageMagickConvertCommand = "/usr/bin/convert";
> $wgSVGConverter = 'ImageMagick';
> $wgTmpDirectory = "$IP/images/temp";
> $wgUploadPath = "$wgScriptPath/images";
> $wgUploadDirectory = "$IP/images";
> # InstantCommons allows wiki to use images from http://commons.wikimedia.org
> $wgUseInstantCommons = true;
>
> ## If you use ImageMagick (or any other shell command) on a
> ## Linux server, this will need to be set to the name of an
> ## available UTF-8 locale
> $wgShellLocale = "en_US.utf8";
>
I don't know if all the $wgXXXxxx settings are correct. Seem to be no examples available. Also I have tried just using the defaults & that doesn't work either.
Dear Wikimedia developers,
Last week some of you received a mails asking to participate in a
quick survey to help us on an effort estimation model for free
software/open source projects. Due to a bug in our code, some of you
received our mail several times, which we are very sorry about,
because we know how annoying this is.
So far, 72 Wikimedia developers have responded. We plan to send a
reminder e-mail to those who haven't participanted so far, and would
kindly ask them to devote the 2-3 minutes that it takes to fill out
the six questions of the survey. This will help us a lot. Thank you in
advance.
Some more information on our research and on the survey:
The e-mail addresses of the selected developers have been obtained
by analyzing the Wikimedia git repository [1], as our effort estimation
model is based on its activity - the input obtained from the survey
will really serve to calibrate and validate the model. If you are
curious about our model and how it works, you can see in the web page
the results of the survey we did on OpenStack a few weeks ago [2].
We will provide the findings of our research to those participants
who wish to be informed abou them -- there is a last checkbox in the
survey that you can tick if you are interested.
If you have any questions, suggestions or comments on the survey,
our research or the model, please, feel free to contact us [3]. We will
be
very happy to hear your feedback.
Thank you in advance,
[1] https://gerrit.wikimedia.org/r/p/mediawiki/core.git
[2] http://ccervigon.libresoft.es/result
[3] http://ccervigon.libresoft.es/contact