User:Ohms law/Convert

Ohms,

It looks pretty good. Here are a couple of things I forgot to mention.


 *   stands for unit symbol/abbreviation
 *   stands for unit name
 *   stands for plural
 *   stands for hyphenated form
 *   stands for article title

I guess you figured most of this out. What you wouldn't have easily guessed is that,   and   are optional (  is sort of optional but that's another story). There are no s here, right, that's because these are both one-word unit names (you'd need an   for square feet). Now, the way you've got it here, it's going to link to foot instead of foot (unit). You need a  but the   is not necessary nor is   (you only need ls if the plural is "irregular" (where "irregular" includes plurals formed by adding "es" as in "inches"))

You probably also figured out that capitals are for the big units and lower-case are for the small. You've chosen a bit of a tricky one to start with; single units are easier (all lower-case in that case). Also the s are easier with single units ... for miles & feet is   the number of metres in a mile or in a foot? Also you don't have to worry about s either ... P.S. you got the wrong   for miles and feet, 12 is good for feet and inches ... have you guessed yet? If not, have a look here.

Now to parameter. It stands for jump ... for want of a better thing to call it ... as in a sort of jump in precision ... sort of how far would you move the decimal point in order to keep the same precision? So  = log10. If I were creating the template again from scratch, I wouldn't have a  but there was no parser function for logarithms four years ago. One of these days I'd like to get rid of it, it makes it difficult for people to add units.

I'm not quite sure where you got the  from but it should be. These unit templates don't have a pre-determined place to go, you have to tell them where to go, this is how we can use the same one for input and output units, various different display options, in other templates like var & endurance, etc. Also don't put the  there, default outputs are given by   but this is an output-only template (if you want the template to accept miles & feet as input we'll have to adjust convert/mi).

Good luck. J IM ptalk·cont 23:59, 21 June 2011 (UTC)


 * Getting warmer ...  for name,   for title in the case of miles same but not for feet. J IM ptalk·cont 00:29, 22 June 2011 (UTC)