Re: [SMW-devel] Displaying unit-correct numbers

2013-11-28 Thread James HK
Hi, You might want to check [1]. [1] https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/master/docs/INSTALL.md Cheers On 11/27/13, Benjamin Pelletier wrote: > Sounds good, thanks. The documentation[1] doesn't seem to have any special > instructions for upgrading to 1.9; can I simply

Re: [SMW-devel] Displaying unit-correct numbers

2013-11-26 Thread Benjamin Pelletier
Sounds good, thanks. The documentation[1] doesn't seem to have any special instructions for upgrading to 1.9; can I simply delete my SemanticMediaWiki extension folder and git clone the repository[2] back into a folder of the same name? Or are there additional steps I'll need to take to start usi

Re: [SMW-devel] Displaying unit-correct numbers

2013-11-26 Thread James HK
Hi, You need SMW 1.9 due to a fix provided by [1]. [1] https://bugzilla.wikimedia.org/show_bug.cgi?id=45053 Cheers On 11/26/13, Benjamin Pelletier wrote: > That doesn't seem to work for me. This is what I have in my template: > {{#show:{{PAGENAME}}|?Has length of hike}} > ...and this is t

Re: [SMW-devel] Displaying unit-correct numbers

2013-11-25 Thread Benjamin Pelletier
That doesn't seem to work for me. This is what I have in my template: {{#show:{{PAGENAME}}|?Has length of hike}} ...and this is the HTML that shows up: 1.2 miles1.931 km As you can see, there are no divs or other elements that have IDs of "smwttcontent", so adding the above to MediaWiki/Co

Re: [SMW-devel] Displaying unit-correct numbers

2013-11-23 Thread Leonard Wallentin
If the printout is actually "100 ft30.48 m" it probably means that you have javascript turned off, or that something is wrong with the scripts served. I use this css hack to serve something slightly more readable to non js users: .client-nojs .smwttcontent { 1. font-size: .7em; } .client-n

[SMW-devel] Displaying unit-correct numbers

2013-11-22 Thread Benjamin Pelletier
I have a Semantic template that has a few quantity inputs I'd like to display on the page. I could do this: [[Has longest rappel::{{{Longest rappel|}}}]] But that works poorly because the user can enter 100, 100 ft, 100 feet, 30.48 meters, etc and all those inputs are identical in the database,