Jump to content

Help:Calculation: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
Alternatively, the user has to follow the link to see the result. Using template:pd is convenient and there is no redundancy, hence no worry about consistency:
Remove incorrect example to talk.
Line 10: Line 10:


Unfortunately, the result 482 has to be entered manually and consistency is not automatically maintained.
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:pd]] is convenient and there is no redundancy, hence no worry about consistency:

<nowiki>{{pd|16318199|33883}}</nowiki> gives:

{{pd|16318199|33883}}

Revision as of 19:30, 20 September 2004

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.