imfdb.org

imfdb.org (http://forum.imfdb.org/index.php)
-   imfdb (http://forum.imfdb.org/forumdisplay.php?f=5)
-   -   Unit Conversion Templates (http://forum.imfdb.org/showthread.php?t=1913)

zackmann08 01-04-2012 04:56 PM

Unit Conversion Templates
 
In my process of editing both on IMFDB and Wikipedia, I discovered that wikipedia has a nifty little template that does unit conversions for you. For example, if you type: {{convert|23|oz|abbr=on}} it outputs "22 oz (620 g)". Is this something that we could possibly add? Ive been updating a lot of the S&W pages with specifications and its a pain in the ass to constantly be using a unit converted to get both metric and 'standard' units. Not sure what is involved in making the template but thought I would mention it.

-Zack

Evil Tim 01-04-2012 08:01 PM

Wikipedia templates are usually hard to copy because they feature a lot of nested code and some of it doesn't work on mediawiki; you often find you'd have to copy ten or fifteen sub-functions to get something simple like an infobox.

zackmann08 01-04-2012 09:42 PM

Ah, gotcha. Well I thought it might be worth a try.


All times are GMT. The time now is 11:00 AM.

Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.