Help:Calculation

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Patrick (talk | contribs) at 22:35, 12 April 2005 (Reverted edits by 220.227.242.215 to last version by Patrick). It may differ significantly from the current version.

The software does not allow calculations, but one can use a piped link to a calculation with Google's calculator, with the label as answer, to demonstrate the numbers used in the computation. This way one can check for consistency, see the result with a higher accuracy, and also conveniently update the result.

E.g., in the case of the population density in the Netherlands:

[[google:16318199/33883|482/km²]], giving 482/km².

With a suitable browser the evaluated expression pops up, so the link is useful even without following it.

Suppose that someone updates the population figure but not the density, than the next person can see that the density is not based on the latest figure, replace the first number, press Preview, follow the link, copy the new result to the link label, and save. Thus the update requires a minimum of effort.

Unfortunately, the result 482 has to be entered manually and consistency is not automatically maintained.

Without putting the result on the page

Alternatively, the user has to follow the link to see the result. Using template:popd is convenient and there is no redundancy, hence no worry about consistency:

{{popd|16318199|33883}} gives: