imfdb.org  

Go Back   imfdb.org > The Forum > imfdb

Reply
 
Thread Tools Display Modes
  #1  
Old 01-04-2012, 04:56 PM
zackmann08 zackmann08 is offline
IMFDB Chief of Operations
 
Join Date: Dec 2011
Location: CA
Posts: 275
Default 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
Reply With Quote
  #2  
Old 01-04-2012, 08:01 PM
Evil Tim's Avatar
Evil Tim Evil Tim is offline
IMFDB & Forum Admin
 
Join Date: Apr 2011
Location: The surface of the sun
Posts: 738
Default

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.
Reply With Quote
  #3  
Old 01-04-2012, 09:42 PM
zackmann08 zackmann08 is offline
IMFDB Chief of Operations
 
Join Date: Dec 2011
Location: CA
Posts: 275
Default

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:13 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
http://forum.imfdb.org/showthread.php?s=6bbcf3740a2a125295babd5e6d523c5a&p=33769
forum.imfdb.org
crawl=CC-MAIN-2019-13
34772
application/http; msgtype=response
sha1:NUUQHMP3SQAM6NRQDXRJZRVDJXP7OFN7
<urn:uuid:22f77e05-3507-46d8-8a0c-dbd816d23f27>
2019-03-22T18:13:09Z
23.239.5.96
application/xhtml+xml
sha1:DDEPF7MOJNTUZHAELXJS5SNXJEHEF2BN
<urn:uuid:e6a8345f-88f4-42a0-83d3-889b1c6ac87d>
http://forum.imfdb.org/showthread.php?s=6bbcf3740a2a125295babd5e6d523c5a&p=33769
response
<urn:uuid:5e006c4e-d5ab-405d-95b5-856e159934d4>
isPartOf: CC-MAIN-2019-13
publisher: Common Crawl
description: Wide crawl of the web for March 2019
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-145-45-50.ec2.internal
software: Apache Nutch 1.15 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 0.11-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: http://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/