{{Convert}} on Wikipedia isn't one single fancy template, it is actually
several hundred. I ran Special:Export and told it to include all the sub
template, and I got back a file with 394 pages, a few of them might be
documentation, but you get the idea. I'd love to see this sort of
functionality be put into MediaWiki somewhere, rather than crazy template
hacking.
-Jon
PS. We tried to steal {{Convert}} on Wikipedia to use on Wikinews... we
eventually gave up and stuck to the handful of separate templates we had
before.
On Thu, Nov 19, 2009 at 22:05, Jona Christopher Sahnwaldt <
jcsahnwaldt(a)gmail.com> wrote:
Why not just use
http://en.wikipedia.org/wiki/Template:Convert ?
On Fri, Nov 20, 2009 at 06:04, Sylvain Leroux <sylvain(a)chicoree.fr> wrote:
Hi,
There is an issue concerning unit conversions in wikitext:
https://bugzilla.wikimedia.org/show_bug.cgi?id=235
This one doesn't deserved any attention since a long time. The original
proposition was about converting units "on the fly" regarding user
preferences.
I don't know if it is feasible and/or
desirable.
I propose to work on something less ambitious: adding a parser function
to
provide conversion - maybe in ParserFunction.
The idea would be something like:
{{#unit: 1000 ft|m}} => <span title="304m
(1000ft)">304m</span>
If I start working on this, will anyone accept to review the code?
Thanks in advance,
Sylvain.
--
sylvain(a)chicoree.fr
http://www.chicoree.fr
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l
--
Jon
[[User:ShakataGaNai]]
http://snowulf.com/ - Blog
http://snowulf.imagekind.com/ - Pictures
This has been a test of the emergency sig system.