User:Fbstj/testing/value-tag

From The Coppermind
< User:Fbstj
Revision as of 21:57, 23 November 2018 by Fbstj (talk | contribs) (Fbstj moved page User:Fbstj/value-tag to User:Fbstj/testing/value-tag without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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">4042</value>
get value after it's set
<value key="test" />
define total value of pages
<value key="total">4327</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" />