TestAnalysis

From MoxyWiki

This simple page demonstrates how properties of a page can be described to the wiki and how they can then be used in analysis.

This page has a property called x and it has a value of 5info.png
5

Last calculated 88 weeks ago
. This can be described to the wiki by marking up the number five as
[[X::9]]

Such properties can be included in analysis. For example the following code shows how the the property X from this page can be used in a simple calculation and can produce the output below.

{{#ajaxr:
#Get the value of X from the Test Analysis page
a = {{getProperty|TestAnalysis|X}};
#Output some text
cat("Hello World, \nThe value of property X of the TestAnalysis page is", a);
#Perform some simple arithmatic
a = a * 2
cat("\nThe value of property 2X is", a);
}}





Processing script

Calculating




Not yet calculated

Creative Commons 3.0 - Terms of Use





Processing script

Calculating




Facts about TestAnalysisRDF feed
X5info.png
5
  +