Difference between revisions of "User:Fbstj/testing/value-tag"

From The Coppermind
Jump to navigation Jump to search
m (add calculation example)
m (Fbstj moved page User:Fbstj/value-tag to User:Fbstj/testing/value-tag without leaving a redirect)
 
(No difference)

Latest revision as of 21:57, 23 November 2018

get value before it's set
<value key="test" />
set value
<value key="test">testing</value>
get value after it's set
<value key="test" />
set value to a link
<value key="test">Kaladin</value>
get value after it's set
<value key="test" />
set value to something more complex
<value key="test">4050</value>
get value after it's set
<value key="test" />
define total value of pages
<value key="total">4336</value><value key="total" />
define a function ratio($CATEGORY)

<calculation name="ratio" arg="category">0%</calculation>

call ratio(complete articles)
<calculation call="ratio" category="complete articles" />
call ratio(articles nearing completion)
<calculation call="ratio" category="articles nearing completion" />
call ratio(partially complete articles)
<calculation call="ratio" category="partially complete articles" />
call ratio(stubs)
<calculation call="ratio" category="stubs" />