Forum:Is it possible to have two buttons to switch between american and british dates, and feet/meters?

Would it be possible to add a button to the wiki interface that allows the user to switch between American and UK dates, aswell as a button to switch between English and Metric measurements? It would also be great if it saved a cookie, remembering your preferences? The wiki is rollercoaster.wikia.com. Thanks


 * Can someone help?


 * What exactly are you referring to? You can customise the date format in your Preferences to see it however you want for things like RecentChanges. There are no parts of the UI that use length measurements AFAIK. If you have dates in your articles, I suggest you look at ISO8601 (International Standard Date Format) which defines "2012-11-05 14:08:59" as the recommended way to write unambiguous dates for international consumption. If you have length/height measurements in your articles that you want to make convertable, that's very wiki specific and will require replacing all those measurements with a template then writing some JavaScript to switch/calculate between the two. Lunarity 02:14, November 5, 2012 (UTC


 * It's not the UI dates/measurements that I want to swap, rather the ones that are in our infoboxes. I would put it in a template (I knew that from the start), but what I need help on is the JavaScript (I know nothing about JS whatsoever).


 * Basically, I want it to behave like the top right on www.rcdb.com, or the "Preferences" page.

(Reset indent) If it's an infobox then you can just modify the infobox template to tag the height/width rows properly, that's relatively easy. If you just want a block of code to use, try this: You'll need to place the measurements in a  with the   class, like. Lunarity 01:43, November 6, 2012 (UTC)


 * I've added that to my wiki's Common.js page an tested the span you have me, but it doesn't seem to have done anything. What is the code actually ment to do? Is it supposed to display a button? —This (wall • contribs) . Please sign your posts with


 * Two things:
 * I coded it to only run on article pages. It won't work in any other namespace.
 * Your Common.js is broken. It doesn't work because the entire file is corrupt. Remove everything except the above the code. (None of the other stuff works anyway)
 * Lunarity 03:46, November 7, 2012 (UTC)